I am going to create a game console. The games will be in an SD card and an Arduino (or an Atmega chip) will read a hex file's contents to RAM and will flash it to another one. Something like this but here, the guy says that this only works for atmega328, and I am planning to use a ATSAM3X8E chip and also I am worried about the power levels (5v - 3v3).

Is there any way for me to use an Atmega chip like Atmega16u2 and use that to flash something like an ATSAM3X8E? If so, what protocol should I use and how may I implement it in my code?

  • That video isn't really relevant. Unless you want to waste two arduinos for this project, which is a bit wasteful. What you want to do is have the Arduino program itself. This is normally done via a bootloader (at least on the ATMegas). I found a bootloader that updates it main program via a SD card – Gerben Jul 1 '20 at 14:20
  • As for the ATSAM, have a look at stackoverflow.com/questions/14960075/… – Gerben Jul 1 '20 at 14:23
  • @Gerben I want to waste two arduino's, actually I will use an Atmega16u2 for flashing the ATSAM3X8E from the sd card. – kahveciderin Jul 1 '20 at 14:23
  • application on ATSAM3X8E can write to flash without problems so it can update itself. Arduino has SDU library for SAMD21 to load sketch from SD card – Juraj Jul 1 '20 at 14:23
  • @Juraj I need to display a GUI to ask the user about which program to flash. – kahveciderin Jul 1 '20 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.