Crash when debugging an i.MXRT1176 application in HyperRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Crash when debugging an i.MXRT1176 application in HyperRAM

634 Views
davidjaouen
Contributor III

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

0 Kudos
Reply
1 Reply

526 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @davidjaouen,

What is the process you are doing to attach the debugger to the RT1176's CM4? If the application is not linked to RAM, and instead remains in flash, does it also show the same issues?

Is the issue also present when using other debuggers? Do you see the same thing on CM7?

BR,
Edwin.

0 Kudos
Reply