Hi,
I am able read, write, program and erase the custom board flash (W25Q01NWZEIQ) via secure provisioning tool (serial downloader mode enabled and FLASH_AUTO_PROBE_EN = 1). We are using FlexSPI_1 primary configuration pin as an interface to flash
But in MCUXpresso IDE we are not able to flash the .axf file. We modified few parameters of evkbmimxrt1170_flexspi_nor_config.c file such as look up table, size as 128 MB etc. The flash error appears like below.
ProgramPage (0x30000000, 0x20002838, 0x4000) status 0x1 - driver reported driver error - EXTSPIJ driver rc -96 (0xFFFFFFA0).
For more details, please find the attached files.
Thanks in advance
Hello @Raj_01,
The error occurs because the .cfx file used by MCUXpresso IDE is designed specifically for the memories populated on the EVK. As you may know, different flash memories can require different command sets, initialization sequences, and configurations. Therefore, the EVK flash loader may not be compatible with your custom memory device.
To debug your application in MCUXpresso IDE, you will need to create and use a custom .cfx flash driver that supports your specific memory. The following links offers a guide to make this file, although these guides are not specifically designed for the RT1170, you can follow the same procedure:
AN13386: RT600 Flash Loader for Custom Flash Device
How to Create a New Flash Driver for MCUXpresso IDE
Please let me know if you have any further questions.
BR
Habib
Hi Habib,
I followed the same instructions as you mentioned in the last reply, also modified some files such as flashprg.c , flashConfig.h, flexspi_nor_flash.h, flasdev.c to match our custom board flash features and built new .cfx file and flashed. But still, we are unable to flash. We are getting some error and warnings, please find the error files are attached. Please suggest solution for this.
Thanks in advance.
Hello @Raj_01,
In order to support you better, could you please provide me the following information?
-Could you describe the steps you performed in the Secure Provisioning Tool? Did you use the Boot memory configuration to test your flash?
-Are you currently using the FLASH_AUTO_PROBE_EN fuse, or are you using GPIO_DISP_B1_6 to enable this bit?
-If you test your custom .cfx flash loader without FLASH_AUTO_PROBE_EN enabled, do you observe the same behavior?
-When you launch a debug session, what is the current boot pin configuration?
-Could you also share the reason for using FLASH_AUTO_PROBE_EN in your application?
BR
Habib