cancel
Showing results for 
Search instead for 
Did you mean: 

Debug issue at start up on STM32L4

lukin
Associate III

Hi,

I am using a STM32L4R9ZI programming by STLINK-V3MINI on STM32CubeIde. Once I launch for debug, I get always this message:

"Break at address "0x1fff163e" with no debug information available, or outside of program code."

Code application does not start, as if there is an infinite loop somewhere.

I press the Stop and Restart button and debug starts fine.

This condition is repeatable. It does not happen If the application starts without debugger.

Any suggestions?

Further, every time I launch debug, the IDE opens one or more .c files of the project, line usart.c, task.c and so on.

How can avoid it?

Thank you

3 REPLIES 3
KnarfB
Principal III

This is a system memory address, not a flash address. Your MCU does not boot from flash but from internel boot loader. Check boot pin / boot mode (user byte) settings.

hth

KnarfB

lukin
Associate III

Hi,

it is a bit clearer. However, the BOOT0 pin is physically connected to GND by a 10k resistor. Looking at boot modes table, it seems I am in the below condition.

0693W00000QLjC3QAL.pngIs it possible that debugger erase memory but, at first time, not finding code in flash memory, starts from system memory?

Clicking at stop and run button, the program is downloaded correctly.