cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE doesn't flash target before debugging

ABouk.1
Associate III

Hello,

After updating STM32CubeIDE to version 1.16, starting a debugging session doesn't load program into the STM32L5 target and jumps directly to the reset Handler.

I tried programming the bin file using STM32CubeProgrammer and it works well.

However, erasing the FLASH using STM32CubeProgrammer and launching a debug session then reading back the FLASH using STM32CubeProgrammer shows that it's empty.

Im trying to load the program to the address 0x08020000, here is the memories definition.

 

/* Memories definition */

MEMORY

{

RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K

SRAM2 (xrw) : ORIGIN = 0x20030000, LENGTH = 64K

BOOTLOADER (rx) : ORIGIN = 0x08000000, LENGTH = 128K

FLASH (rx) : ORIGIN = 0x08020000, LENGTH = 352K

}

Capture d'écran 2024-07-15 094322.pngCapture d'écran 2024-07-15 094311.pngCapture d'écran 2024-07-15 094252.png

2 REPLIES 2
Andrew Neil
Evangelist III

@ABouk.1 wrote:

starting a debugging session doesn't load program into the STM32L5 target


Is downloading enabled in your Debug Config:

AndrewNeil_0-1721037194080.png

 

Hello @Andrew Neil 

Yes, as you can see in the first screenshot, it's already enabled

Any ideas pls ?