https://github.com/chepo92/tool-bossac-py-reset
Tools for upload firmware to ARM SAM boards that use SAM-BA Protocol
https://github.com/chepo92/tool-bossac-py-reset
1200bps arduino bossa bossac cli due python reset sam sam-ba serial serial-reset touch
Last synced: about 2 months ago
JSON representation
Tools for upload firmware to ARM SAM boards that use SAM-BA Protocol
- Host: GitHub
- URL: https://github.com/chepo92/tool-bossac-py-reset
- Owner: chepo92
- License: apache-2.0
- Created: 2023-09-13T04:22:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-13T23:34:10.000Z (over 1 year ago)
- Last Synced: 2025-02-04T18:48:38.345Z (3 months ago)
- Topics: 1200bps, arduino, bossa, bossac, cli, due, python, reset, sam, sam-ba, serial, serial-reset, touch
- Language: Python
- Homepage:
- Size: 3.39 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
Need a tool for uploading your firmware using simple steps?
Do you need a way to do a usb reset signal for uploading as platformio/Arduino IDE:
`Performing 1200-bps touch reset on serial port COM1`This is for you
# Requirements
Python
pyserial (pip install pyserial)# Instructions
1. Reset the board/trigger bootloader (will do it on the first port found)
In a terminal run:
python pyTouchAuto.py- If you want to specify a port, modify the code of pyTouch.py and run
python pyTouch.py2. Run upload command, eg. bossac (included in folder)
If connected to board through Programming Port:
path/to/bossac -i -d --port=ttyACM0 -U false -e -w -b "path/to/firmware.bin" -RIf connected to board through Native USB:
path/to/bossac -i -d --port=ttyACM0 -U true -e -w -b "path/to/firmware.bin" -RRefer to bossac manual for details on the used option/switches (-idUewbR)
Examples:
In a Linux terminal:
./1.6.1-arduino/bossac -i -d --port=ttyACM0 -U false -e -w -b "./firmware.bin" -RIn Windows:
./1.6.1-arduino/bossac -i -d --port=COMn -U false -e -w -b "firmware.bin" -RExample for an sketch build in Arduino IDE:
"/home/axel/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino/bossac" -i -d --port=ttyACM0 -U false -e -w -b "/tmp/arduino/sketches/9AD2B3422801741548BD78F5F71C95A7/Blink_arm.ino.bin" -R