A bare metal implementation of a blinky example for the stm32h743 with a simple makefile and without using HAL libraries.
Here is a simple blinky example to get started with the stm32 H7 family. This project does not rely on HAL libraries and the code can be built and flashed using GNU make (so that you do not need any IDE such as STM32CubeIDE) and the GNU ARM Embedded Toolchain. The code was tested with the stm32h743vit6 development board from DevEBox but could be easily adapted for any configuration. The board can be purchased on Banggood.
The system clock frequency is set at 480MHz, assuming the presence of a 25MHz high speed external (HSE) crystal. If you do not use a HSE or if you have an older version of the chip* you might have to modify the clock configuration function or rely on the default internal oscillator (64MHz).
*Note that stmicroelectronics recently introduced a new version of their chip (version V) able to operate at up to 480MHz.
You need to install the following:
- GNU make
- git
- st-link
- GNU ARM toolchain
- Clone the repo
git clone https://github.com/martindoff/bare-metal-stm32h7.git
- Go to directory
cd bare-metal-stm32h7
- Build
make
- Flash the board (connect via st-link V2 debugger)
make flash
Starting from a simple blinky example, other features can be implemented to explore the capabilities of the board (e.g. test peripherals such as UART, SPI, I2C, ..., test SD card port, LCD screen, etc.) . See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Martin Doff-Sotta - martin.doff-sotta@eng.ox.ac.uk
Linkedin: https://www.linkedin.com/in/mdoffsotta/
Project Link: https://github.com/martindoff/bare-metal-stm32h7