i.MXRT1176 booting issue

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

i.MXRT1176 booting issue

2,645 Views
Harishnamala
Contributor II
Currently we are working related MIMXRT1176AVM8A custom Board and we are facing some issues while booting. 
 
In our custom board we have used the following components 
 
SDRAM Part number : MT48LC16M16A2P-6A IT:G
QSPI FLASH Part number : MT25QL512ABB1EW9-0SIT TR
Tool we are using : latest MCUEXPRESSO 
 
--> QSPI pins connected to FLEXSPI1_A (SD BANK)
--> SDRAM PINS CONNECTED TO EMC BANK 
--> using JTAG we are detected M7 core.
During Debug , even the Initial Hello World program is not running . The Debugger stops before reaching the main() function
 
Kindly provide your guidance and support regarding this issue.  
If any reference manuals for JTAG Debugging Kindly provide to us.
Tags (1)
0 Kudos
Reply
4 Replies

2,622 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Harishnamala ,

Thanks for your interest in NXP MIMXRT series!

1. If FlexSPI is configured to loop back from the DQS pin, the DQS pin must be left floating.

Gavin_Jia_0-1764832206613.png

2. The Flash data line does not require an external pull-up resistor; please keep these resistors disconnected.

Best regards,
Gavin

 

0 Kudos
Reply

2,570 Views
Harishnamala
Contributor II

HI @Gavin_Jia 

As per you suggestion we changed the DQS pin Floating, removed all pullups for flash device

Removed monitor reset command in startup tab of debug configurations, then we get log1.txt in debugger console error(refer log1.txt attached file)

We observed a different scenerio that code stops at main function  and after click on run button then again goes to 0xdeadbeee showed refer error_msg.png.

While erasing the flash from debug options we got the erase log.

kindly help us regarding this issue.

 

 

0 Kudos
Reply

2,473 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Harishnamala ,

Since you have replaced the flash model, it is recommended to first verify that the flash is functioning properly.

Import the flexspi_polling_cm7 project into MCUXpresso IDE. Then, select the `Link Application to RAM` option in the IDE, recompile, and debug.

If you can access it normally at this point, then your Flash hardware connection is fine. It can be inferred that the issue lies in your Custom Flash not being properly adapted. (LUT & Flahs API & Download Algorithm)

Best regards,
Gavin

 

0 Kudos
Reply

2,434 Views
Harishnamala
Contributor II

HI @Gavin_Jia 

As per your suggestion, we linked the application to RAM. The code is stored in the external flash device, and we have assigned one GPIO pin for toggle output. After powering the board OFF and ON, we are able to see the toggle output on that GPIO pin.

Now we are facing one more issue: when we power on the board, it should boot automatically from flash. However, sometimes it boots and sometimes it does not. We have to repeatedly power cycle the board, and occasionally it boots successfully while other times it does not

Mode pins : internal mode : 01

kindly help us from this issue.

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2254815%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MXRT1176%20booting%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254815%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3ECurrently%20we%20are%20working%20related%20MIMXRT1176AVM8A%20custom%20Board%20and%20we%20are%20facing%20some%20issues%20while%20booting.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EIn%20our%20custom%20board%20we%20have%20used%20the%20following%20components%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3ESDRAM%20Part%20number%20%3A%20MT48LC16M16A2P-6A%20IT%3AG%3C%2FDIV%3E%3CDIV%3EQSPI%20FLASH%20Part%20number%20%3A%20MT25QL512ABB1EW9-0SIT%20TR%3C%2FDIV%3E%3CDIV%3ETool%20we%20are%20using%20%3A%20latest%26nbsp%3BMCUEXPRESSO%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E--%26gt%3B%20QSPI%20pins%20connected%20to%20FLEXSPI1_A%20(SD%20BANK)%3C%2FDIV%3E%3CDIV%3E--%26gt%3B%20SDRAM%20PINS%20CONNECTED%20TO%20EMC%20BANK%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E--%26gt%3B%26nbsp%3Busing%20JTAG%20we%20are%20detected%20M7%20core.%3C%2FDIV%3E%3CDIV%3EDuring%20Debug%26nbsp%3B%2C%20even%20the%20Initial%20Hello%20World%20program%20is%20not%20running%20.%20The%20Debugger%20stops%20before%20reaching%20the%20main()%20function%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EKindly%20provide%20your%20guidance%20and%20support%20regarding%20this%20issue.%26nbsp%3B%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EIf%20any%20reference%20manuals%20for%20JTAG%20Debugging%20Kindly%20provide%20to%20us.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2254910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MXRT1176%20booting%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254910%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%2F256719%22%20target%3D%22_blank%22%3E%40Harishnamala%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20interest%20in%20NXP%20MIMXRT%20series!%3C%2FP%3E%0A%3CP%3E1.%20If%20FlexSPI%20is%20configured%20to%20loop%20back%20from%20the%20DQS%20pin%2C%20the%20DQS%20pin%20must%20be%20left%20floating.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Gavin_Jia_0-1764832206613.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Gavin_Jia_0-1764832206613.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Gavin_Jia_0-1764832206613.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Gavin_Jia_0-1764832206613.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Gavin_Jia_0-1764832206613.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368553i57B3EE4D416699A9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Gavin_Jia_0-1764832206613.png%22%20alt%3D%22Gavin_Jia_0-1764832206613.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E2.%20The%20Flash%20data%20line%20does%20not%20require%20an%20external%20pull-up%20resistor%3B%20please%20keep%20these%20resistors%20disconnected.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2256112%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MXRT1176%20booting%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2256112%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%2F203261%22%20target%3D%22_blank%22%3E%40Gavin_Jia%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20per%20you%20suggestion%20we%20changed%20the%20DQS%20pin%20Floating%2C%20removed%20all%20pullups%20for%20flash%20device%3C%2FP%3E%3CP%3ERemoved%20monitor%20reset%20command%20in%20startup%20tab%20of%20debug%20configurations%2C%20then%20we%20get%20%3CSTRONG%3Elog1.txt%3C%2FSTRONG%3E%20in%20debugger%20console%20error(%3CSTRONG%3Erefer%3C%2FSTRONG%3E%20log1.txt%20attached%20file)%3C%2FP%3E%3CP%3EWe%20observed%20a%20different%20scenerio%20that%20code%20stops%20at%20main%20function%26nbsp%3B%20and%20after%20click%20on%20run%20button%20then%20again%20goes%20to%200xdeadbeee%20showed%20refer%26nbsp%3B%3CSTRONG%3Eerror_msg.png.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWhile%20erasing%20the%20flash%20from%20debug%20options%20we%20got%20the%20%3CSTRONG%3Eerase%20log.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Ekindly%20help%20us%20regarding%20this%20issue.%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257207%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MXRT1176%20booting%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257207%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%2F203261%22%20target%3D%22_blank%22%3E%40Gavin_Jia%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20per%20your%20suggestion%2C%20we%20linked%20the%20application%20to%20RAM.%20The%20code%20is%20stored%20in%20the%20external%20flash%20device%2C%20and%20we%20have%20assigned%20one%20GPIO%20pin%20for%20toggle%20output.%20After%20powering%20the%20board%20%3CSTRONG%3EOFF%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EON%3C%2FSTRONG%3E%2C%20we%20are%20able%20to%20see%20the%20toggle%20output%20on%20that%20GPIO%20pin.%3C%2FP%3E%3CP%3E%3CSTRONG%3ENow%20we%20are%20facing%20one%20more%20issue%3C%2FSTRONG%3E%3A%20when%20we%20power%20on%20the%20board%2C%20it%20should%20boot%20automatically%20from%20flash.%20However%2C%20%3CSTRONG%3Esometimes%20it%20boots%20and%20sometimes%20it%20does%20not%3C%2FSTRONG%3E.%20We%20have%20to%20repeatedly%20power%20cycle%20the%20board%2C%20and%20occasionally%20it%20boots%20successfully%20while%20other%20times%20it%20does%20not%3C%2FP%3E%3CP%3EMode%20pins%20%3A%20internal%20mode%20%3A%2001%3C%2FP%3E%3CP%3Ekindly%20help%20us%20from%20this%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257124%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MXRT1176%20booting%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257124%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%2F256719%22%20target%3D%22_blank%22%3E%40Harishnamala%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3ESince%20you%20have%20replaced%20the%20flash%20model%2C%20it%20is%20recommended%20to%20first%20verify%20that%20the%20flash%20is%20functioning%20properly.%3C%2FP%3E%0A%3CP%3EImport%20the%20flexspi_polling_cm7%20project%20into%20MCUXpresso%20IDE.%20Then%2C%20select%20the%20%60Link%20Application%20to%20RAM%60%20option%20in%20the%20IDE%2C%20recompile%2C%20and%20debug.%3C%2FP%3E%0A%3CP%3EIf%20you%20can%20access%20it%20normally%20at%20this%20point%2C%20then%20your%20Flash%20hardware%20connection%20is%20fine.%20It%20can%20be%20inferred%20that%20the%20issue%20lies%20in%20your%20Custom%20Flash%20not%20being%20properly%20adapted.%20(LUT%20%26amp%3B%20Flahs%20API%20%26amp%3B%20Download%20Algorithm)%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E