mozilla-sensorweb / sensorweb-firmware

Contains all code that runs on the SensorWeb device
Mozilla Public License 2.0
4 stars 3 forks source link

Write code to flash firmware onto the nRF51822 #17

Open dhylands opened 7 years ago

dhylands commented 7 years ago

We'll need to be able to update the firmware on the nRF51822.

The best way is to actually have the cc3200 act as a programmer and use the SWDIO/RESET and SWDCLK signals.

I found some code which implements the protocol needed for flashing here: https://github.com/cbiffle/swddude

Unfortunately, it seems to be in C++, but at least the algorithms should be there. It also supports way more stuff than what we need (i.e. programming via FTDI etc).

I'd recommend that we reimplement in rust or C and we'll just wind up bit-banging GPIO signals.