Giter Site home page Giter Site logo

Comments (9)

EmmanuelKasper avatar EmmanuelKasper commented on August 30, 2024 1

I have documented using Samba on Linux here: https://github.com/mist-devel/mist-board/wiki/Updating-the-IO-Controller-Via-Bossa-Under-Linux, will add a note that is works on Mac too via brew.

from mist-board.

gyurco avatar gyurco commented on August 30, 2024

Good to know an alternative solution exists. For Atmel's SAM-BA, the last usable is 2.1x, the 3.xx are horribly complicated for the simple task of unbricking.

from mist-board.

harbaum avatar harbaum commented on August 30, 2024

Excellent find! Feel free to send a PR with some instructions.

from mist-board.

dkerfoot avatar dkerfoot commented on August 30, 2024

Thrilled to be paying back in a small way Till!

I'll test it on my Mac (worked great with both Win 10 and on my Pi3) and write up some directions in the next couple of days.

It really was super easy. Both Win10 and the Pi automatically recognised the MiST and selected the proper chip.

It might be good if it were attempted with a non-pi Linux machine by someone...

from mist-board.

retrofun avatar retrofun commented on August 30, 2024

BOSSA works for me on my current debian/testing system.

I had to install the packages libwxgtk3.0-gtk3-dev and libreadline-dev to compile the code from https://github.com/shumatech/BOSSA

Then flashing MiST with the firmware.bin file via BOSSA GUI worked:

Command line tools work, too:

bossac:

mist@localhost:/tmp/BOSSA$ bin/bossac -i
Device       : AT91SAM7S256
Version      : v2.2 Jun 05 2007 10:59:13
Address      : 0x100000
Pages        : 1024
Page Size    : 256 bytes
Total Size   : 256KB
Planes       : 1
Lock Regions : 16
Locked       : none
Security     : false
BOD          : false
BOR          : false
mist@localhost:/tmp/BOSSA$ bin/bossac -w /tmp/mist-devel.mist-firmware/firmware.bin
Write 216968 bytes to flash (848 pages)
[==============================] 100% (848/848 pages)
Done in 11.374 seconds

bossash:

mist@localhost:/tmp/BOSSA$ bin/bossash
Press Ctrl-D or enter "exit" to end session.
Enter "help" to display a command list.
bossa> connect /dev/ttyACM0
Connected to device on /dev/ttyACM0
bossa> info
Device       : AT91SAM7S256
Version      : v2.2 Jun 05 2007 10:59:13
Address      : 0x100000
Pages        : 1024
Page Size    : 256 bytes
Total Size   : 256KB
Planes       : 1
Lock Regions : 16
Locked       : none
Security     : false
BOD          : false
BOR          : false
bossa> write /tmp/mist-devel.mist-firmware/firmware.bin
Write 216968 bytes to flash (848 pages)
[==============================] 100% (848/848 pages)
Write successful

from mist-board.

spicyjack avatar spicyjack commented on August 30, 2024

I just used bossa from Homebrew on my M2 Macbook Air to unbrick my MiST box, so it definitely works on Apple Silicon Macs.

@retrofun's bossac command line commands above (bossac -w firmware.bin) in a Terminal window was all that was needed.

$ brew info bossa
==> bossa: stable 1.9.1 (bottled), HEAD
Flash utility for Atmel SAM microcontrollers
https://github.com/shumatech/BOSSA
Installed
/opt/homebrew/Cellar/bossa/1.9.1 (7 files, 312.6KB) *
  Poured from bottle using the formulae.brew.sh API on 2024-05-29 at 19:03:56
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/b/bossa.rb
License: BSD-3-Clause

from mist-board.

spicyjack avatar spicyjack commented on August 30, 2024

I just added separate but related macOS instructions on that page...

https://github.com/mist-devel/mist-board/wiki/Updating-the-IO-Controller-Via-Bossa-Under-Linux-&-MacOS#installing-on-macos

from mist-board.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.