How to program a new flash of RT1052 via QSPI?

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

How to program a new flash of RT1052 via QSPI?

3,694 Views
cody1
Contributor III

I have a new board of RT1052. The flash memory (W25Q64JV) is empty. How to program from 0x60000000 to 0x60001FFF via CMSIS-DAP-Debugger with MCUXpresso IDE? 

I got an example code that can overwrite the booting area with Keil-C after erasing all. I found that they use both fsl_flexspi_nor_boot.c and fsl_flexspi_nor_flash.c to program the flash. My application can be running after loading this example code. 

pastedImage_1.pngpastedImage_2.png

I found some similar files in the MCUXpresso IDE. I want to know how to use it. Can anyone teach me how to use the XIP folder?

pastedImage_3.png

pastedImage_4.png

How to configure the above two files?

Labels (1)
5 Replies

3,179 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Cody,

Beside hardware, the key steps to change to QSPI XIP on RT1050 EVKB is list as below:

1. Copy RT1021 flexspi_nor_config_t structure to evkbimxrt1050_flexspi_nor_config.c

2. In properties-> C/C++ build->MCU settings, change flash driver to MIMXRT1050-EVK_IS25WP064A.cfx.

https://community.nxp.com/thread/509703 

Regards,

Jing

3,179 Views
cody1
Contributor III

I tried the above method. I received some error messages. as follows:
pastedImage_1.png

My settings are as follows,

pastedImage_2.pngpastedImage_4.png
pastedImage_6.png

pastedImage_5.png

0 Kudos

3,179 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

I'm not sure if IS25WP064A.cfx can work. But someone said it can try. RT1050 QSPI flash change to Winbond W25Q32JV (3.3V) 

You can also try MIMXRT1050_SFDP_QSPI.cfx. Since W25Q32 datasheet announce it has SFDP register, maybe it is ok.

Otherwise you have to make .cfx by yourself. The project is in MCUXpressoIDE_11.0.0_2509_prc3c\ide\Examples\Flashdrivers\NXP\iMXRT\iMXRT1050_QSPI.

You also can make keil .flm for any SPI flash. Please download the generator project from https://pan.baidu.com/s/15LYeUSMYgduJf2l6EPC_7Q . The password is h84q

Regards,

Jing

3,179 Views
cody1
Contributor III

I will keep trying. 

Thank a lot. 

Cody

0 Kudos

3,179 Views
cody1
Contributor III
  1. My flash is W25Q64JV. This is not IS25W064A. You told me to use MIMXRT1050-EVK_IS25W064A.cfx in MCUXpresso. Are these two memories compatible? 
  2. How to get the *.cfx file for MCUXpresso if I change another kind of flash memory or different size of memory?
  3. How to get the *.FLM file for Keil-C if I change another kind of flash memory or different size of memory?
  4. How to generate both *.cfx and *.FLM? Do you have example code for generating both files?
0 Kudos