lmarty / Hackerboxes20

Projects for the Hackerboxes #20 badge hardware
GNU General Public License v3.0
6 stars 0 forks source link

compiles and uploads, won't run. #13

Open Racer1Tn opened 7 years ago

Racer1Tn commented 7 years ago

Program compiles and runs, SD card library copied too. No errors. Will not boot, just a white screen. All other sketches run successfully.

lmarty commented 7 years ago

Hold down the flash button at boot time and see if that make a difference for you. If so, you can solder a bridge across the j1 pads on the back of the tft and you wont have to do that anymore.

Racer1Tn commented 7 years ago

Holding button does not work for mine. :(

lmarty commented 7 years ago

Is your SD formatted using sd formatter? https://www.sdcard.org/downloads/formatter_4/ Anything showing on the serial monitor?

lmarty commented 7 years ago

So here's a weird one. How big is your SD card? Testing on my 4g SD, things work fine. Using a 32G, I see the same behavior you get here. Blank white screen. But I see the wifi scans taking place on the serial monitor after a bit. At this point, I've got no idea why the size of the card would cause the screen to puke...

cipioh commented 7 years ago

So I have the same issue. Just a blank white display. I loaded the SD card libraries since they were there, but not using an SD card. Is this required?

lmarty commented 7 years ago

My badge will not boot without a SD with this code on it. I have also not had any success with any card over 4GB. Tested Numerous brands and cards, that seems to be the only common theme amongst them. Hope that helps!

cipioh commented 7 years ago

Yeah... I looked at the ino when I had a little time, and realized the SD card was critical. I was hoping to see more of these with custom loads at DefCon...I did my own thing just playing around, but it looked like everyone else was just running the Badge B load.  It would have been really cool to have a more mature game sketch. Oh well...

On Jul 31, 2017, 7:57 AM, at 7:57 AM, Mr_infosec notifications@github.com wrote:

My badge will not boot without a SD with this code on it. I have also not had any success with any card over 4GB. Tested Numerous brands and cards, that seems to be the only common theme amongst them. Hope that helps!

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/lmarty/Hackerboxes20/issues/13#issuecomment-319092630

lmarty commented 7 years ago

Yeah, me too man. I didn't have enough time beforehand to do anything exciting. For such a capable little platform, I expected a lot more excitement and honestly, PRs. Since its so easy to code for.

newgnu commented 7 years ago

I too am guilty of running the Badge B code, but only 'cause I couldn't get any of my cards to work with this one.

Does yours work with any of the smaller cards? I've tried a handfull of different 1G/2G cards, and even an older 128M type 1 card. The only success I've had was with a 4G card (that I didn't find until after DC), and it was still really temperamental even with the reset trick/jumper mod. I think it worked 3~4 times out of the dozen or so I tried it.

newgnu commented 7 years ago

Turns out my timing on the flash button was my problem, and the 'j1' pads on the back of the screen didn't matter if they were bridged or not.

It doesn't look like it can access the card at all unless that button is down either (at least on my badge). I threw together a POC that just loops around the SD.begin() and a message on the tft screen. After it initializes, it calls the same directory list code, but if I let go after the 'OK', I get a blank screen. if I continue to hold the button down, I get the list.

you can poke at https://github.com/newgnu/hb20_sd_test if you want to try yourself. I've even had success with my 32G card.