Hi,
I'm having difficulties to debug an application running on the Cortex-M4 of an i.MXRT1176 using a J-Link probe.
The application is loaded by a bootloader in a HyperRAM device connected to the FlexSPI2 interface. The bootloader starts the application execution on the M4 core.
Outside any debug session, the application runs correctly. So, the FlexSPI2 is correctly set up and the access to the HyperRAM is Ok.
When I try to debug the application (I'm using Segger's debugger Ozone), I attach the probe to the target and I can run the application step by step. But, I cannot step over a function or set a breakpoint and run to it, the application crashes.
I disabled the M4 caches and the MPU, but I have the same problem.
I have no problems when debugging an application located in internal RAM.
Is there something I must do before attaching to the target with the JLink probe? Any JLink script to run before?
Any help would be appreciated,
David