RT1050 evkb Unable to download and debug QSPI Flash

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

RT1050 evkb Unable to download and debug QSPI Flash

2,387 次查看
jimhuang2
Contributor III

Hello,

I would to used Qspi flash to boot RT1050 evkb, but be unable to debug and download Qspi flash.

IDE: MCUXpresso

Project Name: Hello word (Example code)

Step 1. On Rt1050 evkb change Hyper Flash to QSPI Flash.

   pastedImage_1.pngpastedImage_2.png

            NOTE: IS25WP064A add 33K Pull-up resistors to WP and RESET PIN.

Step 2. Set Boot Mode switch (OFF, OFF, ON, OFF), and Power ON.

Step 3. Set MCUXpresso

     Setting -> Preprocessor:

               XIP_EXTERNAL_FLASH=1, XIP_BOOT_HEADER_ENABLE=1, XIP_BOOT_HEADER_DCD_ENABLE=1

     Setting -> MCU Linker -> Managed Linker Script : uncheck "link application to RAM" 

     MCU setting -> Flash Driver select: MIMXRT1050-EVK_IS25WP064A.cfx

   pastedImage_5.png      

Step 4. Modify xip file (evkmimxrt1020_flexspi_nor_config.c)

      Change hyperflash_config to qspiflash_config

   pastedImage_7.png

 

Step 5. Check the qspiflash_config parameter in the 0x60000000 ( .map)

Step 6. Create Link Server Debug  

pastedImage_8.png

Debug Information:

Result : Thread run ROMCP code, it can’t run user code(0x60002000)

pastedImage_12.png

Disassembly 0x60000000(QSPI Flash) address

pastedImage_13.png

Best Regards,

Jim

0 项奖励
回复
3 回复数

2,036 次查看
jimhuang2
Contributor III

Thank all, Replace the board and the chip will operate normally. (Maybe efuse is set)

0 项奖励
回复

2,036 次查看
BlackNight
NXP Employee
NXP Employee

The Flash size in step 3) seems to be a bit too large? Should it not be 0x80000?

I did something similar, but with a different board, maybe you could check it:

Debug and Execute Code from FLASH on the Seeed Arch Mix NXP i.MX RT1052 Board | MCU on Eclipse 

I hope this helps,

Erich

2,036 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Huang,

I followed your step to do this again on my board. It seems work fine. So, please check your hardware again.

Regards,

Jing