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. Using QtCreator IDE to develop STM32 applications on windows
QtWS25 Last Chance

Using QtCreator IDE to develop STM32 applications on windows

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
8 Posts 2 Posters 5.4k 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.
  • E Offline
    E Offline
    Eligijus
    wrote on last edited by
    #1

    Hello,

    I have followed instructions found on various sources how to set up QtCreator IDE to debug/develop STM32 applications. But currently I'm stuck generating STM32CubeMX project makefile with https://github.com/baoshi/CubeMX2Makefile. I get a bunch of errors in make file when trying to build. Could anyone point me to the right direction?

    jsulmJ 1 Reply Last reply
    0
    • E Eligijus

      Hello,

      I have followed instructions found on various sources how to set up QtCreator IDE to debug/develop STM32 applications. But currently I'm stuck generating STM32CubeMX project makefile with https://github.com/baoshi/CubeMX2Makefile. I get a bunch of errors in make file when trying to build. Could anyone point me to the right direction?

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

      @Eligijus Please post the error messages (or better full build log)!

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

      E 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Eligijus Please post the error messages (or better full build log)!

        E Offline
        E Offline
        Eligijus
        wrote on last edited by
        #3

        @jsulm 11:15:18: Running steps for project bar...
        11:15:18: Could not start process "make" all
        Error while building/deploying project bar (kit: ARM Bare Metal)
        When executing step "Make"
        11:15:18: Elapsed time: 00:00.

        jsulmJ 1 Reply Last reply
        0
        • E Eligijus

          @jsulm 11:15:18: Running steps for project bar...
          11:15:18: Could not start process "make" all
          Error while building/deploying project bar (kit: ARM Bare Metal)
          When executing step "Make"
          11:15:18: Elapsed time: 00:00.

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

          @Eligijus Do you have make (make.exe)? How did you set up QtCreator? Do you have a compiler? Did you set up a Kit?

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

          E 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Eligijus Do you have make (make.exe)? How did you set up QtCreator? Do you have a compiler? Did you set up a Kit?

            E Offline
            E Offline
            Eligijus
            wrote on last edited by
            #5

            @jsulm I have compiler https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads and set up kit. Now for make.exe I have downloaded setup from http://gnuwin32.sourceforge.net/packages/make.htm but now I believe I should set up environment variable to include make.exe so I could call make all. Is that correct?

            jsulmJ 1 Reply Last reply
            0
            • E Eligijus

              @jsulm I have compiler https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads and set up kit. Now for make.exe I have downloaded setup from http://gnuwin32.sourceforge.net/packages/make.htm but now I believe I should set up environment variable to include make.exe so I could call make all. Is that correct?

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

              @Eligijus You can. As alternative you can set PATH in Projects/Build/Build Environment.

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

              E 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Eligijus You can. As alternative you can set PATH in Projects/Build/Build Environment.

                E Offline
                E Offline
                Eligijus
                wrote on last edited by
                #7

                @jsulm Initially downloaded win32 make didn't work I found this which worked http://www.ba0sh1.com/wp-content/uploads/2013/05/make.zip. And after setting PATH in Build Environment I could successfully build my application.

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  Eligijus
                  wrote on last edited by
                  #8

                  After setting up OpenOCD so I could deploy and debug application and trying to debug application QtCreator crashed every time I stopped the debugging. But after checking the magic option "Use asynchronous mode to control the inferior" in Options>Debugger>GDB Extended it finally worked.
                  Oh and also I needed to install winusb drivers for st-link using zadig.

                  Hope someone find this useful.

                  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