yunfei
Junior Member

Posts: 15
|
Post by yunfei on Mar 19, 2014 4:04:53 GMT -8
I recently got my Gameduino2 and everything is fine except that every function related to SD card is not working. Then I ran the 'selfcheck' demo and it said 'SD FAILED' on the screen.
Is there any limitation of SD card that Gameduino2 can support? My SD Card is a 4GB microSD(HC) card and I have double checked the 'SD_sel' pin is connected correctly. I tried both FAT32 and exFAT file systems and it is still not working. Should I buy another 2GB SD card and try again?
|
|
yunfei
Junior Member

Posts: 15
|
Post by yunfei on Mar 19, 2014 4:23:30 GMT -8
Strange, now it passed the self-test. I did nothing but just plug in and out several times. Now I am trying the 'viewer' demo. I tried to open the image 'tree'. Sometimes it is working but sometimes it just got stuck at half. I suspect it is a hardware issue. Either the SD card is not very well supported or the SD card slot is not very well contacted with the SD card.
|
|
yunfei
Junior Member

Posts: 15
|
Post by yunfei on Mar 19, 2014 4:44:56 GMT -8
Sorry guys. I think I found the reason for this issue. I think it is because the jump wires which I used to connect 3 SPI signals are too long. It is strange because the GPU also uses SPI but it works well, so I believe the SD card library is not robust enough and any disturbance to the wires will cause the program get stuck. Thanks all anyway. I hope this can help people who also have the same problem.
|
|
|
Post by legacy on Mar 21, 2014 15:33:35 GMT -8
hi there i have the same issue here, i am using - Arduino IDE v1.05 - Arduino 2009 board - GameDuino2 directly connected to Arduino 2009 board - SanDisk SD of 2Gbyte, FAT32, 1 primary partition, in where i copied the "test" files
about the "selftest" sketch, i have the following failures - SD cart test - Audio test
any help ? suggestion ?
i have modified the "selftest" sketch
static byte test_SDcard(void) { for (byte i = 0; i < 2; i++) { Serial.print("GD_load:"); if (!GD.load("selftest.gd2")) { Serial.println("failed"); return 0; } else { Serial.println("ok"); } uint32_t pcrc = GD.cmd_memcrc(0, ASSETS_END); GD.finish(); uint32_t crc = GD.rd32(pcrc); if (crc != KITTEN_CRC) { return 0; } } return 1; }
And .. the program is looked at this line
if (!GD.load("selftest.gd2"))
---- GAMEDUINO 2 SELFTEST ----
ID REGISTER:
7C
Starting sel---- GAMEDUINO 2 SELFTEST ----
ID REGISTER:
7C
Starting self-test
ident
ident: pass
tune
tune: pass
clock
6001373.0000000000
6000000.0000000000
clock: pass
RAM
RAM: pass
PWM
PWM: pass
storage
storage: pass
SDcard
GD_load:
|
|
|
Post by neuroflux on Jun 19, 2014 5:21:37 GMT -8
legacy Avatar Mar 21, 2014 15:33:35 GMT -8 legacy said: hi there i have the same issue here, i am using - Arduino IDE v1.05 - Arduino 2009 board - GameDuino2 directly connected to Arduino 2009 board - SanDisk SD of 2Gbyte, FAT32, 1 primary partition, in where i copied the "test" files I also have this issue now - my board worked fine for about 5 days. Now most of my sketches hang or don't initialize correctly. I've not even used the pins - just the GD2... A little help would be nice
|
|
|
Post by jamesbowman on Jun 19, 2014 15:58:32 GMT -8
Where does "selftest" hang? If it hangs at "SDcard" then that suggests that the SDcard is not responding to the read request. I would suggest - removing the SDcard and making sure it hangs in the same place
- checking that the files are still on the SDcard using a PC
- reformatting the SDcard and trying again
- trying another SDcard, perhaps another brand
|
|
|
Post by neuroflux on Jun 21, 2014 4:37:00 GMT -8
Where does "selftest" hang? If it hangs at "SDcard" then that suggests that the SDcard is not responding to the read request. I would suggest - removing the SDcard and making sure it hangs in the same place
- checking that the files are still on the SDcard using a PC
- reformatting the SDcard and trying again
- trying another SDcard, perhaps another brand
Turns out I had it formatted to FAT32 - which seemed to work for cmd_loadimage() but not for GD2 assets? Strange. Formatting to FAT seemed to work
|
|
|
Post by jacob harman on Sept 8, 2014 16:25:04 GMT -8
i bought a gameduino 2 and i cant get any sd card too work for it is there a defective thing or a specific way to format it i did it to FAT but that didnt work at all and i need the sd card to work for my device sufice to say im slighly disipointed is there a fix for this or not?
|
|
|
Post by jamesbowman on Sept 8, 2014 21:41:12 GMT -8
Yes, the SDcard works for thousands... so some things to check Did you expand this ZIP and copy the files on it? excamera.com/files/Gameduino2sd.zipDid you try both FAT16 and FAT32? At what point does the "selftest" fail?
|
|
|
Post by jacob harman on Sept 9, 2014 9:08:26 GMT -8
no i didnt i lokked for help guieds and totorials and this is the first ive heard of a zip file
i formated to fat fat32 ans ntsf none worked but if i need a spesific filr system structure that would make sense
i ran the new picture browswer and it loads the names of my jpegs but wont load them gets to 50 and stops trying
it fails th sd card test but stil can see the names im confused
|
|
|
Post by jamesbowman on Sept 10, 2014 15:21:06 GMT -8
|
|
yunfei
Junior Member

Posts: 15
|
Post by yunfei on Sept 12, 2014 14:55:33 GMT -8
I also found there are some SD card compatibility problems. So if your SD card doesn't work, just try to change it to a different brand.
|
|
|
Post by Mike on Nov 7, 2014 15:03:37 GMT -8
I have ordered a GameDuino2. While waiting for it to arrive I have decided to see if I could get the GameDuino2 library working with the hardware I have. 1. Arduino Uno r3 (Official) 2. MicroSD card breakout board+ (from Adafruit. www.adafruit.com/products/254)3. 5 inch VM800B development module from FTDI. I have been able to get the GameDuino2 library to work except for the SD card and Sound. Note: I had to make a tweak to the library to get the RGB colors working correctly with FTDI's Display. My question is. Should the GameDuino2 library work on FTDI's 5 inch VM800B development module. SDCard: My SD card works using the Arduino SD library from Adafruit when I try to read the card.I have formatted FAT and FAT32 with the SD files loaded for the Gameduino2 demos. The SELFTEST hangs on SDcard. It gets past the storage: pass step My SD reader is wired as follows SDCARD Arduino/Uno ------ ----------- CD SC-------#9 DI-------#11 DO-------#12 CLK------#13 GND------GND 3V 5V-------5V Sound: Is there anything I need to do to get the SDCard and Sound to work? Since the VM800B board has built in speaker and amp I thought it should work.
|
|
|
Post by G.A on Dec 23, 2014 0:45:02 GMT -8
Hi All
I have just taken possession of a GD2, and found the same issue with the SD Card, luckily I have several of them, none of the 2GB cards will work, and could only get a Kingston-4GB SD card to work properly with everything, so you guys will probably have to try several different brands to get tit to work. The cards that don't work on the GD2 will still show up on the PC, with the files on there, so that check is a waste of time.
Overall the GD2 is good, however I think the sound totally lets it down with its "hissing", I have an Arduino Music Instrument Shield from sparkfun attached between the UNO and the GD2, this incorporates is a true MIDI chip, with tons of instruments which sound as they should, with excellent sound quality, and no "hiss"
|
|
|
Post by jamesbowman on Dec 23, 2014 10:57:31 GMT -8
Ya, the sound is really only good enough for a small speaker. It's nowhere close to the quality of dedicated sound shields. This is partly because FT800's sound isn't very high quality, and partly because the GD2 is only a 2-layer board with a single power supply.
One software fix is to 'mute' the sound when not using it:
GD.play(MUTE); then unmute when ready to make sound:
GD.play(UNMUTE); this at least suppresses the hissing when not playing sound.
|
|