Hello,
we are now facing a very frustrating problem by using the MCUXpressor IDE to debug the freeRTOS program
Hardware: iMXRT1176 EVK
Debugger: EVK on board LinkServer
Software: MCUXpressor IDE 11.7.1 and SDK 2.13.1
Issue:
Every time when I try debug some demo example (like lvgl GUI demo) program with freeRTOS, at the beginning, the debugging looks every well. But when I was going deeper in some stack, the IDE debugger "always" kicked me out of the debug mode after some certain time. It just looked like the debugging process crashed but without any warning or error indictaion.
I didn't change a single letter of the demo project. All I want to do is folloing the debugger to monitor some variable changing step by step.
Is there anyone here have similar experience? please help.
p.s. if the problem is not solvable by using the on-board debugger (LinkServer), would it be suggested to use external debugger device like SEGGER J-Link or J-Trace?
I would for sure give another debug probe/firmware a try.
I don't have any i.MX RT1176, but for other ones I have I can flash it with a J-Link firmware:
https://mcuoneclipse.com/2018/12/28/first-steps-with-the-nxp-i-mx-rt1064-evk-board/
But if you have an external J-Link at hand, this might be easier for you (just make sure that the jumper settings are for an external debug probe, for example see above article. But you might have different jumpers).
As for your problem: maybe you could post here your console/debugger output. Usually it gives some indication, what is going wrong. GDB traces (see https://mcuoneclipse.com/2016/08/07/eclipse-and-gdb-process-properties-arguments-and-gdb-traces/) are usually helpful too.
I hope this helps,
Erich