I want to debug the Cortex-A55 (ARMv8.2-A) source code using Arm DS-5 v5.29.3.The build has completed successfully, and when debugging is specified with arm-none-eabi-gdb.exe in the debug configuration, the following error message is displayed and debugging cannot be started. What could be the cause?The debug configuration is using C/C++ Remote Application.The compiler I am using is ARM Compiler 6I get a similar error on ARM DS 2022.2.Cortex-M3 (ARMv7) can be source code debugged by the above method.
＞Error in final launch sequence＞Failed to execute MI command:＞-file-exec-and-symbols C:/Users/giorno2001/Documents/work/sw/startup_Cortex-A55_Cortex-A75/sample.axf＞Error message from debugger back end:＞"0a3af8a4s": not in executable format: file format not recognized＞"0a3af8a4s": not in executable format: file format not recognized
C:\arm-gnu-toolchain-12.2.mpacbti-rel1-mingw-w64-i686-arm-none-eabi\bin\arm-none-eabi-gdb.exeC:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.07\bin\arm-none-eabi-gdb.exeC:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q1-update\bin\arm-none-eabi-gdb.exeC:\Program Files (x86)\GNU Tools ARM Embedded\9 2019-q4-major\bin\arm-none-eabi-gdb.exeC:\Users\giorno2001\Downloads\gcc-arm-10.3-2021.07-mingw-w64-i686-arm-none-eabi.tar\gcc-arm-10.3-2021.07-mingw-w64-i686-arm-none-eabi\bin\arm-none-eabi-gdb.exe
Or is it a makefile setting error?
The build environment uses the following, and the makefile is not edited.
"C:\Program Files\DS-5 v5.29.3\examples\Bare-metal_examples_Armv8.zip"startup_Cortex-A55_Cortex-A75
If I understand the above correctly, you are using the 'startup_Cortex-A55_Cortex-A75 example?
DS-5 and Arm Development Studio do not use gdb to debug the target... you do not need to specify gdb. I'm not sure how you did that.
See the supplied .launch configurations, which are pre-made debug sessions that will launch the necessary FVP virtual platform and load the built image.
Thank you for your reply.
>If I understand the above correctly, you are using the 'startup_Cortex-A55_Cortex-A75 example?Yes, that's right.
>DS-5 and Arm Development Studio do not use gdb to debug the target... you do not need to specify gdb. I'm not sure how you did that.Since the target board is a virtual prototype, the development environment is complete on the PC.The virtual prototype development tool uses Siemens VISTA.Therefore, it is necessary to use gdbstub server to connect with the target board.Therefore, "launch" included in the example cannot be used.The debug configuration is using C/C++ Remote Application.
The reason I changed gdb was because I had to change it for the Cortex-M3.If I leave the default setting "gdb", I get the following error:* This means that it cannot be executed.
For Cortex-M3, I was able to debug the source code without any problem after changing to "arm-none-eabi-gdb.exe".Cortex-M3 can successfully debug source code with both ARM Compiler 5 and ARM Compiler 6.
However, Cortex-A55 gives the following error.
gdb is specified in the following way.
Are you using an AArch32 gdb? Can you try gdb-multiarch or an Armv8-A gdb build?
Thank you for your reply.After using AArch64 gdb, it became possible to debug the source.The error is gone and the problem is solved.