2024-10-09 03:11 PM
I'm using a Nucleo-F401RE board that used to work a month ago. Now, when I create a project and debug the generated code, the debugger gets stuck in a while loop, and no errors appear on the debugger console.
I guess this could be a memory problem, but I have no idea how to solve it.
Thanks in advance!!
2024-10-09 05:29 PM
Your code is empty dead loop without user code.
2024-10-10 02:42 AM - edited 2024-10-10 02:44 AM
@fernandapdv wrote:the debugger gets stuck in a while loop, and no errors appear on the debugger console.
because that's exactly what your code says to do!
As @Richard Li said, you have coded an empty while loop - so this is exactly the behaviour you have coded!
@fernandapdv wrote:I guess this could be a memory problem
You forgot to add any code to the loop!
PS:
In general, please post source code as text, not image:
2024-10-10 03:20 AM
@fernandapdv wrote:I'm using a Nucleo-F401RE board that used to work a month ago.
Define "used to work". What did it do? Did it come flashed with a blinky program? Whatever firmware it had is now overwritten with your new firmware.
@fernandapdv wrote:the debugger gets stuck in a while loop, and no errors appear on the debugger console.
I guess this could be a memory problem
It's not "stuck". It's looping. Look at the disassembly. There is no memory issue.