Runs a real-time digital watch using Erika-OS on a stm32f4-discovery board with a discover-more extension board.
It's a STM32f407-discovery using std library mounted over a dicover-more extension board. This board also includes a LCD.
if the hardware is ready, The file c_mX.bin can be flashed as follows:
$ st-flash write c_mX.bin 0x8000000
In order to recompile you need to download ERIKA2.x-OS from https://www.erika-enterprise.com/index.php/download/erika-v2.x.html Once Erika is intall, you only need the Erika-CLI not the whole Eclipse to work. So, everything usefull executable you need is under the evidence folder.
Generate files from configuration file conf.oil
$ erika-gen /path/where/Erika-CLI/is/installed/Erika-CLI/ conf.oil .
Edit usr.mk to change your gcc compiler location:
$ nano usr.mk
in the first line you should see something like
GNU_ARM_ROOT = $(HOME)/Apps/gcc-arm-none-eabi-9-2019-q4-major
change it with your gcc compiler location, save it and add usr.mk inside makefile as follows:
$ nano makefile
in the first line write:
$ include usr.mk
- Erika2.x OS (the operating system of the board)
- gcc-arm-none-eabi (to compile the project)
- stlink (to flash the board)