Unable to debug MIMXRT1052 unless it has been programmed once by MfgTools

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

Unable to debug MIMXRT1052 unless it has been programmed once by MfgTools

Jump to solution
1,179 Views
FillmoreSys
Contributor I

We have a production system which programs all our production systems using a Segger JLINK tool.

We want to only use this tool and not the mfgTools, however we have found that the code is not executed unless the board has been programmed once by the mfgTools.  (The same happens trying to debug a simple hello world program in MCUXpresso, if the board hasn't been programmed with the mfg tools you can't load and debug the program).

We are using external QSPI Flash as out boot device.

Is there are way to replicate what is done with the MFgTools by programming with the Segger, so that we can eliminate this step in our production process.

Thanks in advance to anybody who can help with this problem.

0 Kudos
1 Solution
1,124 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @FillmoreSys 

 Please check my english document:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT600-MCUXpresso-JLINK-debug-QSPI-flash/ta-p/134...

Chpater 2, although for RT600, you still can refer to it, similiar to the RT10XX.

Best Regards,

Kerry

View solution in original post

0 Kudos
6 Replies
1,164 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @FillmoreSys ,

  So the issue is only happens on the new customer RT1050 board + QSPI chip.

  Your mentioned issue is mainly related to the QE bit, as you know, to the QSPI chip, QE bit is the non-volatile bit, to the new chip, it need to configure the QE bit at first to enable the quad mode, then in the app, it can be read with quad mode.

   Normally, this is related to the JLINK flash driver, please tell me which JLINK version you are using now?

   You can try our RT-UFL flash algo, this will help to configure the QE bit.

https://github.com/JayHeng/RT-UFL/archive/refs/tags/v1.0.zip

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

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

  Please try it.

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

 Please also let me know your QSPI flash chip partnumber. As different QSPI flash has the different QE bit position.

Best Regards,

Kerry

0 Kudos
1,155 Views
FillmoreSys
Contributor I

Hi Kerry ,

The info you asked for is this

JLINK S/W = JLINK_V758C

QSPI = IS25LP128

The part is a MIMXRT1052DVL6B

The Device type I have selected in the segger is  MIMXRT1052xxxxB which I have removed form the Jlink XML File.

I will give your flash loader a try later today.

Regards

David

0 Kudos
1,144 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @FillmoreSys 

  Thanks for your information.

  As I know, to the RT1050, the JLINK firmware is default for the hyperflash, as the MIMXRT1050-EVKB board is using the hyperflash, so if you want to use the QSPI flash, you need to change the firmware to the QSPI at first.

  I highly suggest you try the RT-UFL, as it can support your QSPI directly with JLINK. Very easy to use.

  If you don't know how to use it, just kindly let me know, as the post is in chinese.

 

Wish it helps you!

Best Regards,

Kerry

0 Kudos
1,135 Views
FillmoreSys
Contributor I

Hi Kerry,

If you could provide some info in English about the boot loader I would be grateful.

My Chinese is non existent.

Thanks

David

0 Kudos
1,125 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @FillmoreSys 

 Please check my english document:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT600-MCUXpresso-JLINK-debug-QSPI-flash/ta-p/134...

Chpater 2, although for RT600, you still can refer to it, similiar to the RT10XX.

Best Regards,

Kerry

0 Kudos
1,113 Views
FillmoreSys
Contributor I

Thanks very much for your help Kerry.

This was a great solution to my problem

David

0 Kudos