Problems debugging iMXRT1011 project

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

Problems debugging iMXRT1011 project

14,748 Views
expertsleepers
Contributor III

I have a simple custom board based on an iMXRT1011 processor. I'm using MCUXpresso IDE v24.12 and a Segger J-Link Ultra+. I'm experienced with iMXRT development in general and the J-Link has worked fine for me on another project.

Everything started fine, but at some point, I lost the ability to debug my project. The code runs fine if I install it using the serial boot loader (via the Secure Provisioning tool), but if I flash it from the debugger it doesn't run.

It seems to crash somewhere before main(). Sometimes I can set a breakpoint in ResetISR() and step through. In these cases everything is fine if I keep single stepping, but it crashes if I let it run. Sometimes it goes straight to 0xdeadbeee and there's nothing to debugger can do.

As you can imagine this is very frustrating. Any suggestions would be gratefully received.

 

Labels (1)
0 Kudos
Reply
21 Replies

3,424 Views
expertsleepers
Contributor III

If I flash the application with SEC, it runs fine. If I connect with J-Link commander, I can halt and go successfully.

In the IDE, today I can set a breakpoint at ResetISR(). If I step over SystemInit(), it crashes. If I step into SystemInit(), step through the function and then step over SystemInitHook(), it crashes. If I do the same and step into SystemInitHook(), it does not crash. This is what I mean when I say the behaviour depends on whether the debugger is stepping over or into the code.

An example of the stack when it crashes:
 
Thread #1 57005 (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)
_vfprintf_r() at 0x600134a4
0x0

 

So it looks like it's jumping to 0x0, but only when the code is freely running, not when stepping in the debugger. There is no code at 0x0 - the ITC is not being used.

Just to repeat, this is before main(), long before any RTOS or similar is invoked. It's crashing in the initial startup code.

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2197495%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EProblems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197495%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20a%20simple%20custom%20board%20based%20on%20an%20iMXRT1011%20processor.%20I'm%20using%26nbsp%3B%3CSPAN%3EMCUXpresso%20IDE%20v24.12%20and%20a%20Segger%20J-Link%20Ultra%2B.%20I'm%20experienced%20with%20iMXRT%20development%20in%20general%20and%20the%20J-Link%20has%20worked%20fine%20for%20me%20on%20another%20project.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EEverything%20started%20fine%2C%20but%20at%20some%20point%2C%20I%20lost%20the%20ability%20to%20debug%20my%20project.%20The%20code%20runs%20fine%20if%20I%20install%20it%20using%20the%20serial%20boot%20loader%20(via%20the%20Secure%20Provisioning%20tool)%2C%20but%20if%20I%20flash%20it%20from%20the%20debugger%20it%20doesn't%20run.%3C%2FP%3E%3CP%3EIt%20seems%20to%20crash%20somewhere%20before%20main().%20Sometimes%20I%20can%20set%20a%20breakpoint%20in%26nbsp%3B%3CSPAN%3EResetISR()%20and%20step%20through.%20In%20these%20cases%20everything%20is%20fine%20if%20I%20keep%20single%20stepping%2C%20but%20it%20crashes%20if%20I%20let%20it%20run.%20Sometimes%20it%20goes%20straight%20to%200xdeadbeee%20and%20there's%20nothing%20to%20debugger%20can%20do.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAs%20you%20can%20imagine%20this%20is%20very%20frustrating.%20Any%20suggestions%20would%20be%20gratefully%20received.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2197495%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%20101x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2204484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2204484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFurther%20odd%20behaviour%20I've%20noticed%20this%20morning.%3C%2FP%3E%3CP%3EI%20set%20a%20breakpoint%20before%20the%20call%20to%26nbsp%3B%3CSPAN%3ESystemInitHook().%20You%20can%20see%20the%20disassembly%20of%20that%20function%20in%20the%20attached%20image.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBefore%20the%20call%2C%20the%20SP%20is%20at%200x20207ff8%20which%20is%20expected%2C%20having%20followed%20through%20the%20code.%20The%20call%20to%26nbsp%3BSystemInitHook()%20is%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ebl%200x6001220c%3C%2FP%3E%3CP%3EIf%20I%20step%20into%20the%20function%20in%20C%2C%20the%20debugger%20stops%20at%200x60012210%20and%20the%20SP%20is%20still%26nbsp%3B%3CSPAN%3E0x20207ff8.%20The%20SP%20is%20also%26nbsp%3B0x20207ff8%20when%20the%20function%20returns%2C%20which%20is%20as%20expected.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20I%20instead%20step%20into%20the%20function%20in%20instruction%20stepping%20mode%2C%20it%20executes%20the%20push%20instruction%20at%200x6001220c%2C%20reducing%20the%20SP%20to%200x20207ff4.%20So%20the%20SP%20is%20wrong%20when%20the%20function%20exits%20and%20subsequent%20code%20crashes.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECan%20you%20think%20what%20might%20cause%20this%20difference%20of%20behaviour%3F%20And%20is%20that%26nbsp%3BSystemInitHook()%20correct%3F%20To%20have%20a%20push%20but%20no%20pop%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2203589%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2203589%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIf%20I%20flash%20the%20application%20with%20SEC%2C%20it%20runs%20fine.%20If%20I%20connect%20with%20J-Link%20commander%2C%20I%20can%20halt%20and%20go%20successfully.%3C%2FP%3E%3CP%3EIn%20the%20IDE%2C%20today%20I%20can%20set%20a%20breakpoint%20at%26nbsp%3B%3CSPAN%3EResetISR().%20If%20I%20step%20over%26nbsp%3BSystemInit()%2C%20it%20crashes.%20If%20I%20step%20into%26nbsp%3BSystemInit()%2C%20step%20through%20the%20function%20and%20then%20step%20over%26nbsp%3BSystemInitHook()%2C%20it%20crashes.%20If%20I%20do%20the%20same%20and%20step%20into%26nbsp%3BSystemInitHook()%2C%20it%20does%20not%20crash.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EThis%20is%20what%20I%20mean%20when%20I%20say%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ethe%20behaviour%20depends%20on%20whether%20the%20debugger%20is%20stepping%20over%20or%20into%20the%20code.%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3EAn%20example%20of%20the%20stack%20when%20it%20crashes%3A%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThread%20%231%2057005%20(Suspended%20%3A%20Signal%20%3A%20SIGTRAP%3ATrace%2Fbreakpoint%20trap)%3C%2FDIV%3E%3CDIV%3E_vfprintf_r()%20at%200x600134a4%3C%2FDIV%3E%3CDIV%3E0x0%3C%2FDIV%3E%3CBR%20%2F%3E%3CP%3ESo%20it%20looks%20like%20it's%20jumping%20to%200x0%2C%20but%20only%20when%20the%20code%20is%20freely%20running%2C%20not%20when%20stepping%20in%20the%20debugger.%20There%20is%20no%20code%20at%200x0%20-%20the%20ITC%20is%20not%20being%20used.%3C%2FP%3E%3CP%3EJust%20to%20repeat%2C%20this%20is%20before%20main()%2C%20long%20before%20any%20RTOS%20or%20similar%20is%20invoked.%20It's%20crashing%20in%20the%20initial%20startup%20code.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2202905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20clarification!%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20mentioned%20earlier%2C%20this%3A%26nbsp%3B%3CSPAN%3E%26nbsp%3BSometimes%20it%20goes%20straight%20to%200xdeadbeee%20and%20there's%20nothing%20to%20debugger%20can%20do.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20I%20understand%20well%20this%20deadbee%20problem%20only%20occurs%20with%20the%20debugger%2C%20and%20if%20you%20boot%20latest%20SW%2C%26nbsp%3B%20without%20the%20debugger%20the%20does%20it%20works%20well%20rigth%3F%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20you%20debug%20latest%20app%20using%20Segger's%20J-Link%20commander%2C%20letting%20the%20IDE%20aside%2C%26nbsp%3B%20do%20you%20see%20any%20problems%3F%20I%20refer%20to%20using%20the%20go%2C%20and%20halt%20operations%20once%20the%20debugger%20is%20connected.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ECould%20you%20share%20and%20idea%20of%20the%26nbsp%3B%20changes%20on%20your%26nbsp%3B%20latest%20SW%20version%3F%26nbsp%3B%20Do%20a%20step%20by%20step%20debug%2C%20while%20you%20monitor%20program%20counter%2C%20and%20heap%20an%20SRAM.%20I%20do%20not%20know%20if%20you%20are%20using%20an%20RTOS.%26nbsp%3B%20Check%20for%20any%20jumps%20to%20invalid%20addresses%2C%20for%20example%20from%20flash%20to%20SRAM%2C%26nbsp%3B%20and%20viceversa.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBest%20regards%2C%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EDiego%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2202626%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202626%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%26gt%3B%26nbsp%3B%3CSPAN%3EDo%20you%20mean%20that%20If%20you%20commit%20back%20to%20a%20previous%20stage%20of%20your%20project%2C%20does%20debug%20starts%20to%20work%20better%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EYes.%20However%2C%20after%20reverting%20to%20an%20old%20version%2C%20I%20have%20to%20flash%20the%20board%20once%20using%20the%20Secure%20Provisioning%20tool%20before%20debugging%20becomes%20reliable%20again.%20From%20then%20on%2C%20I%20can%20flash%20from%20the%20IDE%20as%20usual.%3C%2FP%3E%3CP%3EIf%20I%20then%20go%20back%20to%20my%20latest%20code%2C%20I%20can%20debug%20successfully%20once%2C%20but%20then%20subsequent%20attempts%20fail.%3C%2FP%3E%3CP%3E%26gt%3B%26nbsp%3B%3CSPAN%3EDoes%20this%20problem%20repeats%20by%20importing%20the%20project%20on%20other%20workspace%20or%20PC%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20installed%20the%20IDE%20v25.6%20on%20a%20fresh%20machine%20with%20no%20previous%20install%2C%20copied%20over%20the%20project%2C%20built%20and%20attempted%20to%20debug%2C%20and%20the%20result%20was%20the%20same.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2202158%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202158%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20patience%20and%20more%20info!%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDo%20you%20mean%20that%20If%20you%20commit%20back%20to%20a%20previous%20stage%20of%20your%20project%2C%20does%20debug%20starts%20to%20work%20better%3F%3C%2FP%3E%0A%3CP%3EI%20wonder%20how%26nbsp%3B%20I%20could%20replicate%20this%20problem%20on%20my%20side.%20Does%20this%20problem%20repeats%20by%20importing%20the%20project%20on%20other%20workspace%20or%20PC%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAll%20the%20best%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDiego%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2199194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2199194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIt's%20a%20very%20simple%20board%20that%20I%20was%20using%20to%20test%20a%20few%20peripherals.%20Basically%20it's%20the%20MCU%2C%20a%20QSPI%20flash%20for%20XIP%2C%20a%20few%20SPI%20and%20I2C%20peripherals%2C%20and%20a%20USB%20port.%3CBR%20%2F%3E%3CBR%20%2F%3EPerhaps%20I%20didn't%20make%20it%20clear%20that%20the%20project%20all%20worked%20fine%20and%20ran%20OK%20under%20the%20debugger%20until%20it%20reached%20a%20certain%20size.%20I%20was%20working%20on%20this%20quite%20happily%20for%20a%20couple%20of%20days%20until%20the%20debugger%20suddenly%20began%20to%20fail.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20IDE%20itself%20continues%20to%20work%20fine%20for%20my%20other%20project%2C%20so%20I'm%20not%20concerned%20about%20the%20IDE%20itself.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2199169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2199169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20clarification%2C%20yes%20I%20was%20referring%20to%20those%20files%20as%20the%20FCB.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20if%20the%20problem%20lies%20on%20the%20current%20application%20settings%3F%26nbsp%3B%20I%20want%20to%20differentiate%20if%20this%20is%20problem%20lies%20on%20flash%20settings%2C%20application%20settings%20or%20IDE.%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhat%20is%20the%20result%20if%20you%20try%20to%20run%20hello%20world%20demo%3F%20using%20your%20same%20FCB%20that%20already%20works.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20provide%20more%20details%20about%20your%20project%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDiego%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2198241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2198241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20using%20the%20attached%20files%20to%20configure%20the%20flash.%20They're%20copied%20from%20an%20SDK%20example%2C%20and%20I've%20checked%20that%20they're%20identical%20with%20the%20files%20on%20my%20working%20project.%3C%2FP%3E%3CP%3EThe%20flash%20IC%20is%20the%20same%20on%20both%20boards%2C%20a%20Winbond%26nbsp%3B%3CSPAN%3EW25Q64JVXGIQ.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EDo%20these%20files%20define%20the%20%22FCB%22%20that%20you're%20referring%20to%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197785%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197785%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20reaching%20out!%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMaybe%20it%20is%20the%20FCB%20on%20your%20IDE%20side.%20Have%20you%20reviewed%20that%3F%20Let%20me%20explain.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20using%20the%20SEC%20tool%2C%20the%20SEC%20tool%20does%20not%20writes%20the%20image%20but%20writes%20a%20%22minimalistic%22%20FCB.%20When%20using%20the%20IDE%20the%20image%20contains%20the%20FCB%20(qspi_config%20if%20I%20remember%20well).%20Have%20checked%20that%20the%20FCB%2Fqspi_config%20matches%20your%20image%3F%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDiego%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2247185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2247185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETo%20rule%20out%20issues%20with%20my%20custom%20board%2C%20I%20obtained%20an%26nbsp%3BMIMXRT1010%20EVK.%20The%20behaviour%20is%20the%20same%20on%20the%20EVK%20board.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2254590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%2C%20%3CBR%20%2F%3EI%20understand%20that%20the%20issue%20started%20after%20you%20made%20changes%20to%20your%20code.%20in%20order%20to%20support%20you%20better%2C%20could%20you%20please%20share%20the%20specific%20modifications%20you%20applied%20compared%20to%20the%20original%20project%3F%3CBR%20%2F%3EIn%20particular%2C%20I%20am%20interested%20in%20any%20changes%20related%20to%20the%20boot%20process%2C%20such%20as%3A%3C%2FP%3E%0A%3CP%3EUpdates%20to%20the%20FCB.%3CBR%20%2F%3EAdjustments%20to%20memory%20regions.%3CBR%20%2F%3EWhether%20you%20switched%20between%20XIP%20and%20non-XIP%20modes.%3C%2FP%3E%0A%3CP%3EBR%3CBR%20%2F%3EHabib%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2255085%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255085%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI've%20not%20changed%20the%20FCB%20and%20have%20always%20used%20XIP.%3C%2FP%3E%3CP%3EI%20did%20change%20the%20memory%20regions.%20I%20do%20this%20in%26nbsp%3BResetISR()%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%23define%20IOMUXC_GPR_GPR16%20(*(unsigned%20int*)0x400AC040)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%23define%20IOMUXC_GPR_GPR17%20(*(unsigned%20int*)0x400AC044)%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Evoid%20ResetISR(void)%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%2F%2F%20Disable%20interrupts%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E__asm%20volatile%20(%22cpsid%20i%22)%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E__asm%20volatile%20(%22MSR%20MSP%2C%20%250%22%20%3A%20%3A%20%22r%22%20(%26amp%3B_vStackTop)%20%3A%20)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%2F%2F%20reconfigure%20the%20flexram%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3EIOMUXC_GPR_GPR17%20%3D%200xE9%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3EIOMUXC_GPR_GPR16%20%3D%20IOMUXC_GPR_GPR16%20%7C%200x4%3B%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2259478%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2259478%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%2C%3C%2FP%3E%0A%3CDIV%3ECould%20you%20please%20check%20if%20this%20%3CA%20href%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fmcuxsdk%2Flatest%2Fhtml%2Fboards%2FRT%2Fevkmimxrt1010%2FgettingStarted%2Ftopics%2Fhow_to_add_or_remove_boot_header_for_xip_targets.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eapp%20note%3C%2FA%3E%20helps%20you%20solve%20the%20problem%3F%3C%2FDIV%3E%0A%3CP%3EBR%3CBR%20%2F%3EHabib%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2259774%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2259774%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EBoth%20preprocessor%20symbols%20are%20set%20to%201%20in%20my%20project.%3C%2FP%3E%3CDIV%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3EXIP_EXTERNAL_FLASH%3D1%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3EXIP_BOOT_HEADER_ENABLE%3D1%3C%2FFONT%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2261481%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2261481%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20perform%20a%20mass%20erase%20through%20MCUXpresso%20using%20the%20serial%20downloader%20configuration%20before%20debugging%20the%20application%3F%3CBR%20%2F%3EThis%20in%20order%20to%20verify%20that%20the%20flashed%20application%20is%20not%20interfering%20with%20any%20communication%20between%20the%20debugger%20and%20the%20MCU.%3C%2FP%3E%0A%3CP%3EBR%3CBR%20%2F%3EHabib%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2262540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2262540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20the%20meantime%20I've%20unblocked%20myself%20by%20removing%20the%20instructions%20to%20reallocate%20the%20FlexRAM%20(mentioned%20in%20my%20post%20above).%3C%2FP%3E%3CP%3EIf%20I%20leave%20the%20FlexRAM%20at%20its%20default%20allocation%2C%20I%20can%20debug%20fine.%3C%2FP%3E%3CP%3EIs%20there%20something%20wrong%20with%20how%20I'm%20reallocating%20the%20FlexRAM%3F%20I'm%20doing%20it%20in%20exactly%20the%20same%20way%20on%20another%20project%20and%20that's%20always%20worked%20fine.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2263036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2263036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20aware%20of%20the%20app%20note.%20As%20you%20can%20see%20from%20my%20post%2C%20I'm%20changing%20the%20FlexRAM%20configuration%20at%20the%20start%20of%20the%20reset%20handler%2C%20as%20recommended%20by%20the%20app%20note.%20My%20other%20project%20does%20exactly%20the%20same%20thing%20and%20this%20has%20worked%20fine%20for%20over%20a%20year%20now.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2263033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2263033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20problem%20could%20be%20that%20the%20FlexRAM%20configurations%20are%20being%20manipulated%20while%20it%20is%20in%20execution%2C%20which%20may%20cause%20an%20unexpected%20error.%20Therefore%2C%20to%20use%20FlexRAM%20correctly%2C%20I%20highly%20recommend%20checking%20this%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN12077.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eapp%20note%3C%2FA%3E%20that%20explains%20how%20to%20use%20FlexRAM%20in%20i.MX%20RT.%3CBR%20%2F%3EIn%20the%20other%20hand%2C%20it%20could%20be%20that%20in%20your%20other%20projects%20you%20are%20not%20using%20FlexRAM%2C%20and%20it%20is%20configured%20correctly%2C%20which%20would%20not%20cause%20any%20issues.%3C%2FP%3E%0A%3CP%3EFinally%2C%20I%20suggest%20you%20check%20out%20these%20community%20posts%20that%20might%20help%20you%20solve%20the%20issue%3A%3C%2FP%3E%0A%3CP%20lang%3D%22x-none%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FMCUXpresso-IDE-Knowledge-Base%2FRelocating-Code-and-Data-Using-the-MCUXpresso-IDE%2Fta-p%2F1103719%22%20target%3D%22_blank%22%3ERelocating%20Code%20and%20Data%20Using%20the%20MCUXpresso%20IDE%20-%20NXP%20Community%3C%2FA%3E%3C%2FP%3E%0A%3CP%20lang%3D%22x-none%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-RT-Crossover-MCUs-Knowledge%2FRT-board-recovery-for-debugger-connect-issues%2Fta-p%2F1635260%22%20target%3D%22_blank%22%3ERT%20board%20recovery%20for%20debugger%20connect%20issues%20-%20NXP%20Community%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBR%3CBR%20%2F%3EHabib%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2264210%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264210%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EIf%20we%20look%20at%20the%20configuration%20of%20IOMUXC_GPR_GPR17%20based%20on%20the%20app%20note%20that%20I%20provided%20to%20you%2C%20I%20can%20see%20that%20you%20have%20the%20following%20configuration%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Habib_MS_0-1765918625792.png%22%20style%3D%22width%3A%20550px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Habib_MS_0-1765918625792.png%22%20style%3D%22width%3A%20550px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Habib_MS_0-1765918625792.png%22%20style%3D%22width%3A%20550px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Habib_MS_0-1765918625792.png%22%20style%3D%22width%3A%20550px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370285iDD4846F6289B24B8%2Fimage-dimensions%2F550x159%3Fv%3Dv2%22%20width%3D%22550%22%20height%3D%22159%22%20role%3D%22button%22%20title%3D%22Habib_MS_0-1765918625792.png%22%20alt%3D%22Habib_MS_0-1765918625792.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHowever%2C%20keep%20in%20mind%20the%20following%20note%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Habib_MS_1-1765918703735.png%22%20style%3D%22width%3A%20478px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Habib_MS_1-1765918703735.png%22%20style%3D%22width%3A%20478px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Habib_MS_1-1765918703735.png%22%20style%3D%22width%3A%20478px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Habib_MS_1-1765918703735.png%22%20style%3D%22width%3A%20478px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370287iEE90A92EE7EB3C1F%2Fimage-dimensions%2F478x91%3Fv%3Dv2%22%20width%3D%22478%22%20height%3D%2291%22%20role%3D%22button%22%20title%3D%22Habib_MS_1-1765918703735.png%22%20alt%3D%22Habib_MS_1-1765918703735.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3ECould%20you%20try%20another%20configuration%20that%20better%20fits%20the%20requirements%20of%20your%20application%20and%20complies%20with%20the%20note%E2%80%99s%20conditions%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBR%3CBR%20%2F%3EHabib%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2264899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20will%20try%20that.%3C%2FP%3E%3CP%3ECould%20you%20explain%20though%2C%20why%20is%20the%20ROM%20requirement%20relevant%3F%20Since%20my%20application%20is%20already%20running%20when%20I%20change%20the%20FlexRAM%2C%20what%20ROM%20code%20would%20be%20running%20after%20that%20point%3F%3C%2FP%3E%3CP%3EI%20can%20understand%20that%20this%20would%20affect%20the%20boot%20loader%20if%20the%20FlexRAM%20was%20changed%20in%20the%20fuses.%20But%20I'm%20not%20changing%20the%20fuses%20-%20I'm%20changing%20the%20FlexRAM%20in%20software.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2266295%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20debugging%20iMXRT1011%20project%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2266295%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213907%22%20target%3D%22_blank%22%3E%40expertsleepers%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20try%20to%20take%20that%20note%20into%20account%20to%20see%20if%20this%20resolves%20the%20issue%3F%3C%2FP%3E%0A%3CP%3EIn%20the%20other%20hand%2C%20the%20SDK%20(version%2025.06)%20offers%20an%20example%20that%20configures%20the%20FlexRAM%20called%20%E2%80%9Cflex_ram_access%E2%80%9D%2C%20I%20highly%20recommend%20analyzing%20this%20example%20to%20understand%20how%20it%20works%20so%20you%20can%20replicate%20it%20in%20your%20code.%3CBR%20%2F%3EAdditionally%2C%20could%20you%20verify%20that%20the%20requirements%20mentioned%20in%20chapter%202.1.1.2%20called%20%E2%80%9CRuntime%20configuration%E2%80%9D%20in%20the%20app%20note%20I%20provided%20to%20you%20are%20being%20met%3F%3C%2FP%3E%0A%3CP%3EBR%3CBR%20%2F%3EHabib%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E