J-Flash download rt1021 program problem

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

J-Flash download rt1021 program problem

1,736 次查看
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 项奖励
回复
6 回复数

1,717 次查看
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 项奖励
回复

1,699 次查看
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 项奖励
回复

1,691 次查看
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 项奖励
回复

1,685 次查看
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 项奖励
回复

1,728 次查看
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 项奖励
回复

1,704 次查看
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 项奖励
回复