Qt Arm Remote Debugging

I am working on LPC1768. I want to debug the test_ram.elf file using arm-none-eabi-gdb on qt creator. I downloaded the testing code from http://www.yagarto.de/download/yagarto/LPC1768Test.zip

Unfortunately, I could not handle remote debugs. I want to debug using j-link gdbserver.

I tried Debug-> Start Debugging-> Attach to a remote debug server AND

Start Debugger Settings Debugger : C:\Program Files\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_EABI\bin\arm-none-eabi-gdb.exe Local Executable : C:\Users\asd\qtprojects\pr2\test_ram.elf Host and Port : localhost:2331 Architecture : arm GNU : auto Sysroot : Location of debugging information : Override host GDB start script : C:\Users\asd\qtprojects\pr2\prj\lpc17xx_flash_jlink_1.gdb 

I received this warning after completing the settings above:

The preferred debugging mechanism for debugging binary files of type "unknown-unknown-unknown-unknown-unknown" is not available. The Gdb engine debugger mechanism will be used as a backup. Details: CDB debugging engine does not support unknown-unknown-unknown-unknown-unknown ABI.

Thanks in advance

+4
source share
1 answer

Your problem is that the debugger you are using is by default one (x86). For a debugging hand (LPC in your case) you need another debugger (CodeSourcery).

You need to enable the Bare Metal plugin and restart Qt creator. Show options and add a new open metal device. After that, you need to add a set for CodeSourcery. Add the CodeSourcery compiler and debugger to Qt creator. After that, add a new set and select additional tools. Then run the project that you want to debug with the new set.

For More Information What is Qt Bare Metal?

0
source

Source: https://habr.com/ru/post/1402247/


All Articles