J-Flash download rt1021 program problem

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

J-Flash download rt1021 program problem

1,818 Views
rotato
Contributor II

Hi,

I downloaded a rt1021 program to external norflash  IS25L064D successfully,

but the program can not run.What is the problem ?

The NXP-MCUBootUtility can download the program to boards,and the program runs well.

Does the rt1021 can not use JFlash download program?

 
 

QQ图片20210302111923.png

 

0 Kudos
Reply
6 Replies

1,799 Views
rotato
Contributor II

Hi,

The JFlash code is same as the code used in MCUBootUtility .

Though the J-link firmware is not genuine,but when I use MDK Jlink debug it works as well as MDK Jlink download  .

0 Kudos
Reply

1,781 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi rotato,

  Do you add the XIP header in your application firmware?

  XIP_BOOT_HEADER_ENABLE=1

 XIP_EXTERNAL_FLASH=1

  If you are not sure, you can generate your app project to the firmware .srec or .s19, and attach it, I will help you to check it.

 

Best Regards,

kerry

0 Kudos
Reply

1,773 Views
rotato
Contributor II

Hi,

Of course I have set 

  XIP_BOOT_HEADER_ENABLE=1

 XIP_EXTERNAL_FLASH=1

in my program.

I attached it,thanks for helping!

0 Kudos
Reply

1,767 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi rotato,

 

Please try my attached app code, then use the Jflash again, I can make it works on my side with the Segger JLINK plus:

image.png

Code function is led blinking.

Please also note, when you use the external JLINK, you need to remove the MIMXRT1020-EVK on board J25-J28.

 

Please try it, at least, it works on my side now.

image.png

Best Regards,

Kerry

0 Kudos
Reply

1,810 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi rotato,

   When you use the JFlash download the code, do you use the same app as the MCUBootUtility?

   If yes, then the Jflash may really have issues, do you use the Segger JLINK with the genuine version?

   BTW, do you use the JLINK debug your project, whether that download works or not?

Best Regards,

KERRY

0 Kudos
Reply

1,786 Views
rotato
Contributor II

Hi,

The JFlash code is same as the code used in MCUBootUtility .

Though the J-link firmware is not genuine,but when I use MDK Jlink debug it works as well as MDK Jlink download  .

0 Kudos
Reply