Stuck in ROMCP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,135件の閲覧回数
jautry
Contributor IV

I am using an iMXRT1061 in a new design and currently striving to get u-boot running on it, but it appears not to load and am hanging in a loop in ROMCP which I assume to be the bootloader.  My SBMR values appear to be correct with SBMR1 = 0x00000000 and SBMR2 = 02000009 for QSPI flash loading.  What is the best way to debug this problem since there appears to be no boot log associated with this product and no user listing for the internal boot code.

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
2,107件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @jautry ,

   If your external flash is the new chip.

   And after you run my mentioned code, then everything works.

   Then, your issue is mainly in your QSPI QE bit set, as this bit is the nonvolatile bit, it needs to enable the QE to the new chip at first.

   And the \polling_transfer project will help you enable that bit, and also check your external flash write, erase, read situation.

    Wish it helps you!

    If your question is solved, please tell me to mark the correct answer.

    Any new issues, welcome to create the new question post.

Best Regards,

Kerry

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,124件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @jautry 

  If your code still stuck in the ROM, it means your code didn't boot normally.

  Please check the following points at first:

1. whether you can use the JLINK to find the ARM core?

 2. Use the debugger download the code to the internal RAM, test this SDK code:

\SDK_2_11_0_EVK-MIMXRT1060\boards\evkmimxrt1060\driver_examples\flexspi\nor\polling_transfer

Whether you can finish the external flash operation?

  3. check the BOOT_CFG pin, BOOT_MOD pin with the MIMXRT1060-EVK board, make sure your boot mode is correct, boot CFG pin is correct.

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

0 件の賞賛
返信
2,113件の閲覧回数
jautry
Contributor IV

The sample ran fine.  Actually, after loading the sample, other things started working.  It looks like something was not set up properly.

0 件の賞賛
返信
2,108件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @jautry ,

   If your external flash is the new chip.

   And after you run my mentioned code, then everything works.

   Then, your issue is mainly in your QSPI QE bit set, as this bit is the nonvolatile bit, it needs to enable the QE to the new chip at first.

   And the \polling_transfer project will help you enable that bit, and also check your external flash write, erase, read situation.

    Wish it helps you!

    If your question is solved, please tell me to mark the correct answer.

    Any new issues, welcome to create the new question post.

Best Regards,

Kerry

0 件の賞賛
返信