RE: Issue in FlexSPI for Macronix NOR Flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RE: Issue in FlexSPI for Macronix NOR Flash

ソリューションへジャンプ
2,827件の閲覧回数
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,778件の閲覧回数
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,810件の閲覧回数
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,800件の閲覧回数
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,795件の閲覧回数
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,782件の閲覧回数
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,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 件の賞賛
返信
2,723件の閲覧回数
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,721件の閲覧回数
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 件の賞賛
返信