Hi, NXP
I created a S32K312 project in S32DS v3.4, and select "NXP Gcc 10.2 for Arm 32-bit Bare-Metal" as the toolchain, since I want to use RTD SDK v2.0.1 (if I select Gcc 9.2, RTD SDK v2.0.1 is disappeared from the SDK list).
the project successfully to compile, but below problem occurred when I tried to debug, it seems S32DS can not find gdb util. so I check the bin folder of gcc v10.2 of the S32DS install path, the gdb util is missed. but for gcc v9.2, the gdb util is present.
how to solve this issue if I want to use RTD SDK v2.0.1 for S32K312 ?
thanks and best regard.
解決済! 解決策の投稿を見る。
Hello @wesleyxie
Apologies for the long delay. I noticed in your screen shot, in the GDB Client Setup section, you have:
D:\NXP\S32DS.3.4\S32DS\build_tools\gcc_v9.2\gcc-9.2-arm32-eabi\bin
This is a problem because your project is set to use GCC v10.2. The SDK only supports GCC v10.2, so you should set the path for the GCC v10.2. If you like, you can use a macro that is pre-defined:
${S32DS_GDB_ARM32_EXE}
This way you can avoid using a hard-coded path for this project. Please change the setting to this value and try again.
Best Regards,
Mike
Hello @wesleyxie
Apologies for the long delay. I noticed in your screen shot, in the GDB Client Setup section, you have:
D:\NXP\S32DS.3.4\S32DS\build_tools\gcc_v9.2\gcc-9.2-arm32-eabi\bin
This is a problem because your project is set to use GCC v10.2. The SDK only supports GCC v10.2, so you should set the path for the GCC v10.2. If you like, you can use a macro that is pre-defined:
${S32DS_GDB_ARM32_EXE}
This way you can avoid using a hard-coded path for this project. Please change the setting to this value and try again.
Best Regards,
Mike
hi, @mikedoidge
sorry, i took a wrong screenshot last time, I was trying to use gdb client in "gcc_v9.2".
I modified the "Executable" path of "GDB Client Setup" section to your solution (${S32DS_GDB_ARM32_EXE}), and it works.
by the way, if i restore "Debugger" tab to default, the executable path is "${cross_prefix}gdb${cross_suffix}", it doesn't work.
Hello Wesley,
Please provide a screen capture of the Debug Configuration, Debugger tab. It will show if the settings are correct. It's possible the path to the GDB server is incorrect. Also, if you could turn on the log file:
And enable the GDB Traces log from Window -> Preferences:
The log for this is shown in the console, you will need to select the GDB traces option.
If you could send both logs, this will also help.
Best Regards,
Mike
Hi, mike
please check the screenshot of my Debugger tab below.
"Also, if you could turn on the log file:"
--- I can't find this option
"And enable the GDB Traces log from Window -> Preferences:"
-- done