2020-08-26 05:41 AM
Hello,
I run STM32WB exemple : BLE_p2pServer_ota on STM32CubeIDE with the BLE_Ota exemple for bootloader. In this application we start from address 0x08007000
MEMORY
{
FLASH (rx) : ORIGIN = 0x08007000, LENGTH = 484k
RAM1 (xrw) : ORIGIN = 0x20000004, LENGTH = 191k
RAM_SHARED (xrw) : ORIGIN = 0x20030000, LENGTH = 10K
}
How could i do in the STM32CUBEIDE debug configuration to run the debug on this application ?
Thanks.
2020-08-26 06:35 AM
It should work to debug this in STM32CubeIDE directly. It should not be a problem that you have defined flash not to start from 0x8000000.
But to debug it we recommend to use the Debug version instead of Release version which normally does not contain all debug information or is built with optimization,
The problem you may experiance could be that vector base register needs to be setup to location where interrupt vectors are located.
You can try to debug both using ST-LINK GDB server and OpenOCD.
Do you experience problems with debugging?
2020-08-26 08:15 AM
Thanks for your answer
I used two exemple of ST : BLE_p2pServer_ota and BLE_Ota (STM32Cube_FW_WB_V1.8.0) and i didn't modify anything.
I got this problem when i run the debug: "Break at address "0x8001042" with no debug information available, or outside of program code."
Could you please tell me how to setup the vector base in this exemple ?
2020-08-26 08:47 AM
If your application resides at 0x08007000 then whatever is at 0x08001042 is something else, that you're not debugging with source, like a boot loader
2020-08-27 06:32 AM
I run the debug from my application BLE_p2pServer_ota.
2020-09-15 05:07 AM
I do not know about the BLE_p2pServer_ota example. Normally if the program is located on non-default address and interrupts are used the application needs to setup the vector base register, This can be done for instance with
SCB->VTOR=my_VectorTable;
The STM32CubeIDE User manual also contains useful information. It is available here. See chapter 2.7.4
2020-12-28 05:39 AM
2020-12-28 05:48 AM
Hi GBehe,
Normally projects have two build configurations. One Release and one Debug, The Debug configuration is intended to use when debugging.
When opening project properties do you see both a Release and a Debug build configuration?
2020-12-28 06:01 AM
2020-12-28 06:35 AM
I was thinking of the project Properties Build settings. Debug configuration normally builds the project with Debug information.