Page 1 of 1

Nucleo G031K8 upload via mass storage: not found

Posted: Tue Aug 08, 2023 8:55 pm
by XFer
Hello everyone, first post.

I have a Nucleo G031K8 board, brand new.

It shows up in Windows as "NODE_G031K8 (L:)", inside there's a "DETAILS.TXT" which reports:
Version: V2J40M27
Build: May 5 2022 13:16:48
It also adds a COM port (COM24 in my case).

I installed STM32 core 2.6.0 for Arduino 1.8.19 (Windows 10 Pro) via Boards Manager.
Selected board family and variant, compiled a sample sketch.
Selected "Mass Storage" as upload method.

Unfortunately, upload fails with this error:
Sketch uses 14576 bytes (22%) of program storage space. Maximum is 65536 bytes.
Global variables use 1300 bytes (15%) of dynamic memory, leaving 6892 bytes for local variables. Maximum is 8192 bytes.
C:\Users\Fernando\AppData\Local\Arduino15\packages\STMicroelectronics\tools\STM32Tools\2.2.1/win/massStorageCopy.bat -I b:\temp\arduino_build_373434/RGB_LED_TLC59731.ino.bin -O NOD_G031K8
NOD_G031K8 not found. Please ensure the device is correctly connected.
An error occurred while uploading the sketch

but I can see and access "NODE_G031K8 (L:)" just fine: what's the matter with massStorageCopy.bat, why it cannot find the drive?

Thanks for any help
Fernando

Re: Nucleo G031K8 upload via mass storage: not found

Posted: Tue Aug 08, 2023 9:41 pm
by fpiSTM
Try to update the stlink firmware using STM32cubeprogrammer.
Difference is Node vs nod.

Re: Nucleo G031K8 upload via mass storage: not found

Posted: Tue Aug 08, 2023 10:06 pm
by XFer
Thank you for replying.

I installed STMCubeProgrammer, installed the new USB drivers which came with it, upgraded the board to the latest firmware (242 vs 240), rebooted the PC just in case.

No luck: the board still shows up as "NODE_G031K8 (L:)" and upload fails.

Re: Nucleo G031K8 upload via mass storage: not found

Posted: Wed Aug 09, 2023 8:04 am
by fpiSTM
OK. It seems the recent STLink firmware changes thename of the node.
When this board was added the name was "NOD_G031K8" and now it is "NODE_G031K8"
You can edit the boards.txt file to change it:
https://github.com/stm32duino/Arduino_C ... 43-L760C43

Re: Nucleo G031K8 upload via mass storage: not found

Posted: Wed Aug 09, 2023 8:48 am
by fpiSTM

Re: Nucleo G031K8 upload via mass storage: not found

Posted: Wed Aug 09, 2023 10:57 am
by XFer
It worked, thanks!