RT1050 evkb Unable to download and debug QSPI Flash

cancel
Showing results for 
Search instead for 
Did you mean: 

RT1050 evkb Unable to download and debug QSPI Flash

483 Views
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 Kudos
3 Replies

132 Views
jimhuang2
Contributor III

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

0 Kudos

132 Views
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

132 Views
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