addreas / Apollo3_Uploader_ASB

The Ambiq Secure Bootloader (ASB) serial uploader used on SparkFun Apollo3 based boards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generate executables

Apollo3 Uploader - Ambiq Secure Bootloader (ASB)

Usage

  • prerequisites

    • Python is installed on your computer
    • your program is compiled + linked to support the ASB (binary offset 0xC000)
  • use the ASB loader script to upload to the board

    python asb.py [flags (all required)]

    • --load-address-blob load address: 0x20000
    • --magic-num magic: 0xCB
    • --version version: 0x0
    • --load-address-wired load address wired: 0xC000
    • -i i: 6
    • --options options: 0x1
    • -b baud rate: 115200 or 921600 depending on your board (Artemis boards are 115200)
    • -v verbose: turn on verbose output
    • -o intermediate file path: where to place intermediate files
    • -port serial port: the serial port to connect over (/dev/* on *nix or COMX on windows)
    • --bin filepath: path to the binary image of your program to upload
  • easy copy/paste

    • --load-address-blob 0x20000 --magic-num 0xCB --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -v -o ./temp -port ${YOUR_PORT_HERE} --bin ${YOUR_BIN_HERE}

About

The Ambiq Secure Bootloader (ASB) serial uploader used on SparkFun Apollo3 based boards


Languages

Language:Python 100.0%