How to set S32DS debug to flash?

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

How to set S32DS debug to flash?

2,290 次查看
文辉王
Contributor III

Dear all,

There is a question that needs to be consulted. I am debugging mpc5744p, but I found that when using S32DS, the code can only be downloaded to RAM, but not flash. That is to say, I can run the program when I debug, but after the dug, I find that the program is not burned in the chip. How can I solve this?

Thanks.

标签 (1)
标记 (3)
0 项奖励
回复
5 回复数

2,063 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

you can add new configuration in configuration manager: 

pastedImage_1.png

The difference between RAM and FLASH target is in Linker file. For your new configuration select linker script file for Flash target - pastedImage_2.png 

As a reference you can look at any example - almost all of them have both configurations (FLASH,RAM).

Hope it helps.

Jiri . 

0 项奖励
回复

2,063 次查看
文辉王
Contributor III

Hello Jiri ,

Followed your method, but it still doesn't seem to download the code to the chip.

Thanks.

0 项奖励
回复

2,063 次查看
stanish
NXP Employee
NXP Employee

Vern,

could you please post the debugger screen that indicates the executable has not been programmed into flash.

Please also check the debugger GDB serverv console - it should include information about the programmed sections and addresses.

pastedImage_1.png

Stan

0 项奖励
回复

2,063 次查看
文辉王
Contributor III

Hello Stan,

The following is the console information:pastedImage_1.png

The following is the debugger console information:

pastedImage_2.png

Thanks.

0 项奖励
回复

2,063 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

from you screenshot it is obvious that your program is uploaded into Flash (and already present in Flash). There is probably some error in your project - it looks that you program ends in some exception. It is possible share your project? 

Jiri 

0 项奖励
回复