2411990_en-US

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

2411990_en-US

2411990_en-US

IMXRT1176 Application Crashed , Later IMXRT doesnot boot

Hi,

I am using IMXRT1176 custom board, during application and secondary bootloader development , my application crashed and later im unable to flash my application. I tried entering serial downloader mode and then erasing the FLEXSPI NOR Flash, even then it displays 


"Flash Driver V.2 startup failed - rc Ef(55): Dynamic flash driver startup failed to provide flash parameters. Terminate (0x0, 0x0, 0x0) status 0x40 - driver reports init failure - EXTSPIJ driver rc 20107 (0x4E8B) chip initialization failed - Ef(55): Dynamic flash driver startup failed to provide flash parameters. failed to initialize flash driver MIMXRT1170_SFDP_QSPI.cfx##"


I tried connecting NXP boot Utility to MCU through USB and go this log.

"--------MCU Device ROM Info--------
Unique ID[31:00] = 0x8295ad77
Unique ID[63:32] = 0x242cc80e
Current Version = K3.0.1
Target Version = T3.0.0
Life Cycle status = HAB Open
--------MCU Flashloader Info-------
Current Version = K2.8.0
Target Version = T1.0.1
--------MCU device eFusemap--------
(0x940) SYSBT_CFG0 = 0x0
(0x950) SYSBT_CFG1 = 0x0
(0x960) SYSBT_CFG2 = 0x8
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), no app in boot device, MCU enters serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), MCU boots app according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = --------
--------MCU Device ROM Info--------
Unique ID[31:00] = 0x8295ad77
Unique ID[63:32] = 0x242cc80e
Current Version = K3.0.1
Target Version = T3.0.0
Life Cycle status = HAB Open
--------MCU Flashloader Info-------
Current Version = K2.8.0
Target Version = T1.0.1
--------MCU device eFusemap--------
(0x940) SYSBT_CFG0 = 0x0
(0x950) SYSBT_CFG1 = 0x0
(0x960) SYSBT_CFG2 = 0x8
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), no app in boot device, MCU enters serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), MCU boots app according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = --------
--------MCU Device ROM Info--------
Unique ID[31:00] = 0x8295ad77
Unique ID[63:32] = 0x242cc80e
Current Version = K3.0.1
Target Version = T3.0.0
Life Cycle status = HAB Open
--------MCU Flashloader Info-------
Current Version = K2.8.0
Target Version = T1.0.1
--------MCU device eFusemap--------
(0x940) SYSBT_CFG0 = 0x0
(0x950) SYSBT_CFG1 = 0x0
(0x960) SYSBT_CFG2 = 0x8
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), no app in boot device, MCU enters serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), MCU boots app according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = --------
--------MCU Device ROM Info--------
Unique ID[31:00] = 0x8295ad77
Unique ID[63:32] = 0x242cc80e
Current Version = K3.0.1
Target Version = T3.0.0
Life Cycle status = HAB Open
--------MCU Flashloader Info-------
Current Version = K2.8.0
Target Version = T1.0.1
--------MCU device eFusemap--------
(0x940) SYSBT_CFG0 = 0x0
(0x950) SYSBT_CFG1 = 0x0
(0x960) SYSBT_CFG2 = 0x8
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), no app in boot device, MCU enters serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), MCU boots app according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = --------"


It says "MCU has entered Flash loader but failed to configure external memory, Please reset board and set proper boot device and try again"


My NOR Flash is W25Q32JV Quad SPI.

Kindly help me in this regard.


Thank you,

Nagendra


Re: IMXRT1176 Application Crashed , Later IMXRT doesnot boot

Hi @Gavin_Jia ,

Thanks for your response.

1. I ran the example from RAM and i am getting the ID as 0.

2. Flash is connected to FlexSPI A 

FlexSPI1 signal RT1176 ball/pad name

FLEXSPI1_A_SCLKGPIO_SD_B2_07
FLEXSPI1_A_DATA0GPIO_SD_B2_08
FLEXSPI1_A_DATA1GPIO_SD_B2_09
FLEXSPI1_A_DATA2GPIO_SD_B2_10
FLEXSPI1_A_DATA3GPIO_SD_B2_11
FLEXSPI1_A_SS0_BGPIO_SD_B1_06

This board used to work with our application and i used it for implementing secondary bootloader for our application by using the flexspi example by erasing and programming the flash and during that time application hung and from then im unable to flash it. 


Re: IMXRT1176 Application Crashed , Later IMXRT doesnot boot

Hi @Nagendra_Kumar ,

The log shows the MCU, ROM and Flashloader are all fine (HAB Open, serial downloader connects). The failure is at FlexSPI–to–W25Q32JV initialization: the tools can't even read the SFDP parameters, so this is a board/config issue, not the flashing tool. Since a new flash also fails, please check in this order:

  1. First run the flexspi_nor_polling_transfer_cm7 example from internal RAM and read the JEDEC ID of the W25Q32JV. If the ID can't be read, it confirms a hardware/pin issue — don't focus on the flashing tool yet.
  2. Confirm which FlexSPI instance / pin group the flash is on. The default .cfx and MCUBootUtility assume FlexSPI1 Port A (EVK wiring). If yours is on FlexSPI2 or FlexSPI1 secondary, modify the pin-group field in option0 and burn the FLEXSPI_PIN_GROUP_SEL fuse (address 0x9A0[10]); in MCUBootUtility select the matching instance explicitly.
  3. Consider using the Secure Provisioning Tool (SPT), which has built-in FCB templates for the W25Q family and a Boot Memory Configuration feature to validate the setup first.

Also, please confirm: has this board ever been successfully programmed and booted from the W25Q32JV before? 

Best regards,
Gavin

Re: IMXRT1176 Application Crashed , Later IMXRT doesnot boot

Hi,

I forgot to mention, i even changed the NOR flash with a new part. Still the error remains.

Re: IMXRT1176 Application Crashed , Later IMXRT doesnot boot

Hi @Nagendra_Kumar ,

Thanks for your update!

I found that the table shows :

FLEXSPI1_A_SS0_B GPIO_SD_B1_06

It should be GPIO_SD_B2_06. Is it a typo or this is what the actual connection looks like? The RAM Code returned a JEDEC ID of 0, indicating that the Flash hardware is not responding at all. Therefore, if your connections are correct, you should check the hardware connections and power supply, and use an oscilloscope to examine the waveforms.

Best regards,
Gavin



Re: IMXRT1176 Application Crashed , Later IMXRT doesnot boot

Hi @Gavin_Jia ,

FLEXSPI1_A_SS0_BGPIO_SD_B1_06

GPIO_SD_B1_06 is a typo. Sorry for this. Its actually connected to GPIO_SD_B2_06 only. I examined the FLEXSPI pins in the table with oscilloscope and found out there is no activity on the pins.

Besides the SS0_B signal is always low when I ran the example you mentioned from the RAM. I have multiple boards of same type and i am getting ID as 0xEF on working boards. The issue is coming specifically in one board where i tested my implementation of secondary bootloader when the board hung. I am confused how a software/application crash can cause this type of behaviour and im stuck whether or not to use my other boards to test the software. Unfortunately i cannot provide the code i wrote. To give you an idea, I wrote my application using FreeRTOS example in SDK and built my application and used the flexspi polling example for implementing the secondary bootloader! Im using 2 LPSPI's using DMA, 2 UART's using DMA and 2 CAN's. Its a small application. im using SDK version 2.8.1. 

Awaiting your response,

Nagendra Kumar.



Tags (1)
No ratings
Version history
Last update:
Saturday
Updated by: