Hello,
I was trying to connect to custom board with i.MXRT1166 controller. The boot configure sets as internal boot and boot from FlexSPI1 NOR flash where I connect Micron N25Q032A13 NOR flash. There is no external SDRAM on board.
The demo I tried was EVKMIMXRT1160_hello_world_demo. I tested on the RT1160-EVK already. When I debug on the custom board using MCUXpresso, it returns to MemManage_Handler. I modified the following to comply with my custom board:
1. modified the memory map to
2. remove USE_SDRAM in the compiler defined symbols
3. modified XIP LUT in qspiflash_config
4. modified MPU setting for FLEXSPI address
Is there anything missing to be configured?
Thank you in advance.
Hi @hedazhuang ,
Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.
If you don't have the SDRAM, delete all the SDRAM and don't configure the DCD.
in the defined symbols, please define:
XIP_BOOT_HEADER_DCD_ENABLE =0;
Remove the SDRAM in the memory.
I think you can test the iled_blinky project, it will be easier, as this project didn't configure the SDRAM.
Wish it helps you!
If you still have questions about it, please kindly let me know.
Best Regards,
Kerry
Hello @kerryzhou
Thank you for your reply.
Do you know why after I uploaded the wrong image from MCUXpresso, I couldn't erase flash anymore. It returns the following info. How can I recover from that?
Driver V.2 dynamic startup failed - driver Init provided no flash parameters
Flash Driver V.2 startup failed - rc Ef(55): Dynamic flash driver startup failed to provide flash parameters.
Terminate (0x0, 0x0, 0x0) status 0x40 - driver reports init failure - EXTSPIJ driver rc 20107 (0x4E8B)
chip initialization failed - Ef(55): Dynamic flash driver startup failed to provide flash parameters.
Hi @hedazhuang
It is the normal situation, when the RT is downloaded the wrong image which can't be boot, then the debugger connection may have issues.
At this time, the recovery way is:
1. enter the serial download mode.
2. Download a working project, eg, the SDK led_blinky project, don't care about the debug result, just make sure the donwload finished.
3. power off and switch to the internal boot mode again.
4. check the app boots OK, then use your own working project download again.
Please try it on your side.
If you still have questions about it, please kindly let me know.
Best Regards,
Kerry