analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
60 stars 76 forks source link

Instructions for flashing MAX78000 over SPI #858

Closed khavernathy closed 5 months ago

khavernathy commented 6 months ago

Are there any docs for flashing the chip through SPI? (instead of through a host PC using arm-none-eabi-gdb and openocd)

For example could I make an executable using the *.elf that is made through the build process and then write it to the chip at address 0x0?

Jake-Carter commented 6 months ago

In general this is called a "bootloader", and the MAX78000 does have a built-in bootloader documented in section 26 of the User Guide. It exposes a UART interface. I would recommend this option if you'd like to do in-application programming, though the documentation does have some outstanding issues.

See these tickets for more details and resources:

It's also possible to write your own bootloader and put it in a reserved section of flash, but this is a more advanced option.

Is SPI a strict requirement for the bootloader interface?

khavernathy commented 6 months ago

SPI doesn't seem to be a strict requirement.

ty for helpful info. I'll do some research to see if I can figure out flashing over UART.