Git Product home page Git Product logo

Comments (3)

DeqingSun avatar DeqingSun commented on June 9, 2024 1

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.

DeqingSun avatar DeqingSun commented on June 9, 2024 1

fixed
de11448

from ch55xduino.

DeqingSun avatar DeqingSun commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.