External flash memory is coming to the Arduboy! Inspired by @Mr.Blinky and his efforts to add external memory to the Arduboy, I’m learning how to work with the hardware and software so it can be integrated into the production hardware.
The eternally gracious @Mr.Blinky has offered to tutor my learning and by directing me through chat while I broadcast a twitch live stream trying to follow his instructions.
If you would like to play from home you’ll need to be using hardware described in this post:
Here is the first recorded stream where we performed the following:
I had music on at parts, so it mutes the audio you have to click to unmute, I’ll do better next time!
Here is the things we covered:
Download Game https://github.com/MrBlinky/Arduboy
Install Arduboy2 Library
Run Flash Cart Test
Get pyhton utilities from github https://github.com/MrBlinky/Arduboy-Python-Utilities
install into working directory
make sure python is set in path Path = %CD%Python;%CD%Python\Scripts;%PATH%
Install pyserial python -m pip install pyserial
Test if pyserial works python eeprom-backup.py
Upload video python flashcart-writer.py -d .\flashcart\test-sketch\thedoor-frames.bin
Upload ball data python flashcart-writer.py -d .\flashcart\test-sketch\drawballs-test\drawballs-test.bin
Flash ball test sketch
There were some bugs in the python script causing corruption of the data which we spent the second half of the stream debugging. It was figured out off line the cause and has since been fixed so you no longer need to change the memory address manually.
The end result is an Arduboy with 2 games and their respective external resources stored on the external memory so the bootloader can switch between the games. The Description and Save file are not being used yet.
Pro-Tip: If you have added python to your path directory, you can drag and drop the source files onto the pyhton script you want to use and it will automatically execute, you don’t need to open a command window unless you need to run some options or see error results.