Can Integrated Debuggers are used to debug SPT?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can Integrated Debuggers are used to debug SPT?

ソリューションへジャンプ
1,763件の閲覧回数
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

ラベル(2)
0 件の賞賛
1 解決策
1,548件の閲覧回数
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 件の賞賛
6 返答(返信)
1,548件の閲覧回数
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 件の賞賛
1,548件の閲覧回数
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 件の賞賛
1,549件の閲覧回数
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 件の賞賛
1,548件の閲覧回数
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 件の賞賛
1,548件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

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

Jiri

0 件の賞賛
1,548件の閲覧回数
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 件の賞賛