Skip to content

A command line programmer interfacing for Winner Marco 800 series chips.

License

Notifications You must be signed in to change notification settings

sanpeqf/w80xprog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

W80xPROG Introduce

This program can easily download firmware to w800 series devices, as well as modify the device's bluetooth wifi mac address and RF gain, it uses serial port to communicate with the target chip.

Continuous Integration Status

Status (master) Description
build status Build default config on Ubuntu gcc
build status Build default config on Ubuntu clang
build status Build default config on Macos
build status Build default config on Windows
build status Code analyse on codeql

Usage

$ ./build/w80xprog
w80xprog v1.2
Copyright(c) 2021-2024 John Sanpe <[email protected]>
License GPLv2+: GNU GPL version 2 or later.

Usage: w80xprog [options]...
        -h, --help                display this message
        -p, --port <device>       set device path
        -s, --speed <freq>        set link baudrate
        -n, --nspeed <freq>       set new baudrate
        -o, --secboot             entry secboot mode
        -i, --info                read the chip info
        -f, --flash <file>        flash chip with data from filename
        -e, --erase <offset:size> erase the specific flash
        -b, --bt <mac>            set bluetooth mac address
        -w, --wifi <mac>          set wifi mac address
        -g, --gain <gain>         set power amplifier gain
        -r, --reset               reset chip after operate

Flash chip

$ ./build/w80xprog -p /dev/ttyUSB0 -n 921600 -orf ./flash.bin
w80xprog v1.2
Copyright(c) 2021-2024 John Sanpe <[email protected]>
License GPLv2+: GNU GPL version 2 or later.

Entry secboot:
        Version: Secboot V0.6
Setting speed:
        [0x06]: OK
Chip Flash:
100% [================================================] 30.902 KB, 9.639 KB/s
Chip reset...

Build form source

$ git clone https://github.com/JohnSanpe/w80xprog.git
$ cd w80xprog
$ git submodule update --init --recursive
$ cmake -Bbuild
$ cmake --build build