cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo U575ZI-Q debug problem

Skfir
Senior

Hello everybody! I recently started experiencing weird, unstable behavior during debug on my Nucleo u575zi-q board. So, I don't use HAL, or any graphic programming, or any API, doing everything in pure C from scratch. The IDE I use is, of course, the STM32 CUBE. It is the Mac version, 1.19.0. When my project was simple, everything was okay; the ST-LINK debug worked great. At some point, though, the debug became unstable. Sometimes the debug freezes, but more often it somehow ends up doing more strange things. For example, I have an RTC module in my project, and in the code, I wait for the RSF flag:

while(!(RTC->ICSR & RTC_ICSR_RSF)){};

When I download the code to my NUCLEO board and run it, everything is fine. But when I debug the same code, press the "run" button, the debug gets frozen on waiting for this flag to be set, and it seems that the flag, for some reason, never sets! So the debug doesn't work. I turn off the debug session, and the code runs well again! Sometimes the board may totally freeze during the debug, and sometimes the debugger complains that it cannot read all the registers. Usually, what I do I "clean the project", turn off the STM32 CUBE, disconnect the board, connect it back, start the CUBE again, and then the debug will work, but just once. As soon as I end the debug session and restart it, nothing works again. Guys, please help! Does anybody have any clue what that may be? I have already tried to re-flash the ST-LINK, but alas, to no avail. 

0 REPLIES 0