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. Write a driver for my board

Write a driver for my board

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 1.6k 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.
  • I Offline
    I Offline
    Ivan1120
    wrote on last edited by
    #1

    Hi guys:
    I have a board which is AM335x starter kit. Now i want to let my Qt program can access the UART function on the board(maybe it's a register), how should i do??Currently, i only know how to build a module(driver), i don't know how to make this driver can be used by my Qt program...., i haven't had the experience with this before, i need ur help, thanks in advance.(And I have a simple linux kernel on my board.)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If your UART shows as a serial device in /dev you should be able to use QSerialPort with it

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ivan1120
        wrote on last edited by
        #3

        Yes......, but that's not I want. Because that is based on the driver other people provided(eg. FTDI...), I want to wrote my own driver. The chip on the board have pins for UART, i don't want to add more hardware chip(FTDI chip) on it, I want to use it's UART register directly. So i need to write my own driver...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          QSerialPort is not based on the FTDI libraries. You can use it for built-in serial ports as well as FTDI version.

          Anyway, if you want to write a driver by hand for your UART, you're on the wrong forum, you should rather go to one dedicated to the AM335x kit you are using.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • I Offline
            I Offline
            Ivan1120
            wrote on last edited by
            #5

            Uh.....yes, I knew QSerialPort is not based on the FTDI libraries, maybe my illustration confused you, I have asked there, the TI employee only replied that I should did it by myself, he couldn't provide any support............, i guess someone have experience for this here. And why i asked this here, because finally the GUI application is based on Qt library.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The GUI might be, but still, driver writing is outside the scope of this forum

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

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