BOSSAC(1)

πŸ’– BOSSAC(1) β€” the bossa girlie manual πŸ’–

okay so bestie, welcome to the bossac manual page, straight out of the BOSSA manual, no cap 🫢


✨ NAME ✨

bossac β€” command line programmer for Atmel SAM ARM microcontrollers πŸ¦‹


🌸 SYNOPSIS 🌸

bossac [OPTIONS] [FILE]

πŸ‘‘ DESCRIPTION πŸ‘‘

so, BOSSA β€” that's the Basic Open Source SAM-BA Application β€” is a flash programmer for Atmel SAM microcontrollers. iconic, i know πŸ’…

this is the command line interface for writing binary images to the target microcontroller's FLASH or ROM over a USB or serial connection. that's the main character job, fr fr.

secondarily (like, side quest energy) bossac may be used to dump binary data that's already chillin' on the target microcontroller, or to display diagnostic information about the device. 🌈


πŸŽ€ OPTIONS πŸŽ€

  • -e, --erase β€” erase the target's entire flash memory before doing any read or write operations. like a full reset of the vibe πŸ’€
  • -w, --write β€” write FILE to the target's flash memory. this operation can be expedited immensely if you use it in conjunction with the --erase option. dynamic duo behavior ✨
  • -r, --read[=SIZE] β€” read SIZE bytes from the target's flash memory and store the contents in FILE. if SIZE isn't specified, the entire contents on the target's flash memory will subsequently be read and written to disk. give it nothing and it takes everything, periodt πŸ“
  • -v, --verify β€” verify that FILE matches the contents of flash on the target, or vice-versa if you prefer. both directions are valid, she's flexible πŸ’…
  • -p, --port[=PORT] β€” use the serial port PORT to communicate with the device. by default this program will automatically scan all serial ports looking for a supported device. she'll go find her own friends πŸ¦‹
  • -b, --boot[=BOOL] β€” boot from ROM if BOOL is 0. boot from FLASH if BOOL is 1. (the latter is default.) this option is completely disregarded on unsupported devices. sorry bestie, no effect there 😭
  • -c, --bod[=BOOL] β€” disable brownout detection if BOOL is 0. enable brownout detection if BOOL is 1. (the latter is default.) 🧚
  • -t, --bor[=BOOL] β€” disable brownout reset if BOOL is 0. enable brownout reset if BOOL is 1. (the latter is default.) 🧚
  • -l, --lock[=REGION] β€” lock the flash region REGION. multiple regions may be specified as a comma-separated list. all regions will be locked if no REGION is given (default). lock her down πŸ”’
  • -u, --unlock[=REGION] β€” unlock the flash region REGION. multiple regions may be specified as a comma-separated list. all regions will be unlocked if no REGION is given (default). freedom era ✨
  • -s, --security β€” set the flash security flag. πŸ›‘οΈ
  • -U, --force_usb_port[=BOOL] β€” enable automatic detection of the target's USB port if BOOL is false. disable USB port autodetection if BOOL is true. (the former is default.) πŸ™ˆ
  • -R, --reset β€” reset the CPU after writing FILE to the target. this option is completely disregarded on unsupported devices. πŸ’€
  • -i, --info β€” display diagnostic information identifying the target device. get to know her πŸ‘€
  • -d, --debug β€” print verbose diagnostic messages for debug purposes. yapper mode activated πŸ—£οΈ
  • -h, --help β€” display short command line help information. 🫢

πŸ”₯ EXAMPLES πŸ”₯

bossac -e -w -v -b image.bin                              # Erase FLASH,
write image.bin to FLASH, verify the write, and set boot from FLASH
bossac --port=ttyACM0 -U false -e -w -v -b -R image.bin   # Do the same
thing as the previous example, except forceably write to the device
connected to ttyACM0 and reset the CPU after verifying the write
bossac -r0x10000 image.bin                                # Read 64KB
from FLASH on the target device, then write it out to image.bin on your
hard disk

like, erase FLASH, write image.bin to FLASH, verify the write, and set boot from FLASH β€” all in one line. ate and left no crumbs πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

this manual page was written by Karl Lenz <xorangekiller@gmail.com> for the Debian project (but may be used by others). shoutout to him 🫢


Copyright (c) 2011-2013 ShumaTech <http://www.shumatech.com>

copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

Bossac is provided "as is" with no warranty. this program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. on Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". πŸ“œ


⭐ SEE ALSO ⭐

bossa(1), bossash(1)


ngl if you got this far you're literally a systems girlie now. go flash something πŸ’…

okay that's the whole thing bestie β€” this was bossac 1.3a, from February 2014, and you read it all. so proud of you πŸ₯ΉπŸ’–βœ¨