Using QtCreator IDE to develop STM32 applications on windows
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?
@Eligijus Please post the error messages (or better full build log)!
@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.
@Eligijus Do you have make (make.exe)? How did you set up QtCreator? Do you have a compiler? Did you set up a Kit?
@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?
@Eligijus You can. As alternative you can set PATH in Projects/Build/Build Environment.
@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.
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.