Nucleo G031K8 upload via mass storage: not found

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
XFer
Posts: 3
Joined: Tue Aug 08, 2023 8:38 pm

Nucleo G031K8 upload via mass storage: not found

Post 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
by fpiSTM » Wed Aug 09, 2023 8:04 am
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
Go to full post
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Nucleo G031K8 upload via mass storage: not found

Post by fpiSTM »

Try to update the stlink firmware using STM32cubeprogrammer.
Difference is Node vs nod.
XFer
Posts: 3
Joined: Tue Aug 08, 2023 8:38 pm

Re: Nucleo G031K8 upload via mass storage: not found

Post 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.
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Nucleo G031K8 upload via mass storage: not found

Post 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
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Nucleo G031K8 upload via mass storage: not found

Post by fpiSTM »

XFer
Posts: 3
Joined: Tue Aug 08, 2023 8:38 pm

Re: Nucleo G031K8 upload via mass storage: not found

Post by XFer »

It worked, thanks!
Post Reply

Return to “General discussion”