Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Not enough memory at STM32 L476RG (Read 2340 times)
RichardK
Junior Member
**
Offline


Posts: 64
Joined: Jul 11th, 2023
Not enough memory at STM32 L476RG
Sep 17th, 2023 at 2:54pm
Print Post  
After successfully compiling my  STM32 L476RG program

Code (C++)
Select All
Program STM32-L476RG size: 21352 bytes (used 2% of a 1048576 byte maximum) (2,00 secs)
Minimum Memory Usage: 1420 bytes (1% of a 98304 byte maximum)
 



I get the message
Code (C++)
Select All
Uploading 'STM32-L476RG' to 'Nucleo-64 (STMicroelectronics_Nucleo_64)' using 'COM10'
Uploader started for board Nucleo-64 (STMicroelectronics_Nucleo_64)
Upload method will be: bootloader
Uploading via Bootloader
ls\2.2.1\win\massStorageCopy.bat -I o_64\Release/STM32-L476RG.ino.bin" -O "NODE_L476RG"
Nicht genügend Speicherplatz auf dem Datenträger im aktuellen Laufwerk.
Nicht genügend Speicherplatz auf dem Datenträger im aktuellen Laufwerk.

The uploader returned an error
 



This sounds strange since the L476RG has capacity of 1 MB.

In the windows filesystem there is a drive  NOD_L476RG with a capacity of 32 KB.

What do I have to do to upload a program to this board?

Thanks
Richard


  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Not enough memory at STM32 L476RG
Reply #1 - Sep 18th, 2023 at 9:26am
Print Post  
Thanks for the report.

Checking on a similar board (F103RB) it shows the "NODE_F103RB" partition when it is viewing the onboard STLINK Probe.  When the jumpers are correctly configured I then see a 136KB Partition for the normal Mass Storage Upload.

If you add two jumpers to the CN2 header (which is labelled as STLINK when open, and NUCLEO when closed) you should then see the correct partition for upload via Mass Storage.

See Page 13 of the ST Manual: https://www.st.com/resource/en/user_manual/um1724-stm32-nucleo64-boards-mb1136-s...
« Last Edit: Sep 18th, 2023 at 9:27am by Simon@Visual Micro »  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 64
Joined: Jul 11th, 2023
Re: Not enough memory at STM32 L476RG
Reply #2 - Sep 18th, 2023 at 10:36am
Print Post  
Hi Simon,

thanks for your reply.

The two CN2 jumpers were set as you suggested. I removed them, but this had no effect on the size of mass storage device. It is still 32 KB.

Please help.

Thanks 
Richard
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Not enough memory at STM32 L476RG
Reply #3 - Sep 18th, 2023 at 12:18pm
Print Post  
The STLink jumpers will need to be present to allow the mass storage upload (Or STLink v2.1 + OpenOCD (vMicro) Upload), and the device also needs to be disconnected and reconnected to the PC to repower it for this to take effect.

Do you have any other jumpers set on your board?
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 64
Joined: Jul 11th, 2023
Re: Not enough memory at STM32 L476RG
Reply #4 - Sep 18th, 2023 at 12:33pm
Print Post  
The only jumpers that are set beside the STLink-jumpers are CN11, CN12, IDD and C20.

Regards
Richard
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Not enough memory at STM32 L476RG
Reply #5 - Sep 18th, 2023 at 1:22pm
Print Post  
They all sound correct to our knowledge, it may be best to ask the question to the board package creator on GitHub:
https://github.com/stm32duino/Arduino_Core_STM32

I assume you have the same experience in the Arduino IDE?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint