2025-05-14 1:52 AM
Hello.
I have developed an application with touchgfx, lwip, freertos.
I had some problems with lwip (see processor goes to HardFault at __ISB - STMicroelectronics Community, HardFault_Handler when enable LWIP and touchgfx - STMicroelectronics Community).
I understand some causes of HardFault and this morning code seems to work properly.
I tried to run the code without debugger but my processor stuck in some point that I can't see because I have no debugger connected.
I reconnect debugger, reflash and rerun. After this operations I obtain the problem described in processor goes to HardFault at __ISB - STMicroelectronics Community
Why processor run with debugger but it stucks without it ?
Thankyou in advance.
Solved! Go to Solution.
2025-05-14 2:09 AM
@MauFanGilaMedical wrote:I tried to run the code without debugger but my processor stuck in some point that I can't see because I have no debugger connected.
Add instrumentation so that you can see where it's hanging; eg,
LwIP debug output: https://community.st.com/t5/stm32-mcus/using-the-itm-console-for-printf-redirects-and-lwip-debug/ta-p/723472
@MauFanGilaMedical wrote:Why processor run with debugger but it stucks without it ?
Suggests a timing issue:
2025-05-14 2:09 AM
@MauFanGilaMedical wrote:I tried to run the code without debugger but my processor stuck in some point that I can't see because I have no debugger connected.
Add instrumentation so that you can see where it's hanging; eg,
LwIP debug output: https://community.st.com/t5/stm32-mcus/using-the-itm-console-for-printf-redirects-and-lwip-debug/ta-p/723472
@MauFanGilaMedical wrote:Why processor run with debugger but it stucks without it ?
Suggests a timing issue:
2025-05-14 2:24 AM
yes, you are right... I'm doing now..thankyou
2025-05-14 6:31 AM
@MauFanGilaMedical wrote:I tried to run the code without debugger but my processor stuck in some point that I can't see because I have no debugger connected.
Note that you can attach the debugger to an already-running system - so you can see where it is "stuck":
Disable the Reset:
Disable the download:
and you don't want it doing a build: