Skip to main content
M326.1
Associate II
August 26, 2020
Question

STM32WB Debug OTA application

  • August 26, 2020
  • 15 replies
  • 8050 views

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.

15 replies

EJOHA
Associate
December 29, 2020

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.

GBehe
Associate III
December 29, 2020

Ok. I will try with the build version file of BLE_Ota program and also I will check the STM32CubeIDE User guide.

Thank you.

Mahendra Sondagar
Associate III
May 6, 2022

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

Associate III
April 25, 2024

Hi, 

I am facing the same issue, when debugging the application BLE_ota (for STM32WB55) I get the same error as previously mentioned. 

{CB743C2C-28C9-4652-8A26-FB05C46714B6}.png

 

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?

 

Associate III
September 13, 2024

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