Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for MCUs
  4. Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.
Forum Updated to NodeBB v4.3 + New Features

Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.

Scheduled Pinned Locked Moved Unsolved Qt for MCUs
11 Posts 4 Posters 1.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.
  • I Offline
    I Offline
    IBO_GO
    wrote on last edited by
    #1

    I already know how to design the interface using Qt for MCUs, but how do I tie it to the hardware?
    For example, click the button to trigger an ADC conversion, click the button to trigger serial port transmission. Unlike TouchGFX, which triggers the HAL function by clicking a button, I couldn't integrate HAL into the Qt for MCUs project. What should I do? Thank you very much.

    jsulmJ 1 Reply Last reply
    0
    • I IBO_GO

      I already know how to design the interface using Qt for MCUs, but how do I tie it to the hardware?
      For example, click the button to trigger an ADC conversion, click the button to trigger serial port transmission. Unlike TouchGFX, which triggers the HAL function by clicking a button, I couldn't integrate HAL into the Qt for MCUs project. What should I do? Thank you very much.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @IBO_GO said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

      HAL

      Is it Android based OS?
      Or what is this HAL exactly?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      SGaistS I 2 Replies Last reply
      0
      • jsulmJ jsulm

        @IBO_GO said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

        HAL

        Is it Android based OS?
        Or what is this HAL exactly?

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @jsulm said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

        @IBO_GO said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

        HAL

        Is it Android based OS?
        Or what is this HAL exactly?

        Usually it stands for Hardware Abstraction Layer. Generally a set of libraries that you can use to interact with lower level components without having to learn each processor/micro-controller specifics.

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

        jsulmJ 1 Reply Last reply
        0
        • SGaistS SGaist

          @jsulm said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

          @IBO_GO said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

          HAL

          Is it Android based OS?
          Or what is this HAL exactly?

          Usually it stands for Hardware Abstraction Layer. Generally a set of libraries that you can use to interact with lower level components without having to learn each processor/micro-controller specifics.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @SGaist Yes, I know. I know Android uses such HALs, that's why I asked.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          SGaistS 1 Reply Last reply
          0
          • jsulmJ jsulm

            @SGaist Yes, I know. I know Android uses such HALs, that's why I asked.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @jsulm said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

            @SGaist Yes, I know. I know Android uses such HALs, that's why I asked.

            My bad ! I misunderstood your question 😅

            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
            • jsulmJ jsulm

              @IBO_GO said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

              HAL

              Is it Android based OS?
              Or what is this HAL exactly?

              I Offline
              I Offline
              IBO_GO
              wrote on last edited by
              #6

              @jsulm I didn't make myself clear. I used the STM32F769 microcontroller, embedded microcontrollers can often use HAL(Hardware abstraction layer) to simplify the code, or use the standard library, to write programs. The problem is that I have heard that STM32F769I-DISCO can directly use Qt for MCUs to create a user interface, I have implemented it, but I do not know how to add hardware control on the basis of Qt for MCUs.

              JoeCFDJ SGaistS 2 Replies Last reply
              0
              • I IBO_GO

                @jsulm I didn't make myself clear. I used the STM32F769 microcontroller, embedded microcontrollers can often use HAL(Hardware abstraction layer) to simplify the code, or use the standard library, to write programs. The problem is that I have heard that STM32F769I-DISCO can directly use Qt for MCUs to create a user interface, I have implemented it, but I do not know how to add hardware control on the basis of Qt for MCUs.

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7

                @IBO_GO Is MQTT or Micro-ROS an option for interactions between Qt and microcontroller?

                I 2 Replies Last reply
                0
                • JoeCFDJ JoeCFD

                  @IBO_GO Is MQTT or Micro-ROS an option for interactions between Qt and microcontroller?

                  I Offline
                  I Offline
                  IBO_GO
                  wrote on last edited by
                  #8

                  @JoeCFD Thank you for your answer, but that doesn't answer my question. My problem is that I don't know how to use Qt for MCUs and control the hardware through the API as easily as writing code in MDK. The control here is that the microcontroller using Qt for MCUs controls its own peripherals, rather than controlling other external devices.

                  1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @IBO_GO Is MQTT or Micro-ROS an option for interactions between Qt and microcontroller?

                    I Offline
                    I Offline
                    IBO_GO
                    wrote on last edited by
                    #9

                    @JoeCFD Because it doesn't make any engineering sense to create an interface using Qt for MCUs alone, it only makes sense to generate a graphical interface that is compatible with microcontroller code like LVGL and TouchGFX. Unfortunately, until now I have not been able to find an official Qt example.

                    JoeCFDJ 1 Reply Last reply
                    0
                    • I IBO_GO

                      @JoeCFD Because it doesn't make any engineering sense to create an interface using Qt for MCUs alone, it only makes sense to generate a graphical interface that is compatible with microcontroller code like LVGL and TouchGFX. Unfortunately, until now I have not been able to find an official Qt example.

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by
                      #10

                      @IBO_GO said in Qt for MCUs, how to control hardware, such as using MCU GPIO interface, USART, ADC, etc.:

                      LVGL and TouchGFX

                      Type the following text in chatgpt and you may be able to find something
                      how to use Qt MCU with TouchGFX in C++?

                      1 Reply Last reply
                      0
                      • I IBO_GO

                        @jsulm I didn't make myself clear. I used the STM32F769 microcontroller, embedded microcontrollers can often use HAL(Hardware abstraction layer) to simplify the code, or use the standard library, to write programs. The problem is that I have heard that STM32F769I-DISCO can directly use Qt for MCUs to create a user interface, I have implemented it, but I do not know how to add hardware control on the basis of Qt for MCUs.

                        SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @IBO_GO in which language did you write your HAL ?

                        Because if it's either C or C++ you can use that as any other library. If not, then please give more details about what you already have, in which language, etc.

                        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