-
I've only tried out USB; there's an OTA option which requires doing some button gymnastics but I haven't tried that out (the xiao ble only has the reset button).
Yeah, they are using that adafruit bootloader (their instructions for flashing the bootloader in case you "brick" the device mention it).
For me though, I would rather have fw updates over BLE rather than over USB because I don't need to be plugging in a USB cable in order to do fw updates (just need a way to hold down BTN1 which I can easily solder some external switch to).
Many of my Espruinos are already connected to circuits that are quite inconvenient to reach with a USB cable (not to mention a computer) so having fw updates only through USB is a nogo.
I'm only appreciating the speed of fw updates over USB because I'm compiling and recompiling fw many times; but once I have a fw I'm happy with, the next fw update would be weeks from then.
If we can do both BLE and USB that would be great :P
In any case, I just tried with another nRF52840 I have (the Waveshare Eval Kit) and I can again connect without issues to the custom Espruino build there, so that's 3 for the 52840. I don't know if I can use SDK12 on the 52840's (the docs mention experimental support) but if I have time I'll try it out.
Thanks - that's a really interesting one then - so I guess it's to do with Nordic's SDK12 and the increased MTU on Mediatek, so I guess it's not entirely driver-side.
... although I'm not quite sure what can be done on the Espruino side to fix that (short of dropping MTU)
Interesting about UF2 - I hadn't seen that! I guess they're using https://github.com/adafruit/Adafruit_nRF52_Bootloader - I'm not 100% sure from that if BLE firmware updates are actually supported as well, or if it's then only USB?
But yes, having the ability to update firmware over USB would be very neat!