Comments (3)
The Arduino Blink sketch compiles to 5333 bytes of flash, and about 4kB of that seems to be the CDC serial code. Using ch554_sdcc, examples/blink compiles to 700 bytes. By leaving out the UART code in debug.c, I reduced it to 232 bytes.
I realize that without the CDC serial code, a manual power cycle into boot mode would be required before uploading new code. I'm hoping there is a way to leave the device in DFU, while still running the user code. Some investigation into how the bootloader works would be required.
In my current test an empty sketch without CDC compiled for 2428 bytes. about 200 bytes are lookup table, and serial0 takes about 600 bytes.
from ch55xduino.
fixed
de11448
from ch55xduino.
In the next version, there will be an option to leave all USB work to the user. So the user will do the USB handler within the sketch folder, with the freedom to make whatever USB device they like, without modifying the board support file.
There is some work on decoding the bootloader code on https://www.mikrocontroller.net/topic/462538 . However, the bootloader is subject to change. The user can write his own bootloader jump code that fits his need, with an empty USB handler.
from ch55xduino.
Related Issues (20)
- Is it possible to use sqrt() in ch552? HOT 6
- How to install on platformIO ? HOT 1
- Low Speed USB - Device Descriptor Fails HOT 3
- Suggestions for uploading and downloading data on HID HOT 1
- WS2812 with v0.0.18 HOT 1
- Is HID Keyboard + USBSerial (CDC VCP) possible? HOT 1
- watchdog triggers too soon HOT 1
- json不能连接上,添加不了板子啊! HOT 1
- CH554 support HOT 12
- About usb sample code
- Idea: add TinyRF capability to open the ch55x to 315/433MHz communication HOT 3
- Keyboard with boot protocol enabled HOT 8
- About absolute mouse HOT 2
- Drivers problem HOT 3
- TouchKey_begin disrupts functionality of pins not enabled for touch HOT 2
- CH55X ARDUINO CORE
- [Demo] Ch554 USB Audio Speaker HOT 5
- Feature request: InfraRed Encoder/Decoder.
- Support more than 85 LEDs (256 bytes RGB Data) for WS2812 HOT 2
- CH546L unresponsive after flash HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ch55xduino.