Hi everybody.
I've tried countless ways to make my imxrt1051 with a W25Q64JV 64mbit flash work in debug, but I couldn't. The hardware design is custom, but the physical bindings are identical to the bindings in kit B. I'm using Jlink EDU Mini. I changed the JlinkDevices.xml for QSPI flash as below:
My last code generation flow was as follows:
1) I generated a blank project in MCUXpresso. I followed the default settings.
2) Only little mods:
3) The generated project works perfectly (the variable i increments - lol).
After this point, I followed it like this:
4)
Declared memory size and preprocessor symbols (the other settings and defines were generated by MCUXpresso...):
5) I created a XIP source folder and placed there 6 flash related files:
The flexspi_nor_config_t structure is:
I tried others, too.
6) And finally, i added the flash:
Build ok.
But don't work...
Sometimes the tab above shows, sometimes no. Disassembly ever blank.
I attached the log.
I made change in flexspi_nor_config_t structure, like this:
And the result is almost the same:
The boot mode is [1:0] = 0b10 and the boot cfg are cfg1[7:0] = 0b0000 0000 and cfg2[3:0] = 0b0111.
What is wrong?
Any help is always welcome.
Thanks for all in advance.
From Log info , the IDE flashloader worked well, but it failed to get initial PC from flash.
I believe your flexspi_nor_config_t structure is not applicable to W25Q64JV, please double check below setting:
1. Check whether QE is enabled
2. Check whether dummy cycle value of READ seq in LUT is matched with Flash.
Anyway you can try MCUBootUtility tool to flash image, Tool will generate matched flexspi_nor_config_t structure automatically for your reference.