Skip to main content

STM32CubeIDE (MCUs)

Ask questions on STM32CubeIDE. Discuss how to build, debug, configure, and optimize your project as well as how to use our software tools.

  • 7,823 Topics
  • 31,126 Replies
7823 Topics
STM32L4 -> L5 port : breakpoints not hit and watch expressions fail (no usable debug symbols)

──────────────────────────────────────────────SUMMARY──────────────────────────────────────────────While porting an existing STM32L4 project to an STM32L562CE target, source-levelbreakpoints are never hit and adding watch expressions fails with "No symbol incurrent context". The target runs normally (no fault), and manual pause resolvesto a plausible source line, but no symbolic debug capability works. Behaviour isidentical across both the ST-Link GDB server and the SEGGER J-Link GDB server,indicating a target/build-side cause rather than a debug-probe cause. ──────────────────────────────────────────────ENVIRONMENT──────────────────────────────────────────────- Target MCU    : STM32L562CE (Cortex-M33, ARMv8-M), Device ID 0x472, Rev Z, 512 KB- Target board   : External custom/eval STM32L5 board (self-powered, 3.3 V)- Debug probe    : On-board ST-Link of a NUCLEO-L476RG, used to program the           external L5 target via CN4 SWD (CN2 jumpers removed)- ST-Link firmware : V2J47M34 (ST-L