Thu Jul 31, 2014 11:43 pm
Thu Aug 07, 2014 10:52 am
couribel wrote:Hi, I've also a boot problem on one of my Gamebuinos.
I think I crash the loader by switching off just after pressing the C button to change game
So, I try different things like :
- reformat in FAT16 the SD card (and reload all HEX files downloaded from github)
- install the gamebuino context in gamebuino.exe to be able to load programs (as described here : http://gamebuino.com/wiki/index.php?tit ... hrough_USB)
- load one example and send to gamebuino ==> this game is loaded, and run correctly
- now I'd like to reload the default boot program, which will load loader.HEX from SD card
For this, I've tried the following code (from the 1st page) :
- Code:
// this code demonstrates the use of load_game
// upload it into gamebuino and then open the serial port monitor, you should see
// the "Send a char to start..." message. send a character to it and it
// will attempt to load and burn LOADER.HEX from the SD card
#define load_game (*((void(*)(const char* filename))(0x7ffc/2)))
void setup() {
Serial.begin(9600);
Serial.println("Send a char to start...");
}
void loop() {
if (Serial.available()) {
Serial.read();
load_game("LOADER");
}
}
But it's not working as expected.
In the serial monitor, I see "send a char", but nothing appear on the Gamebuino screen after sending a char.
No Loader.HEX loaded.
What can I do ?
Regards,
Laurent
Thu Aug 07, 2014 10:58 am
Thu Aug 07, 2014 8:28 pm
Thu Aug 07, 2014 10:42 pm
Fri Aug 08, 2014 8:37 pm
Sat Aug 09, 2014 7:38 am
couribel wrote:Maybe you can create a FAQ to summarize all these small problems that many people can encounter.