STM32F407 flash library
Posted: Mon Dec 10, 2012 2:34 pm
Hi,
I finally had time to "finish" a flash library for the STM32F407. The code is available at: https://github.com/tegesoft/flash-stm32f407
The library allows to erase sectors and read/write data. A helper function allows to flash an IHex file (almost like in the original mabl's work).
There is no bootloader in the repository because I wanted to have a "flash library" with some helpers allowing the use in a bootloader AND in a traditional firmware too (e.g. to read/write "persistent data" in flash for example).
There are a lot of unit tests provided though.
To be noted that the build system is based on CMake and uses our fork of ChibiOS (https://github.com/tegesoft/ChibiOS, which basically just add a CMake build system for what we are using).
As the "library" is just formed by 3 headers and 3 C files, you can integrate it easily in your own stuff and never touch to CMake
Comments are welcome!
I finally had time to "finish" a flash library for the STM32F407. The code is available at: https://github.com/tegesoft/flash-stm32f407
The library allows to erase sectors and read/write data. A helper function allows to flash an IHex file (almost like in the original mabl's work).
There is no bootloader in the repository because I wanted to have a "flash library" with some helpers allowing the use in a bootloader AND in a traditional firmware too (e.g. to read/write "persistent data" in flash for example).
There are a lot of unit tests provided though.
To be noted that the build system is based on CMake and uses our fork of ChibiOS (https://github.com/tegesoft/ChibiOS, which basically just add a CMake build system for what we are using).
As the "library" is just formed by 3 headers and 3 C files, you can integrate it easily in your own stuff and never touch to CMake
Comments are welcome!