SAM-BA operation failed
Opened this issue · 0 comments
o7-machinehum commented
Hey! I'm trying to flash an Arduino Nano BLE.
machinehum@walkers-MacBook-Pro bike-daq.git % /opt/homebrew/bin/bossac -p /dev/cu.usbmodem21101 -R -e -w -v -b /Users/machinehum/prj/bike-daq/bike-daq.git/build/zephyr/zephyr.bin
SAM-BA operation failed
I couldn't figure out how to get the version out of the cli but here's the help output
machinehum@walkers-MacBook-Pro bike-daq.git % bossac -h
Usage: bossac [OPTION...] [FILE]
Basic Open Source SAM-BA Application (BOSSA) Version
Flash programmer for Atmel SAM devices.
Copyright (c) 2011-2018 ShumaTech (http://www.shumatech.com)
Examples:
bossac -e -w -v -b image.bin # Erase flash, write flash with image.bin,
# verify the write, and set boot from flash
bossac -r0x10000 image.bin # Read 64KB from flash and store in image.bin
Options:
-e, --erase erase the entire flash starting at the offset
-w, --write write FILE to the flash; accelerated when
combined with erase option
-r, --read[=SIZE] read SIZE from flash and store in FILE;
read entire flash if SIZE not specified
-v, --verify verify FILE matches flash contents
-o, --offset=OFFSET start erase/write/read/verify operation at flash OFFSET;
OFFSET must be aligned to a flash page boundary
-p, --port=PORT use serial PORT to communicate to device;
default behavior is to use first serial port
-b, --boot[=BOOL] boot from ROM if BOOL is 0;
boot from FLASH if BOOL is 1 [default];
option is ignored on unsupported devices
-c, --bod[=BOOL] no brownout detection if BOOL is 0;
brownout detection is on if BOOL is 1 [default]
-t, --bor[=BOOL] no brownout reset if BOOL is 0;
brownout reset is on if BOOL is 1 [default]
-l, --lock[=REGION] lock the flash REGION as a comma-separated list;
lock all if not given [default]
-u, --unlock[=REGION] unlock the flash REGION as a comma-separated list;
unlock all if not given [default]
-s, --security set the flash security flag
-i, --info display device information
-d, --debug print debug messages
-h, --help display this help text
-U, --usb-port[=BOOL] force serial port detection to USB if BOOL is 1 [default]
or to RS-232 if BOOL is 0
-R, --reset reset CPU (if supported)
-a, --arduino-erase erase and reset via Arduino 1200 baud hack
Report bugs to <bugs@shumatech.com>
I'm on a Macbook Pro 2022 (M2 silicon) and installed with brew.
machinehum@walkers-MacBook-Pro bike-daq.git % brew info bossa
Warning: Treating bossa as a formula. For the cask, use homebrew/cask/bossa
==> bossa: stable 1.9.1 (bottled), HEAD
Flash utility for Atmel SAM microcontrollers
https://github.com/shumatech/BOSSA
/opt/homebrew/Cellar/bossa/1.9.1 (6 files, 290.8KB) *
Poured from bottle using the formulae.brew.sh API on 2023-06-05 at 11:04:07
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/bossa.rb
License: BSD-3-Clause
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 0 (30 days), 0 (90 days), 56 (365 days)
install-on-request: 0 (30 days), 0 (90 days), 57 (365 days)
build-error: 0 (30 days)