Now I'm trying to use bossac 1.9.1, but it seems it requires the physical button 2-press reset. avrdude did not. So imagine my surprise at this revelation. Sadly, this won't do for remote installations where I don't have physical access to the trinket.
I'm executing this:
Code: Select all
bossac -e -w -v -R --offset=0x2000 --port=/dev/ttyACM0 LED_Status_uC_rgb_neo_4.2.1.ino.bin
Code: Select all
No device found on /dev/ttyACM0
Code: Select all
if (Serial.available() > 0) {
String command = Serial.readStringUntil('\n');
if (command == "bloader") {
// Trigger the bootloader
// Sets a magic value and triggers a software reset
*((uint32_t *)(0x20000000 + 0x000008)) = 0x50484352;
NVIC_SystemReset();
}
...
This is kind of a deal breaker if there's no way to remotely update firmware.
Any tips appreciated,
Chris.