Skip to main content
embsys dev
Associate
February 18, 2020
Question

Breakpoints don't work and Target is not responding on STM32L433 w FreeRTOS

  • February 18, 2020
  • 1 reply
  • 560 views

STM32L433xx

STM32CubeIDE 1.2.1

ST-LINK/V2-1 V2J35M26

STM32Cube_FW_L4_V1.15.0

FreeRTOS 10.2.1

Download, halt at main, single step all work ok....but breakpoints are not hit after the run button is pressed. While the target is running, I get the repeating message "Target is not responding, retrying... ". However, I can halt and the debugger shows the current execution point and call stack, and I can resume from there. Just no breakpoints while running.

This topic has been closed for replies.

1 reply

embsys dev
Associate
February 21, 2020

I created a new project using the wizard, starting with just USART2 (serial debug output) and Serial Wire debug, then adding back features from the original design. Breakpoints worked up until I enabled the LCD. This seems like it could be a bug in the generated clock tree config, related to RCC_OSCILLATORTYPE_LSI which shows up in the generated RCC config when LCD is enabled, but not when it isn't. I don't have time to investigate further, so I created a branch without the LCD and #ifdef'd out the HAL_LCD calls .

Hope this helps others who encounter the same problem.