Can i use debug shell by command line in S32DS? For example, I can use tcl language in debug shell in CW10.

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

Can i use debug shell by command line in S32DS? For example, I can use tcl language in debug shell in CW10.

2,555件の閲覧回数
tuandang1988
NXP Employee
NXP Employee
ラベル(1)
タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,997件の閲覧回数
tuandang1988
NXP Employee
NXP Employee

Hello Martin,

Thank you for your quick reply. It's very helpfull.

For my specific application, could I set break point with debug script via Jlink or P&E debugger when open S32DS?

I am ultilizing S32 Design Studio for ARM, Version: 1.2, Build id: 160412.

Many thanks,

Tuan

0 件の賞賛
返信

1,997件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello Tuan,

what do you think by set break point with debug script? Would you like to add breakpoint to your application via GDB client? If yes, this could be certainly possible, but please give me some time to study the gdb.

Regards,

Martin

0 件の賞賛
返信

1,997件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

I am not sure if I understand your question correct, but there are some options how to use debug shell by command line in S32 Design Studio.

1) The simplest way is to start S32 Design Studio IDE and connect to some board. After the program is loaded, you should see the following screen. Click on the arrow in the red box and choose powerpc-eabivle-gdb. This is gdb client debug console, which is used for executing gdb commands.

pastedImage_1.png

Write help to show list of classes of commands.

pastedImage_4.png

It is also possible to create scripts. I am not experienced in this area, but look at the following URL where you can find some useful information. Also if you use google, you will find many useful pages about gdb commands and scripting.

https://sourceware.org/gdb/onlinedocs/gdb/Command-Files.html 

2) There is also a possibility to use gdb server and gdb client without S32DS IDE. You can run gdb server directly from command line (C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32) and connect to the board you want to debug.

Then you run gdb client (C:\Freescale\S32_Power_v1.1\Cross_Tools\powerpc-eabivle-4_9\bin\powerpc-eabivle-gdb.exe) and connect to the running gdb server.

If you ask about tcl scripting the answer will be no. Tcl scripting is not supported in S32 Design Studio. But there is another option about scripting. If you have installed S32 Design Studio for power version 1.1, there is possibility to run .mac scripts.

Click Debug configuration->Debugger->Advanced Options

pastedImage_6.png

Enable Initialization script and choose the script you want to run. This script is run during initialization phase.

pastedImage_7.png

Executed script you see in the picture above is hard-coded (it is executed all time, but it can be changed the content of the script). When you use your own script, it should be also executed in this phase.

Regards,

Martin

0 件の賞賛
返信