This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

About updating firmware of MCU

Hello,

I have to design a device which has a STM32L152VD as main micro-controller. The user should be able to update the firmware using a GUI software from RS232. There should be a secure process to update the firmware. For example after verifying a password by micro-controller and there should be always a backup firmware to replace if the updating process failed. Should I use a second micro-controller and a flash memory to do this or is it possible to use the same MCU to handle it?

Parents
  • These are certainly things that can be readily done. If you want to keep a backup, having an external SPI flash device may be a way of holding that, and staging the update image. The main way to do this with just the processor is to have a small bootloader (few KB) that can flash the remainder of the device and is not erased. This would prevent you bricking the device in the field.

Reply
  • These are certainly things that can be readily done. If you want to keep a backup, having an external SPI flash device may be a way of holding that, and staging the update image. The main way to do this with just the processor is to have a small bootloader (few KB) that can flash the remainder of the device and is not erased. This would prevent you bricking the device in the field.

Children