simon
simon

Reputation: 1224

SAMD21 ecrypted firmware

I'am working on SAMD21, but now I'd like to implement the possibility to ecrupted firmware. Is it possible on the SAMD21? I find this pdf this is exactly what I want to do page 36 but this for SAM3/4 AT02333

I googled, but I found nothing for SAMD21, is anyone have a doc or maybe source code tutorial ? My idea is to encrypted my firmware with AES128, so I know I need to create implement that in bootloader but I've never done that...

Upvotes: 0

Views: 183

Answers (1)

Mephistt
Mephistt

Reputation: 186

Yes, you could implement firmware encryption on SAMD21 as well as a lot of other MCUs. The idea of firmware encryption does not depend on exact chip or even MCU architecture. The main things are:

  1. The manufacturer releases the new firmware and encrypts it.
  2. The encrypted firmware is transmitted via public domain into the target MCU.
  3. The target MCU decrypt the encrypted firmware and flashes it directly to the internal flash.
  4. The target MCU should be locked to prevent reading decrypted firmware from the internal flash.

As you can see, there is nothing here about protocols, encryption methods, or microcontroller type - all this up to you. The main thing that is needed from the microcontroller is the presence of a protection bit and a memory area for the bootloader. You could use any of the Safe and Secure Bootloader Implementation Tutorial and adopt it to SAMD21 accordingly.

Upvotes: 0

Related Questions