MIMXRT1170 EVK flexspi issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIMXRT1170 EVK flexspi issues

Jump to solution
669 Views
GLantzTCore
Contributor III

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;
}

0 Kudos
Reply
1 Solution
628 Views
GLantzTCore
Contributor III

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.

View solution in original post

0 Kudos
Reply
4 Replies
651 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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)

kerryzhou_0-1718162414836.png

 

3. this is the test result:

kerryzhou_1-1718162420946.png

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

 

0 Kudos
Reply
641 Views
GLantzTCore
Contributor III

Reset of System (default) is what my settings are.  It does not run successfully.

0 Kudos
Reply
638 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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

kerryzhou_0-1718244626204.png

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

kerryzhou_1-1718244746240.png

kerryzhou_2-1718244754347.png

 

try it again, this 2 method works on my MIMXRT1170-EVK rev C4 board.

 

Wish it helps you!
Best Regards,

Kerry

 

 

 

0 Kudos
Reply
629 Views
GLantzTCore
Contributor III

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.

0 Kudos
Reply