RT1020 Flash download problem

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

RT1020 Flash download problem

1,998 Views
614678489
Contributor I

I couldn't download my program into the flash...

Flash=88H Required=00H

Too myany errors to display!

Error: Flash Download failed - "Cortex-M7"

What's wrong?

I use SWD, and my MDK edition is 5.25.

Labels (1)
0 Kudos
4 Replies

1,337 Views
igorpadykov
NXP Employee
NXP Employee

Hi Fun

for swd one can look on

NXP RT1020 Program/Debug by SWD 

for QSPI issues one can check app notes, like AN12108 How to Enable Boot from QSPI Flash on link

i.MX RT1020 MCU/Applications Crossover Processor | Arm® Cortex®-M7 @500 MHz |NXP 

for programming also one can use flashloader :

Programmers (Flash, etc.)
Flash loader i.MXRT1020
https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/i.mx-appl...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,337 Views
614678489
Contributor I

Thanks. Inside AN12108, Table 3, QSPI  FLASH support list, they are all 8MB or 16MB, but I want to use small-size flash around 1MB or even 512KB , is it Oaky? do I need to change the flash programming algorithm ? and can you provide it ?

0 Kudos

1,337 Views
igorpadykov
NXP Employee
NXP Employee

yes small-size flash also may be used, for programming please check

https://www.nxp.com/docs/en/nxp/application-notes/AN12183.pdf 

May be useful to look on latest MCUXpressoIDE which allows programming all JESD216

compatible flashes (it has iMXRT1020_JEDEC_SFDP.cfx driver).

https://community.nxp.com/message/1041547?commentID=1041547#comment-1041547 

Check MCUXpresso_IDE_User_Guide included in package

Welcome | MCUXpresso SDK Builder 

Best regards
igor

0 Kudos

1,337 Views
614678489
Contributor I

The chip is PIMXRT1021CAG4A,  and the interface we used is QSPI. We changed the external flash (serial nor flash) several times, different brands, different capacity, but the error is same.

Why?

0 Kudos