Modify Sct file in Keil5 program can not run

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

Modify Sct file in Keil5 program can not run

跳至解决方案
936 次查看
Ivan6
Contributor II

Hi,all

I try to migrate the Unified bootloader in keil5. The mcu is s32k144.

In the App project, change the sct file to rearrange the flash, the program can not run.

Start from 0x00000000, it's running normally.

Ivan6_0-1651907339476.png

Before new project download, used J-flash erase all chip prevent program in flash(0x00000000) run.

Start form 0x00014200 ,keil5 can not running, jlink error window pops up directly, cilk confirm button quite debug mode.

Ivan6_1-1651907664807.png

Ivan6_2-1651907979900.pngIvan6_3-1651908030207.png

 

 

 

0 项奖励
1 解答
917 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@lvan6

This should be no problem, in this case you can't debug the APP program because the starting address of the program has been modified and the APP is not running. You need to jump to the start address of the APP in the Bootloader program, so that the program can run correctly.

In addition, this setting should be invalid, you have not enabled it, and secondly, you have modified the sct file, and you do not need to modify this option again.

Senlent_0-1652064249377.png

BR!

     Jim,

在原帖中查看解决方案

2 回复数
896 次查看
Ivan6
Contributor II

The problem solved, unified bootloader uesd s32ds,App used keil5, jump sucess,running ok.

The same App project(modify startup address)can debug in s32ds, keil5 not.

Thanks Senlent.

0 项奖励
918 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@lvan6

This should be no problem, in this case you can't debug the APP program because the starting address of the program has been modified and the APP is not running. You need to jump to the start address of the APP in the Bootloader program, so that the program can run correctly.

In addition, this setting should be invalid, you have not enabled it, and secondly, you have modified the sct file, and you do not need to modify this option again.

Senlent_0-1652064249377.png

BR!

     Jim,