Changing the code by only changing the ad card

Hi all I’m wondering if there is a way to completely change the code on arduino by only changing the address card in it

I’m trying to make a little game boy like thing and I was thinking I might be able to change the games on the game boy just changing the code because of storage issues and I was wondering if just replacing the sd card was an option or if I would need a different way

To the best of my knowledge you can't load code from an SD card. The best you could probably do is to load some data from the SD card, including a data item that determines which sections of the code on the Arduino are run. However, this will not remove the need for all of the required games to be already present on the Arduino

If it is possible to load code from an SD card I will be interested to see how it is done. Meanwhile, are you sure that your existing games are making the best use of the memory that you have by using variables of the best type, PROGMEM and the F() macro ?

One can always write his / her own bootloader to support fashing from SD :slight_smile:

@ch3eselord
An alternative is to have a second board that functions as a programmer and has a SD card on board. If you main board is based on an AVR chip, see crossroads programmer

Put a processor on every game card. They're cheap. You could also use an Arduino with a lot of memory, store all the games in it, and then use the game card to just select a game.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.