Navigation Menu

Skip to content

stecman/stm8s-vqb71-clock

Repository files navigation

GPS Clock (STM8S)

Firmware for an STM8SF003 microcontroller to show HH:MM:SS time on six VQB-71 segment displays, with accurate time from a GPS module. More project write-up, schematics, etc is available on Hackaday: VQB 71 GPS Clock.

The base of this project was ported to STM8S from my 1KB AVR GPS Clock project.

Setup

Grab the code:

git clone https://github.com/stecman/stm8s-vqb71-clock.git
cd stm8s-vqb71-clock

# Pull in SDCC compatible STM8S peripheral library
git submodule init
git submodule update

Once the toolchain below is available:

# Build
scons

# Flash through STLinkV2
scons flash

Linux Toolchain

SCons (build tool)

This should be available in your distribution's pacakage manager. It can also be installed via Python's pip package manager.

SDCC (compiler)

This project requires SDCC 3.9 or newer.

stm8flash (flashing tool)

stm8flash uses an STLink V1/V2 to program STM8 devices through their SWIM interface.

This needs to be compiled from source currently, which is simple:

git clone https://github.com/vdudouyt/stm8flash
cd stm8flash
make
sudo make install

About

Firmware for a VQB-71 digital clock fed by GPS time, driven with MAX7219

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published