Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Info Pre-built firmwares
#1
The pre-built firmwares, tools and instructions are located on GitHub.

Pre-built firmares zip archive iz available on GitHub and on my server. Flashing tools and instructions are included in the archive.

To flash the pre-built firmware to your K210 board, run (in this directory):

./kflash.py -p /dev/ttyUSB0 -b 2000000 -t MaixPy.bin

Change /dev/ttyUSB0 to the port used to connect to your board if needed.
MaixPy.bin is the default firmware name. Other firmware names can be used.
if -t option is used, the MPyTerm will be started after flash and the board reseted.


kflash.py options:
usage: kflash.py [-h] [-p PORT] [-f FLASH] [-b BAUDRATE] [-d TERMBDR]
                 [-l BOOTLOADER] [-k KEY] [-v] [-t] [-T] [-r] [-n] [-s]
                 [-B BOARD] [-S SLOW]
                 firmware

positional arguments:
  firmware              firmware bin path

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  COM Port
  -f FLASH, --flash FLASH
                        SPI Flash type, 0 for SPI3, 1 for SPI0
  -b BAUDRATE, --baudrate BAUDRATE
                        UART baudrate for uploading firmware
  -d TERMBDR, --termbdr TERMBDR
                        UART baudrate for terminal
  -l BOOTLOADER, --bootloader BOOTLOADER
                        bootloader bin path
  -k KEY, --key KEY     AES key in hex, if you need encrypt your firmware.
  -v, --verbose         increase output verbosity
  -t, --terminal        Start a terminal after finish (PyTerm)
  -T, --term            Do not flash, only run terminal (PyTerm)
  -r, --reset           Reset the board when running PyTerm
  -n, --noansi          Do not use ANSI colors, recommended in Windows CMD
  -s, --sram            Download firmware to SRAM and boot
  -B BOARD, --Board BOARD
                        Select dev board, e.g. kd233, dan, bit, goD, goE or
                        trainer
  -S SLOW, --Slow SLOW  Slow download mode



Attached Files Thumbnail(s)
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)