gpdaniels / spike-prime

Experiments with the LEGO Mindstorms (51515) and SPIKE Prime (45678)
MIT License
282 stars 39 forks source link

[Question] Flash firmware to Spike Prime #16

Closed cscovino closed 3 years ago

cscovino commented 3 years ago

Is there a way that I can flash firmware on the LEGO Spike Prime over serial communication? The idea is to update the firmware without the LEGO desktop app. And the next question would be how I can get the updated firmware.

gpdaniels commented 3 years ago

You can use the dfu tool to do that. Have a look at how pybricks are doing it.

See:

I'm sure it's also possible using some of the functions in the firmware module in the SPIKE Prime. I think there's some functions for reading and writing bytes of the flash, but I've not experimented with them.

gpdaniels commented 3 years ago

Regarding getting the updated firmware, I've been dumping the firmware of each release as they come. So you can grab any of the firmwares from the firmware directory.