DeqingSun / ch55xduino

An Arduino-like programming API for the CH55X
GNU Lesser General Public License v2.1
449 stars 87 forks source link

Upload new code after after upload HID code #79

Closed HamStudioTW closed 2 years ago

HamStudioTW commented 2 years ago

I have upload the test HID code then i want to change some thing then upload it again but it show this error


CH55x Programmer by VNPro

Load file as hex Loaded 4715 bytes between: 0000 to 12AE ch375Version 35 CH375GetUsbID 0 Found no CH55x USB

So who can i upload new code?

DeqingSun commented 2 years ago

You need to manually pull the d+ line to a vcc with resistor and power cycle the chip. If you have a develop board, that means you need to hold a button and replug usb cable.

Note you have to upload the sketch quickly after the power cycle, because a new bootloader will timeout after a few seconds.