Lost Connection when debug S32G Cortex M7.

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

Lost Connection when debug S32G Cortex M7.

1,924 次查看
chengpei
Contributor III

Hello, I got ccs: Bus error when debug S32G274 cortex m7.

Environment: S32G-VNP-RDB2, gcc compiler, S32DebugProbe & PLS UDE debugger.

Problem description:

Cpu fail when execute ldr.w lr, [sp], #4; with S32DebugProbe:

chengpei_0-1684744976293.png

SP and LR before execution:

chengpei_1-1684745063405.png

[sp]=[0x34063770] memory:

chengpei_2-1684745096459.png

With the same elf file, load into PLS debugger, this instruction executes successfully, but it failed later when executed an branch instruction:

chengpei_3-1684745270835.png

lost connection after execution:

chengpei_4-1684745311333.png

The branch destination address is valid:

chengpei_5-1684745386754.png

 

 

 

 

 

 

 

标记 (3)
0 项奖励
回复
4 回复数

1,906 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

What example are you using? If not, under any NXP provided example, can you reproduce this behavior?

Please, let us know.

0 项奖励
回复

1,881 次查看
chengpei
Contributor III

Hi, Daniel,

It's not NXP provided example, but I can give you the elf file. Thank you for your help!

0 项奖励
回复

1,872 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

We recommend opening a ticket under the NXP online services for reviewing your project. Since this is a public channel, we recommend a private channel for this manner.

Please, let us know.

0 项奖励
回复

1,860 次查看
chengpei
Contributor III

Thank you for your suggestion!

0 项奖励
回复