STM32 program ATMega

atmegaprogrammerstm32stm32f0

Is it possible to program HEX file from STM32 to ATMega 328 ? I can think of some Serial communication, but I don't know whether is it possible to do on tiny STM32F0 series or it needs more powerful STM32.

It will probably be required boot loader support on ATMega chip for Serial programming.

Thanks.

Best Answer

You can use SPI to perform ISP on a AVR MCU. The exact steps and connections required are detailed in the "Memory Programming" section, "Serial Downloading" subsection of the '328 datasheet as well as in AVR910. I recommend that you implement a known protocol such as that described in AVR109 so that your programmer works with existing tools.