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-12-28 06:36 AM
2020-12-28 07:20 AM
2020-12-28 09:21 AM
OK! It seems fine and Debug configuration is the active one.
If it does not work to debug the application the reason could be that the application is located above 0x8000000 and it is intended to be started by a bootloader.
To see what happens when debugging if it does not break at main you can in the Debug Configuration open the Startup tab and deselect the "Resume" checkbox. This should make debugging start from the Reset_Handler in the startup file. Step through and see what happens.
I have not debugged the OTA projects and do not know the Bootloader. Maybe the Bootloader updates the vector base register when it is used. In that case you need to set vector base register instead in the application to make interrupt work correctly. I really hope there are some documentation/readme file together with the applications you are testing.
2020-12-29 04:40 AM
Yes. The application starts from 0x08007000. The OTA project loader code(BLE_Ota) resides from 0x8000000 to 0x08006000.
The code does breaks at main showing the error message as I have shared above saying :"breaks at address 0x08004454 with no information available, or outside the program code".
In the Debug Configuration --> Startup tab. I have deselected the "Resume" checkbox. But the same thing is happening.
"set vector base register instead in the application to make interrupt work correctly." --> Please tell me how to do it. I will try.
I have seen documentation/readme file with the applications I am using (STM32Cube_FW_WB_V1.8.0). But could not find anything related to this.
Thank you.
2020-12-29 06:14 AM
Hi GBehe, It is a little bit confusing.
I can see in the figure you sent displaying the Startup tab that you are downloading the Release\BLE_Ota program instead of the application. If you want to debug the BLE_Ota program please use the program built with Debug information. When you are using the release version this is probably not built with debug information and it says "no information available".
If you want to debug the Application sw please change in the startup tab to download the Debug version of the Application.
It is also possible in the Startup tab to download several programs if you want to debug both bootloader and the application. The program will start debug the program which is last in the list. So if you want to debug from the bootloader this program shall be last in the list.
Regarding the interrupt vector table setting there are some information in the STM32CubeIDE User guide. See chapter 2.7.4 on how to setup SCB->VTOR.
The User guide can be opened from the Information Center in STM32CubeIDE.
2020-12-29 06:24 AM
Ok. I will try with the build version file of BLE_Ota program and also I will check the STM32CubeIDE User guide.
Thank you.
2022-04-28 10:25 AM
Hi EJOHA.
I can't debug the BLE_OTA project, I noticed that there is no build option for debug, how do I get the project to be built in the debug version?
2022-05-06 04:21 AM
Hi..
I'm unable to debug the BLE_Ota app even after debug version
Facing the same issue
Dose any one try to solved it ?
Thanks
2024-04-25 05:24 AM - edited 2024-09-12 10:41 PM
Hi,
I am facing the same issue, when debugging the application BLE_ota (for STM32WB55) I get the same error as previously mentioned.
No 'DEBUG' version is available from the example project only the 'RELEASE' version.
I have been following the example from: STM32WB Getting Started Series: Part 7, Over-the-Air (OTA), and have read the application note on Dual-Core Debuggning from AN4989 and AN5361, but without any help.
Can anybody help resolve the issue, for me to be able to debug the code as shown in the video mentioned above?
2024-09-12 10:45 PM
Problem resolved by setting up of Debug Build Mode
Steps:
- Make a new Build mode based on Release (only one excisting)
Build Configuration > Manage > New
- Properties > C/C+ Build > Settings > MCU GCC Compiler > Optimization
Optimization level: Optimize for Debug (-Og)
- [...] > MCU GCC Compiler > Debugging
Debug level: Maximum (-g3)
- [...] > MCU GCC Assembler > Debugging
Debug level: Maximum (-g3)
Next set the debug flag in app_conf.h:
#define CFG_DEBUGGER_SUPPORTED 1
https://community.st.com/t5/stm32-mcus-wireless/is-it-possible-to-get-ble-ota-project-example-with-debug/td-p/176267