martindoff / bare-metal-stm32h7

A bare metal implementation of a blinky example for the stm32h743 with a simple makefile and without using any HAL libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo

Bare metal stm32h7

A bare metal implementation of a blinky example for the stm32h743 with a simple makefile and without using HAL libraries.

Table of Contents

  1. About The Project
  2. Getting Started
  3. Roadmap
  4. Contributing
  5. License
  6. Contact

About The Project

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.

Built With

Getting Started

Prerequisites

You need to install the following:

  • GNU make
  • git
  • st-link
  • GNU ARM toolchain

Installation

  1. Clone the repo
    git clone https://github.com/martindoff/bare-metal-stm32h7.git
  2. Go to directory
    cd bare-metal-stm32h7
  3. Build
    make
  4. Flash the board (connect via st-link V2 debugger)
    make flash

Roadmap

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

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

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

About

A bare metal implementation of a blinky example for the stm32h743 with a simple makefile and without using any HAL libraries

License:MIT License


Languages

Language:C 99.0%Language:Assembly 1.0%Language:Makefile 0.1%