cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Hit Breakpoints in Keil During Live Debugging on STM32H7 (Cortex-M7 Core)

rahulcoredata
Associate

Dear STM32 Support Team,

Good afternoon.

I am currently working on an STM32H7-based project using the Cortex-M7 core. The firmware is compiling and flashing successfully without any errors. However, I am facing an issue during live debugging — the breakpoints are not being hit, and it seems that the main stack pointer is not running as expected.

I have already enabled serial wire debugging (SWD) through STM32CubeMX, and my current debugger configuration in Keil is as follows:

  • RAM for Algorithm: 0x24000000, Size: 0x00080000

  • Flash Algorithm: STM32H7x_2MB_Flash

  • Erase Full Chip: Checked

  • Program / Verify: Checked

Despite these configurations, the code does not stop at main() or any user-defined breakpoints during debug sessions.

Kindly assist in diagnosing the possible cause or suggest the correct configuration steps to ensure proper debugging on the M7 core.

Thank you for your support.

Regards,
Rahul Kumar
Embedded Firmware Engineer
1 REPLY 1
KDJEM.1
ST Employee

Hello @rahulcoredata and welcome to the Community;

 

Do you get the same issue when you try using STM32CubeIDE toolchain?

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.