How to enable boot from onboard qspi flash in mimxrt1052evkb

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to enable boot from onboard qspi flash in mimxrt1052evkb

跳至解决方案
1,425 次查看
ganes_rames
Contributor II

Hi , 
    I have followed the following application note provided by nxp AN12183 and AN12108, 

1. R356, R361 - R366 are removed and R153 - R158 resistors are weld by using 0 ohm.

2. And i have changed flexspi nor configuration as follows,

ganes_rames_0-1734332471609.png

3. I have changed linkserver flash configuration also like below,

ganes_rames_1-1734332558020.png

 

After doing all this, i cant able to flash or debug onboard qspi flash. am i missing anything ?? I got the below error,

"Sending VECTRESET to run flash driver

Driver V.2 dynamic startup failed - driver Init provided no flash parameters

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 MIMXRT1050_SFDP_QSPI.cfx"



ganes_rames_2-1734332665939.png

 


 

0 项奖励
回复
1 解答
1,341 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @ganes_rames ,

Thanks for your update!

Since flexspi_nor_polling_transfer is running fine, it proves two things:
1 . There is no problem with the hardware connection between the MCU and Flash;
2 . The MCU RAM itself is able to run the programmer correctly, but the XIP will fail;

Then, I think the problem might be in your `qspiflash_config`, we suggest you try to use the configuration in RT1060, they use the same QSPI Flash, which should guarantee no error.

Best regards,
Gavin

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,410 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @ganes_rames ,

Thanks for your interest in NXP MIMXRT series!

After you have followed AN12108 exactly step by step and still facing problems, I suggest you to look for two aspects.

1. Hardware connection.Use a multimeter to measure if your hardware is modified as expected.There was a similar problem with a previous customer.

2. Go into serial download mode and try to erase the flash and then flash the image again.

Please refer to these threads:
https://community.nxp.com/t5/i-MX-Processors/Error-while-flashing-the-board/td-p/1621610
https://community.nxp.com/t5/MCUXpresso-General/chip-initialization-failed-Ef-55-Dynamic-flash-drive...

Best regards,
Gavin

0 项奖励
回复
1,376 次查看
ganes_rames
Contributor II

Hi @Gavin_Jia ,

      In adddition i just try to run flexspi_nor_polling_transfer example from SDK. it shows like below,

ganes_rames_0-1734347402889.png


Am i need to check any hardware related stuffs ? 

0 项奖励
回复
1,342 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @ganes_rames ,

Thanks for your update!

Since flexspi_nor_polling_transfer is running fine, it proves two things:
1 . There is no problem with the hardware connection between the MCU and Flash;
2 . The MCU RAM itself is able to run the programmer correctly, but the XIP will fail;

Then, I think the problem might be in your `qspiflash_config`, we suggest you try to use the configuration in RT1060, they use the same QSPI Flash, which should guarantee no error.

Best regards,
Gavin

0 项奖励
回复
1,405 次查看
ganes_rames
Contributor II

Hi @Gavin_Jia ,

      Thanks for the quick reply, as per your suggestion i try to erase chip using mcu boot utlity tool, i got the below pop-up error, i am completly new to nxp platform.

ganes_rames_0-1734342499787.png


This is the device status,
--------MCU device Register----------
OCOTP->UUID[31:00] = 0x613acdaf
OCOTP->UUID[63:32] = 0x464db9d7
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000001
BMOD[1:0] = 2'b01 (Serial Downloader)
HAB status = Open
--------MCU Flashloader info-------
Current Version = K2.1.0
Target Version = T1.0.0
--------MCU device eFusemap--------
(0x450) BOOT_CFG0 = 0x0
(0x460) BOOT_CFG1 = 0x0
(0x470) BOOT_CFG2 = 0x0
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), It means there is no application in boot device, MCU will enter serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), It means MCU will boot application according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = 0x200003
FlexRAM configuration is from eFuse
OCOTP->MISC_CONF0[31:00] = 0x40
FlexRAM Partion =0000 - 128KB ITCM, 128KB DTCM, 256KB OCRAM

can you please help me to resolve this issue. Thanks in advance. 

0 项奖励
回复
1,402 次查看
ganes_rames
Contributor II
note : I have changed boot pins to serial downloader mode : off, off, off, on .
0 项奖励
回复