Giter VIP home page Giter VIP logo

hc32.tool's Introduction

hc32.tool

A device flashing tool for the hc32l110 series MCUs

basic usage: This tool will flash elf / raw binaires to a HC32L110 series MCU via their built-in serial protocol. In order to do this you'll need a usb/ttl virtual com port module. I've successfully used both a CH340 and Raspberry Pi pico. The chip / serial module should be wired together as such:

Serial.DTR/RTS => MCU.P00/RESET
Serial.V+ =>  MCU.V+ 
Serial.GND => MCU.GND
Serial.RXD => MCU.P35
Serial.TXD => MCU.P36

once thats done the tool can be invoked as such hc32tool download my_app.elf COM7 While I've not tested the application under linux the underlying serial port library System.IO.Ports is supposed to accept standard tty device paths.

about baud rate: The HC32l110 series UART modules are very limited and coupled to the system clock. My experience is that the default 4mhz clock is only stable up to about 115200 baud which is the default. This produces about a 3s load time for a 16k test rom.

building

This project targets dotnet core 6. Once you have the sdk installed you should be able to build by running dotnet build from within the folder containing hc32tool.csproj. This should restore all required nuget packages, and produce an executable in the bin\Debug\net6.0 folder

binaries

I havent gotten around to putting together a build pipeline. Once I do, there should be binaries available for windows and linux.

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.