Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 1.46 KB

README.md

File metadata and controls

31 lines (28 loc) · 1.46 KB

ST17H66_blinky

Minimal code to blink the LED on Lenze st17h66 based tags, based on

It will start as a Keil project, but with the aim to move to GCC

  • Copy biemster/st17h66_RF and rename to Lenze_blinky
  • Reduce to just a single file, which turns on the LED
  • Convert to GCC what we have so far
  • Add a timer using IRQ to blink the LED
  • Activate deep sleep when the LED is off
  • Convert project to single source file, GCC only
  • Compilation instructions

How to compile and flash

The compiled firmware is available in the build/ directory, but can be compiled easily. You will need an ARM GCC compiler and utils, like arm-none-eabi- on Linux, and the CMSIS headers:

$ git clone https://github.com/ARM-software/CMSIS_5
$ git clone https://github.com/biemster/st17h66_blinky
$ cd st17h66_blinky
$ make

To flash to the ST17h66, connect an UART to P9 and P10 (pin 5 and 6), and run

$ ./flash_st17h66.py

It has an USB UART hardcoded on /dev/ttyUSB0, so if your UART lives somewhere else you'll need to change this.

This repository is now considered finished, and will not likely recieve updates besides bug fixes. Further developtments will be done on https://github.com/biemster/st17h66_RF/. The code is cleaned to a point where it might be difficult to build applications on top, check the history to find for example where the UART code is removed.