Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[solved][Qt creator] How to debug ARM embedded programs on PC?



  • Hi everyone:
    I've build a cross complier for and ARM board (CPU is freescale i.MX6)on a PC which runs ubuntu 12.04.
    Now I make executable programs by command lines on the PC and the copy it to the ARM board to run.
    My questions is that, can I build a cross debug environment in Qt creator so that I can debug the ARM program on PC?
    Thanks.

    Yini



  • Hello Yini

    Yes it is possible. I'm working with a freescale ARM - Board as well. I've started the configuration with the result that i could translate and transfer (deploy)my release to my target device. the only thing that is not working is the debugging. But I'm sure I will realize it in the near future but at the moment I have to deal with other problems. I found some detailed descriptions in this forum maybe you should search with the keywords "debugging embedded linux". In general you have to add and configure in Tools -> options -> devices a new device. Insert the connection data like ip-adress, port, username and password.In the next step you have to add a new kit. Device Type should be a genericLinuxDevice, in device you should choose your previously configurated new device and in Qt version you should choose the toolchain which fits to your board. In your qt project you have edit your .pro - File in the following way:
    add the following sentences:

    target.path = /path/on/your/remotesystem/
    INSTALLS = target

    target.path contains the information where your exec will be stored. Make sure that you have installed and started the gdb-server which is managing the interchange of the variables on your target device



  • Maybe thats interesting for you

    "Your text to link here...":http://qt-project.org/doc/qtcreator-2.5/creator-developing-generic-linux.html

    oh and I forgot that you need to run an sftp - server on your device



  • [quote author="QtTommy" date="1398348012"]Maybe thats interesting for you

    "Your text to link here...":http://qt-project.org/doc/qtcreator-2.5/creator-developing-generic-linux.html

    oh and I forgot that you need to run an sftp - server on your device[/quote]

    Hi QtTommy:
    Thanks for your respond. And your method worked!
    I can debug my board with WIFI connect now, thanks a lot.



  • Perfect! ...made my day! Please change the state of this thread to solved.


Log in to reply