Skip programming and debug project
Hi,
I use the STM32L431 microcontroller and a st-link debugger.
The code that I want to use on the microcontroller is divided in 5 projects.
Each code is flashed on an assigned flash memory area defined on the linker script:
Project 1:
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 0x00000200
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x00010000
}
Project 2:
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000200, LENGTH = 0x00001F00
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x00010000
}
Etc.
In order to flash the microcontroller, I build the 5 project then concatenate the binary output. Then, I program the microcontroller with the STM32 ST-LINK Utility.
I'm able to enter in debug mode in the first project (which is starting at 0x08000000) without erasing the rest of the flash memory by disabling "Download" in Debug configurations -> Startup. However, I am not able to find how to do the same with the 4 others projects. Indeed, when I try to do the same, I enter in debug mode and I can see the disassembly code generated but it doesn't link it with the code. When I pause the program, I have this message:
Break at address "0x8000694" with no debug information available, or outside of program code.Is there a way to debug some code without erasing the rest of the flash memory that is not located at the start address 0x08000000? Or even better, is it possible to start the 5 projects in debug mode?