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
Solved! Go to Solution.
Hi,
Sorry for delay. You need to switch C library to one supporting semihosting console (Debugger console):
and be sure that Semihosting is enabled in debug session:
Hope it helps.
Jiri
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
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
Hi,
Sorry for delay. You need to switch C library to one supporting semihosting console (Debugger console):
and be sure that Semihosting is enabled in debug session:
Hope it helps.
Jiri
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
Hi,
as far as I know - the Lauterbach is the only solution.
Jiri
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