Skip to content

It uses Erika OS to implement a real time digital watch on a stm32f4-discovery board.

Notifications You must be signed in to change notification settings

ckevar/ErikaOS-RealTime-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ErikaOS-RealTime-watch

Runs a real-time digital watch using Erika-OS on a stm32f4-discovery board with a discover-more extension board.

Hardware

It's a STM32f407-discovery using std library mounted over a dicover-more extension board. This board also includes a LCD.

How to run/flash it

if the hardware is ready, The file c_mX.bin can be flashed as follows:

$ st-flash write c_mX.bin 0x8000000

Recompile

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.

Step 1

Generate files from configuration file conf.oil

$ erika-gen /path/where/Erika-CLI/is/installed/Erika-CLI/ conf.oil .

step 2

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

Requirements

  • Erika2.x OS (the operating system of the board)
  • gcc-arm-none-eabi (to compile the project)
  • stlink (to flash the board)