|
Post by powersoft on Jul 30, 2018 11:01:31 GMT -8
With a brand new GD3 I get the message ---- GAMEDUINO 2/3 SELFTEST ---- Flash fault This is my second GD3 with this message!!! What is this? 
|
|
|
Post by jamesbowman on Jul 30, 2018 11:28:19 GMT -8
If the screen is flickering it suggests a power issue. And if power is marginal it could trigger this fault.
Have you tried different power arrangements? Swapping USB cable and/or port can fix things.
|
|
|
Post by powersoft on Jul 30, 2018 12:51:33 GMT -8
No, the screen is not flickering. As you can see in my post of the last day's the GD3 is working, but not the Self test. I see also strange behaviour with the buttons. This morning I have run my program to catch my buttons with normal results. After playing with the selftest this is not working any more.
|
|
|
Post by powersoft on Jul 30, 2018 12:56:04 GMT -8
When I make a small change in the self test static void load_flash(uint8_t *config) { byte b[128]; i2c_begin(); ram_write(config); ram_get(b); int diff = memcmp(config, b, 128); if (diff != 0) { Serial.println("Flash fault"); GD.Clear(); GD.cmd_text(GD.w / 2, GD.h / 2, 30, OPT_CENTERX, "Flash fault"); GD.swap(); //for (;  ; <=========== I get the error RAM:FAIL
|
|
|
Post by powersoft on Jul 30, 2018 13:04:25 GMT -8
When I run the ram test as a stand alone test I get also a "0"
#include <EEPROM.h> #include <SPI.h> #include <GD2.h>
void setup() { GD.begin(0); Serial.begin(115200); Serial.println(test_RAM()); }
void loop() { // put your main code here, to run repeatedly:
}
static byte test_RAM(void) { uint32_t a; for (a = 0; a < 0x40000U; a += 947) GD.wr(a, a); for (a = 0; a < 0x40000U; a += 947) if (GD.rd(a) != (a & 0xff)) return 0; return 1; }
|
|