Skip to content
/ ch551 Public

example project for the ch551 microcontroller using cmake and sdcc

Notifications You must be signed in to change notification settings

mogenson/ch551

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Buy a CH551 development board from http://www.electrodragon.com/product/ch551-mini-dev-board-ch55x-series/
  2. Install CMake and SDCC
  3. Build and install wchisptool from https://github.com/rgwan/librech551
  4. Generate makefile: (optionally use ccmake or cmake-gui to configure project)
    $ cd build
    $ cmake ..
    
  5. Build and flash program:
    $ make
    $ make flash
    $ make erase
    $ make clean
    

About

example project for the ch551 microcontroller using cmake and sdcc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published