GithubHelp home page GithubHelp logo

w600tool's Introduction

w600tool

Firmware upload tool for Winner Micro W600 & W601 WiFi

Works on: Linux, Windows, MacOS

Prebuilt Windows executable file is available here

Features

  • Automatically detects bootloader or helps entering secboot
  • Get/Set MAC address
  • Erase secboot and image
  • Switch to high-speed mode
  • Upload fls, img files

Usage

usage: w600tool.py [-h] [-p PORT] [-b BAUD] [--get-mac] [--set-mac MAC] [-e]
                   [-u FILE]
                   [--upload-baud {115200,460800,921600,1000000,2000000}]

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT
  -b BAUD, --baud BAUD
  --get-mac
  --set-mac MAC
  -e, --erase
  -u FILE, --upload FILE
  --upload-baud {115200,460800,921600,1000000,2000000}

Example

$ python3 ./w600tool.py --upload fw/W60X_MicroPython_1.10_B1.1_GZ.img
Push reset button to enter bootloader...
Switched speed to 1000000
Uploading fw/W60X_MicroPython_1.10_B1.1_GZ.img
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:09
Reset board to run user code...

w600tool's People

Contributors

paulhayes avatar vshymanskyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

w600tool's Issues

Error: uploading FLS

I was able to upload *.img successfully. But micropython shell was not started. I think I have to burn *.fls first to make it work. But I am getting the following error:

$ python3 w600tool-master/w600tool.py -p /dev/tty.wchusbserial1410 --upload W60X_MicroPython_1.10_B1.5_img/1M_Flash/wm_w600.fls

Opening device: /dev/tty.wchusbserial1410
Erasing secboot
Error: Erasing secboot failed => Try entering ROM boot manually

PS: I am using Air602 WiFi Development Board from Seeed and I do not think there is a way to initiate ROM boot manually.

non working

Traceback (most recent call last): File "w600tool.py", line 166, in <module> File "w600tool.py", line 157, in getDefaultPort NameError: name 'platform' is not defined [12004] Failed to execute script w600tool

any ideas?

TypeError: 'generator' object is not subscriptable

Checked out the master branch, and when running python w600tool.py I get the following error.

Traceback (most recent call last):
  File "w600tool.py", line 171, in <module>
    parser.add_argument('-p', '--port',   default=getDefaultPort())
  File "w600tool.py", line 160, in getDefaultPort
    return comlist[0].device;
TypeError: 'generator' object is not subscriptable

installed python and libraries:
Python 3.8.6
w600tool 1.1.0
pyserial 3.0.1

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.