pls
Junior Member
Posts: 24
|
Post by pls on Jul 22, 2018 11:56:58 GMT -8
Hi, I have a problem with my 4.3" Gamedruino3/Teensy3.2. I loaded a program into the Gameduino3/Teensy3.2 and now the Gameduino board will not display anything on the screen. I loaded the 'hello world' program to see if the it would work and I still get nothing on the screen. The screen does not light up and the back-light is off. I tested the Teensy with a 7" Gameduino board and it works with the 'hello world' program and all the other programs that came with the Gameduino and ones that I have developed. I did not try to load the program that caused the problem.
Given that I can't use my Gameduino anymore I would suggest caution in loading the attached program on a Gameduino.
Attached is the program and the assets I used in the bad program.
Questions: 1. Is there a way to reset the Gameduino registers to a known setting? IE reset all the registers to the default settings? 2. Does the Gameduino have a power control bit for the display/back-light?
3. I used Vertex2f twice using the same bitmap handle but in different screen locations. Would this cause the problem?
thanks pls
Attachments:tappy2.h (42.93 KB)
Peter_tappy4.ino (2.21 KB)
|
|
pls
Junior Member
Posts: 24
|
Post by pls on Jul 23, 2018 7:59:12 GMT -8
Hi, This is an update on the failure of a 4.3" Gameduino board. After waiting overnight to discharge the power capacitors, I got 'hello world' to work. But loading a file that uses the Vertex2ii or Vertex2f does not work.
I also started to get co-processor errors.
Looks like I will need to buy a new unit.
I also found that reset pin (PD-pin12) is tied directly 3.3v and cannot be used as a hardware reset.
I also found errors in my code that probably sent large numbers to the registers used in Vertex2ii and Vertex2f commands. -pls
|
|
|
Post by jamesbowman on Jul 23, 2018 12:34:51 GMT -8
Hi Peter,
If "hello world" works, it would be interesting to see if "selftest" also works. If it fails, please can you post a picture of the result?
If it's died, I'm sure I can send you a replacement unit. Please email me at jamesb@excamera.com to arrange.
There's no way that I can think of that a program can permanently damage the GD3. (Almost none: I guess it could overwrite the configuration flash if it did a series of GPIO operations.)
|
|
pls
Junior Member
Posts: 24
|
Post by pls on Jul 24, 2018 9:55:16 GMT -8
Hi, I have loaded and run the selftest program. The output is either a white blank screen or the screen and the serial port send 'Flash fault'.
I can send a picture if you want.
I assume this means that the flash has been corrupted. Can I re-flash the flash memory or should I send it to you?
pls
|
|
|
Post by jamesbowman on Jul 25, 2018 7:13:35 GMT -8
Hmm, that's unusual. It means that the onboard i2c flash has died. Software cannot have caused this -- it's a hardware fault in the chip, or possibly its connections.
Please email me at jamesb@excamera.com and I will send a new GD3 to you.
|
|
pls
Junior Member
Posts: 24
|
Post by pls on Jul 27, 2018 14:25:18 GMT -8
Hi, FYI
I got a new 4.3" GD3. I tried the following with no errors.
'hello world', 'jazz'
I then put in my flash disk from the old GD3 and found that new GD3 did not work.
I replaced the flash disk with a new one, after formating and copying files, and this worked on the new GD3. I then put in the new flash disk into the broken GD3 and it still did not work.
I found the error in my code and the program is now working.
I was putting in a number way beyond 2^16 into the vertex2f registers.
As an aside, I attached power on and then off several times using the old GD3 with the old flash disk. I would get various pictures on the screen that I had never seen before. One time the screen
produced the FTDI chip logo. But most of the time the message Flash fault came up.
-pls
|
|
pls
Junior Member
Posts: 24
|
Post by pls on Mar 13, 2019 13:39:46 GMT -8
All, After several months I have a new version of Peter_tappy5.ino plus the .h file for the graphics. I had to change the original sprites from Kenny.nl into a format that would work with the 4.3" Gamduino3. I modified the foreground and the background sprites so that they were 480 pixels long. Then I used two foreground sprites so that I could move them across the screen like the old moon buggy game. The tabby plane is stationary while the foreground is moving.
The only thing you need to pay attention to is the height of the sprite at the first and the last of the sprite. So there isn't a jump between the beginning and end of the two sprites.
Plane will go up and down using the lower right and left of the screen. Plane will move forward and backward slightly using the upper right and left of the screen. Note that the prop movement uses 3 sprites. Thanks to Kenny.nl for the original sprites.
Enjoy
pls
|
|