Archive of the Gamebuino Classic forum (2014-2018), rebuilt from the pages kept by the Wayback Machine: only part of the topics and pages were captured. Read-only. Removal on request: hi@gamebuino.com.
Forum › Installation & Troubleshooting
Can't load from SD...
spinal Sat Oct 29, 2016 5:18 pm
Hi everyone, I'm having a little trouble loading files on my fakebuino. Do I need a special version of the loader or something?
I haven't flashed the boot loaded yet, I wanted to make sure I could load a game first.
Anyway, if I run 'loader' compiled from the source and flashed through the arduino software, i'm constantly resetting. The 'loader_old' code tells me to insert an SD card. however, the arduino card_info example (with chip_select = 10;) lists my files fine, here is a copy of the serial monitor window...
Am I missing something obvious here?
[edit]
Using SanDisk 2GB microSD.
Also, that MC Hammer streaming example works fine also.
I haven't flashed the boot loaded yet, I wanted to make sure I could load a game first.
Anyway, if I run 'loader' compiled from the source and flashed through the arduino software, i'm constantly resetting. The 'loader_old' code tells me to insert an SD card. however, the arduino card_info example (with chip_select = 10;) lists my files fine, here is a copy of the serial monitor window...
- Code: Select all
Initializing SD card...Wiring is correct and a card is present.
Card type: SD2
Volume type is FAT16
Volume size (bytes): 1977319424
Volume size (Kbytes): 1930976
Volume size (Mbytes): 1885
Files found on the card (name, date and size in bytes):
SYSTEM~1/ 2016-10-29 17:59:00
INDEXE~1 2016-10-29 17:59:00 76
3D-DEMO.HEX 2016-07-10 23:31:32 51760
3D-DEMO.INF 2016-07-10 23:31:32 433
101STAR.HEX 2016-07-10 23:31:32 80800
101STAR.INF 2016-07-10 23:31:32 1137
AIMBUINO.HEX 2016-07-10 23:31:32 51088
AIMBUINO.INF 2016-07-10 23:31:32 433
ASTEROCK.HEX 2016-07-10 23:31:32 60368
ASTEROCK.INF 2016-07-10 23:31:32 785
BLBA.HEX 2016-07-10 23:31:32 52012
BLBA.INF 2016-07-10 23:31:32 1489
BLOCKS.HEX 2016-07-10 23:31:32 74964
BLOCKS.INF 2016-07-10 23:31:32 433
BLOKDUDE.HEX 2016-07-10 23:31:32 51016
BLOKDUDE.INF 2016-07-10 23:31:32 785
BOMBER.HEX 2016-07-10 23:31:32 65580
BOMBER.INF 2016-07-10 23:31:32 1137
B-RALLY.DAT 2016-07-10 23:31:32 1310720
B-RALLY.HEX 2016-07-10 23:31:32 83340
B-RALLY.INF 2016-07-10 23:31:32 1137
BRICKS.HEX 2016-07-10 23:31:32 78572
BRICKS.INF 2016-07-10 23:31:32 433
BUB.HEX 2016-07-10 23:31:32 64112
BUB.INF 2016-07-10 23:31:32 433
CONWAY.HEX 2016-07-10 23:31:32 36880
CONWAY.INF 2016-07-10 23:31:32 433
CRABATOR.HEX 2016-07-10 23:31:32 67956
CRABATOR.INF 2016-07-10 23:31:32 2193
CRAZYCAR.HEX 2016-07-10 23:31:32 41556
CRAZYCAR.INF 2016-07-10 23:31:32 433
C-STRIKE.HEX 2016-07-10 23:31:32 83440
C-STRIKE.INF 2016-07-10 23:31:32 2545
DIGGER.HEX 2016-07-10 23:31:32 83888
DIGGER.INF 2016-07-10 23:31:32 2545
DIH.HEX 2016-07-10 23:31:32 81892
DIH.INF 2016-07-10 23:31:32 1137
DUEL-2P.HEX 2016-07-10 23:31:32 47748
FLAPPY.HEX 2016-07-10 23:31:32 52840
FLAPPY.INF 2016-07-10 23:31:32 785
FOOTUINO.HEX 2016-07-10 23:31:32 51640
FOOTUINO.INF 2016-07-10 23:31:32 433
FXSYNTH.HEX 2016-07-10 23:31:32 36372
GB2048.HEX 2016-07-10 23:31:32 47996
GB2048.INF 2016-07-10 23:31:32 433
INVADERS.HEX 2016-07-10 23:31:32 52376
INVADERS.INF 2016-07-10 23:31:32 785
LANDER.HEX 2016-07-10 23:31:32 54948
LANDER.INF 2016-07-10 23:31:32 433
LIGHTSAD.HEX 2016-07-10 23:31:32 47856
LIGHTSAD.INF 2016-07-10 23:31:32 433
LOADER.HEX 2016-07-10 23:31:32 72620
MANDEL.HEX 2016-07-10 23:31:32 44516
MANDEL.INF 2016-07-10 23:31:32 433
MARUINO.HEX 2016-07-10 23:31:32 75776
MARUINO.INF 2016-07-10 23:31:32 433
MICROHEX.HEX 2016-07-10 23:31:32 64380
MICROHEX.INF 2016-07-10 23:31:32 1489
MINES.HEX 2016-07-10 23:31:32 45752
MINES.INF 2016-07-10 23:31:32 785
MUSIC.HEX 2016-07-10 23:31:32 46120
PAQMAN.HEX 2016-07-10 23:31:32 62772
PAQMAN.INF 2016-07-10 23:31:32 433
PONG.HEX 2016-07-10 23:31:32 40600
PONG.INF 2016-07-10 23:31:32 433
PONG-2P.HEX 2016-07-10 23:31:32 47604
README.MD 2016-07-10 23:31:32 188
S-COPTER.HEX 2016-07-10 23:31:32 71108
S-COPTER.INF 2016-07-10 23:31:32 433
SENET.HEX 2016-07-10 23:31:32 74692
SETTINGS.HEX 2016-07-10 23:31:32 54032
SETTINGS.INF 2016-07-10 23:31:32 433
SFIGHTER.HEX 2016-07-10 23:31:32 82264
SFIGHTER.INF 2016-07-10 23:31:32 433
SIMON.HEX 2016-07-10 23:31:32 39232
SIMON.INF 2016-07-10 23:31:32 433
SNAKEABC.HEX 2016-07-10 23:31:32 49088
SOKOBAN.HEX 2016-07-10 23:31:32 75128
SPINSPIN.HEX 2016-07-10 23:31:32 69416
STACKCH.HEX 2016-07-10 23:31:32 58140
SUPERCRA.HEX 2016-07-10 23:31:32 79976
SUPERCRA.INF 2016-07-10 23:31:32 2545
TAXI-FOU.HEX 2016-07-10 23:31:32 81420
TAXI-FOU.INF 2016-07-10 23:31:32 433
TRON.HEX 2016-07-10 23:31:32 49992
TRON.INF 2016-07-10 23:31:32 433
UFO-2P.HEX 2016-07-10 23:31:32 61792
UFO-RACE.HEX 2016-07-10 23:31:32 60800
UFO-RACE.INF 2016-07-10 23:31:32 785
WHG.HEX 2016-07-10 23:31:32 62936
WHG.INF 2016-07-10 23:31:32 433
WORMZ.HEX 2016-07-10 23:31:32 69412
WORMZ.INF 2016-07-10 23:31:32 2897
ZOMBIESC.HEX 2016-07-10 23:31:32 61184
ZOMBIESC.INF 2016-07-10 23:31:32 2897
GITATT~1 2016-07-10 23:31:32 378
GITIGN~1 2016-07-10 23:31:32 581
Am I missing something obvious here?
[edit]
Using SanDisk 2GB microSD.
Also, that MC Hammer streaming example works fine also.
Sorunome Sat Oct 29, 2016 7:08 pm
What kind of SD card do you have? Ones that are larger than 2GB need to be formated in a special way, as far as I know
spinal Sat Oct 29, 2016 7:50 pm
SanDisk 2GB microSD, thats the first thing I made sure of.
rodot Mon Oct 31, 2016 1:12 pm
Did you try flashing the LOADER.HEX directly ? It would solve any problem related to compilation (wrong version, wrong library, wrong settings...).
Do you have any other SD card ? Sometimes there are compatibility issues as the Gamebuino uses a lighter SD library than the Arduino one.
Or you could burn the bootloader directly, I think it would be the simplest solution as you can already read the SD card. The bootloader won't prevent you from booting even if there is no SD card. If you use the bootloader be sure to attach the buttons as specified on the schematic as it checks the buttons C state during boot.
Do you have any other SD card ? Sometimes there are compatibility issues as the Gamebuino uses a lighter SD library than the Arduino one.
Or you could burn the bootloader directly, I think it would be the simplest solution as you can already read the SD card. The bootloader won't prevent you from booting even if there is no SD card. If you use the bootloader be sure to attach the buttons as specified on the schematic as it checks the buttons C state during boot.
spinal Mon Oct 31, 2016 4:05 pm
How would I flash the .hex directly? I don't have a separate programmer, I 'm using the usb on the nano.
[edit] Just discovered XLoader.... Didn't help, same issue.
[edit] Just discovered XLoader.... Didn't help, same issue.
rodot Mon Oct 31, 2016 8:22 pm
You can use another Arduino as a programmer if you have one, search for "Arduino as ISP".
You will eventually need a programmer to burn the bootloader, if you don't have an Arduino you can order an USBasp for 3€ on eBay.
You will eventually need a programmer to burn the bootloader, if you don't have an Arduino you can order an USBasp for 3€ on eBay.