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.

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 791 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 IBO_GO
    27 Nov 2024, 02:00

    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.

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 27 Nov 2024, 07:19 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

    S I 2 Replies Last reply 27 Nov 2024, 08:47
    0
    • J jsulm
      27 Nov 2024, 07:19

      @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?

      S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 27 Nov 2024, 08:47 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

      J 1 Reply Last reply 27 Nov 2024, 08:48
      0
      • S SGaist
        27 Nov 2024, 08:47

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

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 27 Nov 2024, 08:48 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

        S 1 Reply Last reply 27 Nov 2024, 09:11
        0
        • J jsulm
          27 Nov 2024, 08:48

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

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Nov 2024, 09:11 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
          • J jsulm
            27 Nov 2024, 07:19

            @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 17 Dec 2024, 13:38 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.

            J S 2 Replies Last reply 17 Dec 2024, 14:30
            0
            • I IBO_GO
              17 Dec 2024, 13:38

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

              J Offline
              J Offline
              JoeCFD
              wrote on 17 Dec 2024, 14:30 last edited by
              #7

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

              I 2 Replies Last reply 17 Dec 2024, 16:03
              0
              • J JoeCFD
                17 Dec 2024, 14:30

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

                I Offline
                I Offline
                IBO_GO
                wrote on 17 Dec 2024, 16:03 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
                • J JoeCFD
                  17 Dec 2024, 14:30

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

                  I Offline
                  I Offline
                  IBO_GO
                  wrote on 17 Dec 2024, 16:17 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.

                  J 1 Reply Last reply 17 Dec 2024, 17:00
                  0
                  • I IBO_GO
                    17 Dec 2024, 16:17

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

                    J Offline
                    J Offline
                    JoeCFD
                    wrote on 17 Dec 2024, 17:00 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
                      17 Dec 2024, 13:38

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

                      S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 17 Dec 2024, 19:51 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