I have a AUTOSAR based source code which is compiled using GHS compiler for PPC architecture. I flashed the elf using Lauterbach debugger and Trace32 Software. The debugging was also done in Trace32. Target hardware is MPC574xR
Now I want to shift to S32 tool and PE Micro debugger but the code will still compiler using GHS compiler. I am able to flash the elf but unable to debug the code in S32 as only main.c file is visible instead if the complete source code.
To update debug configurations I have followed both option 1 and 2 from NXP documentation https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-download-separate-elf-srec-hex-f...
I have made sure that debug information and symbols are present and there is no optimization. The compilation and flashing is carried out on the same system so no issues with wrong compilation path.
Can anyone suggest what could be going wrong?
Solved! Go to Solution.
Hi,
The officialy supported debugger for S32DS + GHS is Lauterbach:
See below the instructions to integrate GHS Ecliplse plugin into S32 Design Studio
There is an alternative way to debug GHS generated elf in S32DS environment. But it has some limitations (please see the folowing post)
Please make sure to re-build the project before debugging. If the project consist of libraries, you may not be able to debug them on the source-level unless you rebuild them too.
Hope it helps.
Stan
Hi,
The officialy supported debugger for S32DS + GHS is Lauterbach:
See below the instructions to integrate GHS Ecliplse plugin into S32 Design Studio
There is an alternative way to debug GHS generated elf in S32DS environment. But it has some limitations (please see the folowing post)
Please make sure to re-build the project before debugging. If the project consist of libraries, you may not be able to debug them on the source-level unless you rebuild them too.
Hope it helps.
Stan
Hi Stan, Thank you for your reply.
I was using Lauterbach Trace32 for debugging but the license recently expired and that is why I am trying to debug the code with S32 and PEMicro debugger. I had already tried the first 2 links that you shared.
But my observation was that the source level debugging of ghs compiled code with S32 brings issues so currently I am trying new approach. Previously I was compiling the code separately and trying to debug in S32 but now I have installed ghs ppc plugin in S32 and added my project there. Now I am trying to compile the code from S32 using my licensed ghs compiler by making some configurations. If it compiles, will this allow me to debug source code completely without any issue?
Hello,
The GHS elf is not very much compatible with gcc debugger and has limitations. Some things are not working properly.
Can anyone suggest what could be going wrong?
I do not expect there is anything wrong on your side, just the limitation of compatibility makes issues.
S32DS was build for GCC compiler and GHS added support was not its primary usecase.
Best regards,
Peter