GithubHelp home page GithubHelp logo

serprog's Introduction

SerProg

A serial programming tool for microcontroller.

Reference project

  • SAME54BOOT

    Bootloader for Microchip SAME54 series MCU (ARM Cortex-M4F)

  • NuM487BOOT

    Bootloader for Nuvoton M480 series MCU (ARM Cortex-M4F)

  • AuxMCUboot

    Bootloader for auxiliary MCU (ATmega16U4). The main function is to convert USB-UART protocol.

Download

You can install this package from PyPI using pip. Simply run the following command:

pip install serprog

Usage

usage: serprog prog [-h] [-d DEVICE] -p PORT [-f FLASH_FILE] [-ef EXT_FLASH_FILE] [-e EEPROM_FILE] [-flashboot]

options:
  -h, --help            show this help message and exit
  -d DEVICE, --decice DEVICE
                        The name or number of the device type to be programmed. Can see available device type by
                        subcommand print-device-list.
  -p PORT, --port PORT  The serial port which program burn the device.
  -f FLASH_FILE, --flash FLASH_FILE
                        Set binary file which program to flash.
  -ef EXT_FLASH_FILE, --extflash EXT_FLASH_FILE
                        Set binary file which program to externel flash.
  -e EEPROM_FILE, --eeprom EEPROM_FILE
                        Set binary file which program to eeprom.
  -flashboot, --extflash_boot
                        Program from externel flash to internel flash.
  • [Example]: program the specified image file (.hex) into the MCU's internal flash.
    serprog prog -p COM1 -f image.hex
  • [Example]: program the specified image file (.hex) into the development board's NOR flash.
    serprog prog -p COM1 -ef image.hex

Overview

Boot scheme

  • Hardware scheme
  • Software scheme

Bootloader Protocol

Finite State Machine

Communication handshake

  • Programming to internal flash
  • Programming to SPI NOR flash (Managed by LittleFS)

Communication commands

Flowchart

serprog's People

Contributors

cy023 avatar

Stargazers

Shalnark avatar Kuo WeiCheng avatar

Watchers

Kostas Georgiou avatar  avatar

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.