How to debug elf with S32 Debug Probe on S32G?

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

How to debug elf with S32 Debug Probe on S32G?

1,480 Views
LeeHua
Contributor I

Hello NXP:

        I successfully compiled the demo project "llce_sample_app_pfe"  in cygwin environment and got the int_app.elf. Now I want debug this elf with S32 Debug Probe on S32G, How can I do this?

0 Kudos
Reply
3 Replies

1,451 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We understand that the application you are referring to is intended to be used with a Lauterbach, for which undefined behavior might happen if you move to a different debugger.

As on how to do it, we understand that you should be able to change the *.elf file under the available debug configurations for the RTD examples (i.e. Siul2_Dio_ToggleLed_S32G274A_M7) and the debugger will load the *.elf you are pointing to:

DanielAguirre_0-1715094543866.png

Please, let us know.

0 Kudos
Reply

1,434 Views
LeeHua
Contributor I

Thanks for your reply @Daniel-Aguirre ,

    Today I tried debug the int_app.elf in S32DS with S32 Debug Probe, But It seems work not well, I met the same problem described in this link same problem , the output value of "eReturnValue = Can_SharedMemory.aCanCmd[pConfig->u8ActiveHif].eReturnValue" is LLCE_FW_NOTRUN, resulting in abnormal termination. Because I don't have Lauterbach tool, is there any solutions to solve this problem now? And why this sample elf must debug with Lauterbach tool?

0 Kudos
Reply

1,419 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. Can you help us share your debug configurations from S32DS? For us to see if there might be any misconfiguration.

Below will be some comments on regards of your questions:

  • Because I don't have Lauterbach tool, is there any solutions to solve this problem now?

[DA]: As told before, this application is intended to be used with Lauterbach. Using another debugger is not intended hence the undefined behavior.

  • And why this sample elf must debug with Lauterbach tool?

[DA]: This should have been a decision taken on the design phase of these examples. Aside from this, there is not much information we can provide from our side. We do apologize.

Please, let us know.

0 Kudos
Reply