Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [solved][Qt creator] How to debug ARM embedded programs on PC?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 3.7k Views 1 Watching
  • 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 Offline
    M Offline
    maatong
    wrote on 21 Apr 2014, 18:22 last edited by
    #1

    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
    0
    • Q Offline
      Q Offline
      QtTommy
      wrote on 24 Apr 2014, 13:51 last edited by
      #2

      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
      0
      • Q Offline
        Q Offline
        QtTommy
        wrote on 24 Apr 2014, 14:00 last edited by
        #3

        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
        0
        • M Offline
          M Offline
          maatong
          wrote on 24 Apr 2014, 20:07 last edited by
          #4

          [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
          0
          • Q Offline
            Q Offline
            QtTommy
            wrote on 25 Apr 2014, 05:39 last edited by
            #5

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

            1 Reply Last reply
            0

            1/5

            21 Apr 2014, 18:22

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved