Hello all
As promised, here is yet a bit more improved version of the bootloader I started making for Fakebuinos. If you know how to flash the bootloader, you are most welcome to try it out on your Gamebuino as well. Please note this is not an official bootloader approved by Rodot. SO USE AT YOUR OWN RISK ! You can not damage the Gamebuino/fakebuino, but you need to know how to replace the original bootloader.
I'd appreciate if the people interested (problems with bootloader hangs) would try this bootloader (albertinjo, treflip etc).
Some changes to the official Gamebuino bootloader:
1. It uses the adaboot mod to detect cause of reset from MCUSR. It will not flash the loader.hex if the cause of reset is "soft" reset. Even if you hold the C button forever, it will flash loader.hex only 1 time.
2. It checks C button 3 times with delays in between (ie. debounce). It will NOT flash the loader.hex because of power on / off cycle anymore. You can switch on and off as much as you like, as long as you do not hold C.
3. You need to hold C, reset device and then count to three before releasing C to launch the loader. You can not hold too long by accident (see point 1) but this is a good rule of thumb.
4. I switched flash_write routines from _short versions to _normal versions. Although they use a little bit more space, they might be a bit more robust. I'm trying to improve the stability of the bootloader / loader.
I have tested this and so far I have not been able to crash it even once. Please try it and tell me your results.
Source in the .7z file attachment
USE THE HEX in the google drive link, the hex in the 7z is the old version !!!
https://drive.google.com/file/d/0BweEjvtKj1KLMnMxNHFlSnZYN2s/edit?usp=sharing