Can Integrated Debuggers are used to debug SPT?

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

Can Integrated Debuggers are used to debug SPT?

Jump to solution
1,608 Views
ankush_s
Contributor II

Hi,

I am working on S32 Design studio PA and I am struck in SPT example. During debugging with P&E Micro I am unable to build the example project. Is this because I am using Integrated Debugger.

Please help me with this and tell me that 

> Can I use Integrated Debuggers to debug SPT if yes then how. If No then please mention the other debuggers name except Lauterbach Power Debugger and how to use them.

If there is some document please share with me

Regards 

Ankush

Labels (2)
0 Kudos
1 Solution
1,393 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

Sorry for delay. You need to switch C library to one supporting semihosting console (Debugger console):

pastedImage_1.png

and be sure that Semihosting is enabled in debug session: 

pastedImage_2.png

Hope it helps. 

Jiri 

View solution in original post

0 Kudos
6 Replies
1,393 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

as I know, SPT code can't be debugged by PE Micro. The only way how to debug it is look at results after SPT code is executed. 

What you mean by "unable build example" when using PE Micro? Please provide more details about your issue - output from build console and error messages. 

Jiri 

0 Kudos
1,393 Views
ankush_s
Contributor II

Hi Jiri,

Thanks for the reply.  

What I meant by saying "unable build example" when using PE Micro is in the SPT example code we have "debug_tool.c" file where we have an elif statement for PE_SEMIHOSTING_EN. So if you enable that then we got this error -

(make: *** [makefile:51: ./bin/rsdk_SPT_example_s32r274_sa_gcc_debug.elf] Error 1 SPT_example_s32r274 C/C++ Problem)

on console window and elf won't generate.

can you please tell me

>how to solve that error

>please mention some other methods to debug SPT using other debuggers except Lauterbach and how to use them. 

With regards

Ankush Sangwan

0 Kudos
1,394 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

Sorry for delay. You need to switch C library to one supporting semihosting console (Debugger console):

pastedImage_1.png

and be sure that Semihosting is enabled in debug session: 

pastedImage_2.png

Hope it helps. 

Jiri 

0 Kudos
1,393 Views
ankush_s
Contributor II

Hi Jiri Kral,

Thank you so much for the help, I am able to build the example.

Now, Could you please tell me the solution for my second question

>how I can debug SPT without using  Lauterbach.

 >Is there any other debugger I can use to debug if yes please mention. 

With Regards,

Ankush

0 Kudos
1,393 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

as far as I know - the Lauterbach is the only solution. 

Jiri

0 Kudos
1,393 Views
ankush_s
Contributor II

Hi Jiri,

Thanks for the reply,

In S32R274 reference module, it was mentioned that by using "SPT_CS_MODE_CTRL[CS_SYS_DEBUG]" we can debug SPT. could you please explain me or share any document or example where it is mentioned about how to use that register because in the reference document only the register configuration is mentioned.

With Regards,

Ankush

0 Kudos