I'm using the MIMXRT1170 EVK with the IAR tool set. I am running the flexspi_nor_polling_transfer project from the driver_examples provided with the SDK. I am building the debug project target which should NOT use the flexspi flash as I understand it. The program fails on a memory compare between the program buffer and the read buffer. I have not modified any of the code, the project is as provided in SDK 2.15. Any help/suggestions about why the provided example fails would be appreciated. I'm intending to use this code as a basis to program flash in the field via boot code that resides in on-chip flash.
if (memcmp(s_nor_program_buffer, s_nor_read_buffer, sizeof(s_nor_program_buffer)))
{
PRINTF("Erase data - read out data value incorrect !\r\n ");
return -1;
}
Solved! Go to Solution.
I resolved my issue. I had created my own pin_mux.c and had an error in it. The example application and my test code now work erasing/writing/reading flash. Thanks for your attention to my issue.
Hi @GLantzTCore ,
Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.
Please follow me to resolve it.
1.select the project option
2. Choose the CMSIS DAP, setup, reset type to system(default)
3. this is the test result:
You can see, the test result passed.
Please try it on your side.
If you still have question about it, please kindly let me know.
If your question is solved, please help me to mark the correct answer, just to close this case.
Any new issues, welcome to create the new question post.
Best Regards,
kerry
Reset of System (default) is what my settings are. It does not run successfully.
Hi @GLantzTCore ,
Thanks for your updated information, please also check the boot mode, it should be in the serial download mode, SW1:1-OFF,2-OFF,3-ON,4-OFF.
Now, follow me to do more testing, in fact, my side works OK:
1. Try the flexspi_nor_debug
Whether this method works OK on your side?
At least, this works on my side, no need to modify the reset type
2. if point 1 is working, you also can in the debug project, prepreocessor add:
XIP_EXTERNAL_FLASH=1
try it again, this 2 method works on my MIMXRT1170-EVK rev C4 board.
Wish it helps you!
Best Regards,
Kerry
I resolved my issue. I had created my own pin_mux.c and had an error in it. The example application and my test code now work erasing/writing/reading flash. Thanks for your attention to my issue.