https://github.com/blueokiris/ch552g-dev-board
A simple breakout board with minimal hardware design for the CH552g
https://github.com/blueokiris/ch552g-dev-board
board breadboard c ch552g dev kicad mcu
Last synced: 8 months ago
JSON representation
A simple breakout board with minimal hardware design for the CH552g
- Host: GitHub
- URL: https://github.com/blueokiris/ch552g-dev-board
- Owner: blueOkiris
- License: gpl-3.0
- Created: 2024-04-19T00:15:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-26T16:11:24.000Z (over 1 year ago)
- Last Synced: 2024-12-04T21:18:04.782Z (10 months ago)
- Topics: board, breadboard, c, ch552g, dev, kicad, mcu
- Language: C
- Homepage:
- Size: 2.94 MB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CH552G Dev Board
## Description
A simple breakout board with minimal hardware design for the CH552g as well as a C project to be used as a basis.
I've become fond of the CH552g for projects as it's simple like AVR unlike something like ARM, but it doesn't require a programmer and has built-in USB support from the factory, unlike something like AVR but like ARM.
To ensure I don't have to constantly order pcb after pcb, I've created this dev board that can go on a breadboard, so I can prototype with the chip more easily.

## Order Boards
Open up KiCAD and export the Gerber and Drill files and zip them up or grab a zip from Releases.
Then go to JLCPCB's website, start a new order with the zip file, and select PCB Assembly.
Then upload the provided BOM and CPL (in the pcb/ folder) and submit an order.
## Build Example Code
First, clone the repo, then make sure you clone all submodules: `git submodule update --init --recursive`
### Dependencies
- Linux:
+ Just use [nix](https://nixos.org/download/). Use `nix-shell` to get the following:
- gnumake
- hidapi
- libusb1
- libusb
- python3
- sdcc
- virtualenv which will create .venv w/
+ pyusb
+ ch55xtool
- Windows:
+ Install [sdcc](https://sourceforge.net/projects/sdcc/files/latest/download?source=files)
+ Install [mingw](https://sourceforge.net/projects/mingw/files/latest/download)
+ Install [WCHISPTool](https://www.wch.cn/download/WCHISPTool_Setup_exe.html)
- Only relevant for uploading, not building### Build
On Linux, make sure you have the python virtualenv active and sdcc in your path (this happens every time you run `nix-shell`)
Run `make -C example-code` (or `mingw32-make -C example-code`), and it will build everything.
### Upload
__Linux:__
Assuming the program has been built, to upload:
1. Hold down a button on the board you want to upload to
2. Plug into USB and let go of the button
3. Within 2 seconds of letting go, run `make -C example-code upload`If it fails, just try again a few times. If it's still not working, then repeat the process.
__Windows:__
Use WCHISP Studio