Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. embedded debugging

embedded debugging

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 191 Views
  • 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.
  • S Offline
    S Offline
    SummoningDark
    wrote on 14 Jan 2025, 15:48 last edited by
    #1

    I am having a problem doing remote debugging on an ARM linux system after changing the root filesystem. My setup is as follows:

    embedded processor Xilinx zynq xz7020 (Avnet Microzed)
    Qt version 5.15.2
    Linux kernel and SDK were built using the Xilinx petalinux 2021.2 tools
    system runs off an SD card wit separate boot and rootfs partitions.

    When I run the petalinux kernel and petalinux rootfs on the target everything works great. However the petalinux root filesystem is super annoying since I have to build everything from scratch if I want to add packages, so I downloaded an ubuntu root filesystem and set that up. The ubuntu rootfs is great, and executables built in QtCreator with the xilinx sdk (on a host x86_64 machine) run without issue. However I can't use the remote debugging on the ubuntu root filesystem. I can deploy and run fine, so the connection isn't the issue. I can run the target executable in gdbserver manually, and connect manually from the host. However when I try to debug from the Qt creator IDE I get the message:
    "The inferior stopped because it received a signal from the operating system SIGSEGV"
    All of the deployment steps finish without issue, then I get the message. This happens before the target executable is run (basically I can't put a breakpoint anywhere that catches it, and the program runs fine when not debugging)

    Are there logs anywhere that would let me see what exactly is failing? or some script where I can see the exact steps QtCreator is doing to run and connect to the gdb server?

    Thanks,
    Jenn

    1 Reply Last reply
    0
    • J jbarrena
      15 Jan 2025, 14:05

      Hi Jenn.

      It seems that you are not fetching your device environment in your project. It usually happens when you have a Linux Embedded device running on your platform. Check out whether you have fetched your device environment inside your kit's run settings:

      image.png

      Hope this helps. Kind regards.
      Julen.

      S Offline
      S Offline
      SummoningDark
      wrote on 15 Jan 2025, 17:10 last edited by
      #3

      @jbarrena
      hi Julen,
      I fixed the problem by changing the sysroot option in my kit to point at my ubuntu rootfs instead of the petalinux one. Thanks for your help.

      Jenn

      1 Reply Last reply
      1
      • J Offline
        J Offline
        jbarrena
        wrote on 15 Jan 2025, 14:05 last edited by
        #2

        Hi Jenn.

        It seems that you are not fetching your device environment in your project. It usually happens when you have a Linux Embedded device running on your platform. Check out whether you have fetched your device environment inside your kit's run settings:

        image.png

        Hope this helps. Kind regards.
        Julen.

        S 1 Reply Last reply 15 Jan 2025, 17:10
        0
        • J jbarrena
          15 Jan 2025, 14:05

          Hi Jenn.

          It seems that you are not fetching your device environment in your project. It usually happens when you have a Linux Embedded device running on your platform. Check out whether you have fetched your device environment inside your kit's run settings:

          image.png

          Hope this helps. Kind regards.
          Julen.

          S Offline
          S Offline
          SummoningDark
          wrote on 15 Jan 2025, 17:10 last edited by
          #3

          @jbarrena
          hi Julen,
          I fixed the problem by changing the sysroot option in my kit to point at my ubuntu rootfs instead of the petalinux one. Thanks for your help.

          Jenn

          1 Reply Last reply
          1
          • S SummoningDark has marked this topic as solved on 15 Jan 2025, 17:10

          3/3

          15 Jan 2025, 17:10

          • Login

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