2025-10-30 3:24 AM - last edited on 2025-10-30 3:42 AM by Andrew Neil
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.