Ch551
example project for the ch551 microcontroller using cmake and sdcc
Install / Use
/learn @mogenson/Ch551README
Example project for the WCH CH551 8051 microcontroller using CMAKE and SDCC
This example program blinks the LED connected to pin 0 of GPIO port 3 at 2 Hz. There's no external header files, register defines, or libraries required to build. This project uses CMake for the build system and SDCC for the compiler.
Instructions
- Buy a CH551 development board from http://www.electrodragon.com/product/ch551-mini-dev-board-ch55x-series/
- Install CMake and SDCC
- Build and install
wchisptoolfrom https://github.com/rgwan/librech551 - Generate makefile: (optionally use ccmake or cmake-gui to configure project)
$ cd build $ cmake .. - Build and flash program:
$ make $ make flash $ make erase $ make clean
