-
1Installation
Automatic IDE integration is supported via the Arduino Boards Manager. This is the recommanded way of installation now.
Start the Arduino-IDE. In File->Preferences, Settings tab, enter
https://raw.githubusercontent.com/DeqingSun/ch55xduino/ch55xduino/package_ch55xduino_mcs51_index.json
as an Additional Boards Manager URL.
- Open Tools->Board:...->Boards Manager
- Find Ch55xduino by typing 'ch' into the search line
- Click on the list entry
- Click on Install.
Now you should find a new entry CH55x Boards in the list at Tools->Board:...
- Choose CH552 Board from the list
- open the standard Blink example from File->Examples->01. Basics->Blink
- Change pin number in Blink example. For example, if you have LED on P3_0, you will write pin 30.
- compile it by hitting Verify
- If your board is never used with ch55xduino before, you need to make the ch55x chip enter bootloader mode. You need to disconnect USB and unpower ch55x, connect the pull-up resistor on D+ line (generally a 10K resistor between D+ and 5V, controlled by a push-button or adjacent pads). Then you connect USB. and hit Upload. Also, a blank new chip will enter the bootloader automatically.
- If you have used ch55xduino once and your code doesn't crash the USB subsystem, you can simply press Upload. Arduino and the firmware will kick the chip into the bootloader automatically.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Good job !!!!
Are you sure? yes | no
To enter the bootloader first time on a CH552G (which is running the show on a mini macropad), connecting a pull-up between the D+ line and pin 16 (3v3) did not work. There is an alternative way though, which is pulling pin 3 to ground. (connect pin 14 and pin 3 together). That worked!
Found that gem here: http://rabid-inventor.blogspot.com/2020/05/getting-started-with-ch55x.html
Are you sure? yes | no
It is likely the manufacturer of your macropad changed the configuration bit. The new chip should use the D+ line. But it can be changed.
Are you sure? yes | no
You mean it is either D+ to 3v3, or pin3 to gnd?
Oddly the pad had nicely adjacent test points to connect D+ and pin16 with a 10k already in place :) That was a nice trick to confuse me
Are you sure? yes | no