Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Alderin

Pages: 1
1
TinyDuino Processors & TinyShields / Re: Loading programs from SD
« on: April 30, 2015, 02:58:49 AM »
Having started down a slightly different road with Arduino+SD myself, and the Atmega 328 microcontroller outside of the Arduino programming system, I'll say that while your plan is technically possible, game programming on a 328 is already extremely starved for code space and RAM. I would also be slightly concerned with the re-write limit of the code flash area. Wouldn't be a big problem for the big socketed Arduinos, as a replacement 328 is cheap and easy (~$2 US), but a Tinyduino would have to be fully replaced (~$15 US).

My personal journey with SD slants more toward running an "interpreter" on the 328 that runs code/script from the SD card. A cleverly built interpreter with useful libraries built in would be able to (theoretically) run most functions anyone would need. My plan was for SD+Ethernet to enable scripted interaction with a system for things like downloading logs and issuing commands, but a similar system minus Ethernet and plus Tinyduino Gaming Kit specific libraries would be very cool, too. Allowing level data to be loaded from the SD, save-game data, and multiple games is completely within the realm of possibility.

The downside is that in your version you need to build your own bootloader with SD+Fat32 and programming capabilities and a method to allow reset into the new code afterwards, while for mine I need to build a full interpreter, possibly replacing the bootloader completely (for space), and the "programs" need to be written in whatever language is being interpreted (preferably a derivative of the Arduino C-like system).

Love to know what you come up with!

Pages: 1
SMF spam blocked by CleanTalk