Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    Tools
    2
    5
    3323
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      maatong last edited by

      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

      https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

      1 Reply Last reply Reply Quote 0
      • Q
        QtTommy last edited by

        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

        1 Reply Last reply Reply Quote 0
        • Q
          QtTommy last edited by

          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

          1 Reply Last reply Reply Quote 0
          • M
            maatong last edited by

            [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.

            https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

            1 Reply Last reply Reply Quote 0
            • Q
              QtTommy last edited by

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post