MIMXRT1170 EVK flexspi issues

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MIMXRT1170 EVK flexspi issues

跳至解决方案
2,838 次查看
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 项奖励
回复
1 解答
2,797 次查看
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 项奖励
回复
4 回复数
2,820 次查看
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 项奖励
回复
2,810 次查看
GLantzTCore
Contributor III

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

0 项奖励
回复
2,807 次查看
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 项奖励
回复
2,798 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1885468%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMIMXRT1170%20EVK%20flexspi%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1885468%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%E5%B8%A6%E6%9C%89%20IAR%20%E5%B7%A5%E5%85%B7%E9%9B%86%E7%9A%84%20MIMXRT1170%20EVK%E3%80%82%E6%88%91%E6%AD%A3%E5%9C%A8%E8%BF%90%E8%A1%8C%20SDK%20%E6%8F%90%E4%BE%9B%E7%9A%84%20driver_examples%20%E4%B8%AD%E7%9A%84%20flexspi_nor_polling_transfer%20%E9%A1%B9%E7%9B%AE%E3%80%82%E6%88%91%E6%AD%A3%E5%9C%A8%E6%9E%84%E5%BB%BA%E8%B0%83%E8%AF%95%E9%A1%B9%E7%9B%AE%E7%9B%AE%E6%A0%87%EF%BC%8C%E6%8D%AE%E6%88%91%E6%89%80%E7%9F%A5%EF%BC%8C%E5%AE%83%E4%B8%8D%E5%BA%94%E8%AF%A5%E4%BD%BF%E7%94%A8%20flexspi%20flash%E3%80%82%E7%A8%8B%E5%BA%8F%E5%9C%A8%E7%A8%8B%E5%BA%8F%E7%BC%93%E5%86%B2%E5%8C%BA%E5%92%8C%E8%AF%BB%E5%8F%96%E7%BC%93%E5%86%B2%E5%8C%BA%E4%B9%8B%E9%97%B4%E7%9A%84%E5%86%85%E5%AD%98%E6%AF%94%E8%BE%83%E4%B8%8A%E5%A4%B1%E8%B4%A5%E3%80%82%E6%88%91%E6%B2%A1%E6%9C%89%E4%BF%AE%E6%94%B9%E4%BB%BB%E4%BD%95%E4%BB%A3%E7%A0%81%EF%BC%8C%E9%A1%B9%E7%9B%AE%E4%B8%8E%20SDK%202.15%20%E4%B8%AD%E6%8F%90%E4%BE%9B%E7%9A%84%E4%B8%80%E6%A0%B7%E3%80%82%E5%A6%82%E8%83%BD%E6%8F%90%E4%BE%9B%E5%85%B3%E4%BA%8E%E6%89%80%E6%8F%90%E4%BE%9B%E7%A4%BA%E4%BE%8B%E5%A4%B1%E8%B4%A5%E5%8E%9F%E5%9B%A0%E7%9A%84%E4%BB%BB%E4%BD%95%E5%B8%AE%E5%8A%A9%2F%E5%BB%BA%E8%AE%AE%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E4%B8%8D%E8%83%9C%E6%84%9F%E6%BF%80%E3%80%82%E6%88%91%E6%89%93%E7%AE%97%E4%BD%BF%E7%94%A8%E6%AD%A4%E4%BB%A3%E7%A0%81%E4%BD%9C%E4%B8%BA%E5%9F%BA%E7%A1%80%EF%BC%8C%E9%80%9A%E8%BF%87%E9%A9%BB%E7%95%99%E5%9C%A8%E7%89%87%E4%B8%8A%E9%97%AA%E5%AD%98%E4%B8%AD%E7%9A%84%E5%BC%95%E5%AF%BC%E4%BB%A3%E7%A0%81%E6%9D%A5%E7%8E%B0%E5%9C%BA%E7%BC%96%E7%A8%8B%E9%97%AA%E5%AD%98%E3%80%82%3C%2FP%3E%3CP%3E%E5%A6%82%E6%9E%9C%EF%BC%88memcmp%EF%BC%88s_nor_program_buffer%EF%BC%8Cs_nor_read_buffer%EF%BC%8Csizeof%EF%BC%88s_nor_program_buffer%EF%BC%89%EF%BC%89%EF%BC%89%3CBR%20%2F%3E%20%7B%3CBR%20%2F%3E%20PRINTF(%22%E6%93%A6%E9%99%A4%E6%95%B0%E6%8D%AE%20-%20%E8%AF%BB%E5%87%BA%E6%95%B0%E6%8D%AE%E5%80%BC%E4%B8%8D%E6%AD%A3%E7%A1%AE%EF%BC%81%5Cr%5Cn%20%22)%3B%3CBR%20%2F%3E%E8%BF%94%E5%9B%9E-1%EF%BC%9B%3CBR%20%2F%3E%20%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1887030%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AMIMXRT1170%20EVK%20flexspi%20%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1887030%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E8%A7%A3%E5%86%B3%E4%BA%86%E6%88%91%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%E6%88%91%E5%B7%B2%E7%BB%8F%E5%88%9B%E5%BB%BA%E4%BA%86%E8%87%AA%E5%B7%B1%E7%9A%84%20pin_mux.c%E5%B9%B6%E4%B8%94%E5%85%B6%E4%B8%AD%E6%9C%89%E4%B8%80%E4%B8%AA%E9%94%99%E8%AF%AF%E3%80%82%E7%A4%BA%E4%BE%8B%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%92%8C%E6%88%91%E7%9A%84%E6%B5%8B%E8%AF%95%E4%BB%A3%E7%A0%81%E7%8E%B0%E5%9C%A8%E5%8F%AF%E4%BB%A5%E6%93%A6%E9%99%A4%2F%E5%86%99%E5%85%A5%2F%E8%AF%BB%E5%8F%96%E9%97%AA%E5%AD%98%E3%80%82%E6%84%9F%E8%B0%A2%E6%82%A8%E5%AF%B9%E6%88%91%E7%9A%84%E9%97%AE%E9%A2%98%E7%9A%84%E5%85%B3%E6%B3%A8%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1886185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AMIMXRT1170%20EVK%20flexspi%20%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1886185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%B3%BB%E7%BB%9F%E9%87%8D%E7%BD%AE%EF%BC%88%E9%BB%98%E8%AE%A4%EF%BC%89%E5%B0%B1%E6%98%AF%E6%88%91%E7%9A%84%E8%AE%BE%E7%BD%AE%E3%80%82%E5%AE%83%E6%B2%A1%E6%9C%89%E6%88%90%E5%8A%9F%E8%BF%90%E8%A1%8C%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E