jrengdahl / H503

Test firmware and OSHPark board for STM32H503RB, including USB VCP console. Working toward bare metal OpenMP.
Other
0 stars 0 forks source link

Can you provide a makefile for compiling this project #7

Open BumbleBeeMR opened 3 months ago

BumbleBeeMR commented 3 months ago

I have been learning how to run OpenMP on bare metal recently, and I cannot find the makefile when compiling this project. I am not sure about the compilation order. Can you provide me with some help?

jrengdahl commented 3 months ago

I use STM32CubeIDE to build the project. Import the project into the IDE. I use the "Build Targets" view, and create targets "all", "clean", and "all -j". You will need my special version of GCC to compile for OpenMP: https://github.com/jrengdahl/cross/releases/tag/v1.1 for Cortex-M33 or https://github.com/jrengdahl/cross/releases/tag/v1.2 for Cortex-M7. Normally bare metal cross-compilers do not have OpenMP enabled.

When using the IDE (which is a tweak of Eclipse), the makefile is autogenerated by the IDE every time you build the project. The generated makefile will be found under /Debug. I generally prefer to write my own Makefiles rather that using IDE automake, since Makefiles are more portable, but the STM32CubeIDE is so useful that I gave in and use the IDE.