Lost Connection when debug S32G Cortex M7.

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

Lost Connection when debug S32G Cortex M7.

989 Views
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

 

 

 

 

 

 

 

0 Kudos
Reply
4 Replies

971 Views
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 Kudos
Reply

946 Views
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 Kudos
Reply

937 Views
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 Kudos
Reply

925 Views
chengpei
Contributor III

Thank you for your suggestion!

0 Kudos
Reply