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.
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?
How to configure the above two files?
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.
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