RE: Issue in FlexSPI for Macronix NOR Flash

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

RE: Issue in FlexSPI for Macronix NOR Flash

跳至解决方案
2,828 次查看
Ankush_9881
Contributor II

Hello,

  We are working on iMXRT1176 MCU and Macronix NOR Flash MX66L1G45G. We have our custom board and we are trying to interface the MX66L1G45G. After updating the evkmimxrt1176_flex_spi_nor_config.c  w.r.t MX66, we are facing issue while programing iMXRT1176. line error in Page Program We are using LPC link 2 programmer and FlexSPI Driver MIMXRT1170_SFDP_QSP.cfx .

Can anyone help for making changes in the driver file? We need to change the QSPI mode 1-4-4

0 项奖励
回复
1 解答
2,779 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ankush_9881 

1. 

  Please share me your printf log when test :

SDK_2_11_1_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\flexspi\nor\polling_transfer\cm7

in RAM

 

2. From your debug log, indicate the .cfx driver issues for your situation.

 You can firmware your LPC-Link2 to JLINK firmware, then use the RT-UFL:

https://github.com/JayHeng/RT-UFL

manual:

https://www.cnblogs.com/henjay724/p/14942574.html

https://www.cnblogs.com/henjay724/p/15430619.html

Although it is in Chinese, you can check the pictures.

This driver is very easy to use.

Best Regards,

Kerry

在原帖中查看解决方案

0 项奖励
回复
7 回复数
2,811 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ankush_9881 ,

   Please help to test this code:

  SDK_2_11_1_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\flexspi\nor\polling_transfer\cm7

Run it in RAM, whether you can make it works or not, it don't need to use the .cfx, as don't download to the flash.

After you modify the LUT, and make it works, then we can try to modify the .cfx source code.

To the new QSPI flash chip, you need to enable the QE bit at first, and I have checked your chip QE bit, you can use the polling_transfer directly.

Please test polling_transfer at first, if this works, the default .cfx also should works.

Best Regards,

Kerry

   

0 项奖励
回复
2,801 次查看
Ankush_9881
Contributor II

Hi @kerryzhou 

    Thank you for the reply. As per your suggestion, we already enabling the QE bit. For the first time our LUT table works for the first time and after that when we try to re-flash the .cfx file it shows error for page program. We think like its due to flash driver which works in normal mode and we update to quad mode.

What do you think about it ?

0 项奖励
回复
2,796 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ankush_9881 ,

  Please share me your printf log when test :

SDK_2_11_1_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\flexspi\nor\polling_transfer\cm7

in RAM.

  I need to confirm it, make sure your flash is working.

  Whether your board can enter the serial download mode or not?

If yes, please use the MCUbootUtility tool to test it on your side.

https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v3.5.0
the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

You can download the app attached code:

NXP-MCUBootUtility-3.5.0\apps\NXP_MIMXRT1170-EVK_Rev.A\cm7\led_blinky_0x3000a000.srec

whether your board can blink or not?

 

Best Regards,

Kerry

0 项奖励
回复
2,783 次查看
Ankush_9881
Contributor II

Hello @kerryzhou ,

  As we are working on our custom board, I was trying to flash the code into our board via LPC-Link2,

Here are the logs which I am facing

 

Can you please go through it ?

 

0 项奖励
回复
2,780 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ankush_9881 

1. 

  Please share me your printf log when test :

SDK_2_11_1_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\flexspi\nor\polling_transfer\cm7

in RAM

 

2. From your debug log, indicate the .cfx driver issues for your situation.

 You can firmware your LPC-Link2 to JLINK firmware, then use the RT-UFL:

https://github.com/JayHeng/RT-UFL

manual:

https://www.cnblogs.com/henjay724/p/14942574.html

https://www.cnblogs.com/henjay724/p/15430619.html

Although it is in Chinese, you can check the pictures.

This driver is very easy to use.

Best Regards,

Kerry

0 项奖励
回复
2,724 次查看
Ankush_9881
Contributor II

Hello Kerry,

  Thanks for your support. I am glad to inform you that, as per your suggestion. We are able to flash LPC-LINK2 with JLink firmware and its works for our Macronix chip.

 

Thanks & Regards

Ankush Anantwar 

2,722 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ankush_9881 ,

 You are welcome!

  If your issue is solved, please help to mark the correct answer, to close this case.

  If you have any new issues, welcome to create the new question post.

 

Best Regards,

Kerry

0 项奖励
回复