Uzebox on a Breadboard!

Topics regarding the Uzebox hardware/AVCore/BaseBoard (i.e: PCB, resistors, connectors, part list, schematics, hardware issues, etc.) should go here.
User avatar
ry755
Posts: 226
Joined: Mon May 22, 2017 6:01 am

Re: Uzebox on a Breadboard!

Post by ry755 »

Hey hey hey I got it working!! :D It was the pull up resistor on MISO that did it. It's weird that the old bootloader worked without it.

https://i.imgur.com/J02vOqF.jpg
(Sorry about the crazy angle. Using a projector again.)

The schematic doesn't show a resistor there. I guess the PCB doesn't need it? One thing I noticed is that some games on the list just show an X. When I select them it says Flashing Failed. A reformat will probably fix that. Sorry that you had to keep making all those changes when a simple resistor would have fixed it.
User avatar
Jubatian
Posts: 1561
Joined: Thu Oct 01, 2015 9:44 pm
Location: Hungary
Contact:

Re: Uzebox on a Breadboard!

Post by Jubatian »

ry755 wrote: Sun Oct 15, 2017 9:16 pmHey hey hey I got it working!! :D It was the pull up resistor on MISO that did it. It's weird that the old bootloader worked without it.
Weird! I will look around there since I intent to pull MISO high and I have the PUD bit set zero, so I really think it should work. But apparently code in the old bootloader and stuff elsewhere somehow do a stronger pull on that pin, possibly indicating that somehow in my case that pin isn't pulled up by the ATMega for some reason.

Those 'X' entries most possibly belong to entries in the root directory which are falsely detected as .uze files, only a dump could tell. It shouldn't happen, I will do further testing, but checking dumps I already have cards with quite screwed up root directories (long filenames, deleted entries) which so far worked without such problems. Those false files in your case likely have the same cluster, maybe cluster zero which the SD library translates to some sector and tries to read a .uze from there. Loading will fail proper if the 32 bit size filed doesn't contain a value which is nonzero and fits in the 60K ROM available for games.

EDIT: Still could you give me a shot on that test program? I would be interested whether that can pass CMD0 (it would be weird if it can't as it has the normal kernel).
User avatar
ry755
Posts: 226
Joined: Mon May 22, 2017 6:01 am

Re: Uzebox on a Breadboard!

Post by ry755 »

Here are pictures of the test program. I have to use my 256mb one now because I fried the 2gb card.

https://i.imgur.com/BekMsSs.jpg
https://i.imgur.com/O7YFHYp.jpg

Here is a shot with the fried 2gb card. (It doesn't work on my computer either)
https://i.imgur.com/o1YekZW.jpg

EDIT: I think those Xs are the hidden files that Mac OS puts there. Because they have the same file extension as the main file.
User avatar
Jubatian
Posts: 1561
Joined: Thu Oct 01, 2015 9:44 pm
Location: Hungary
Contact:

Re: Uzebox on a Breadboard!

Post by Jubatian »

ry755 wrote: Sun Oct 15, 2017 9:57 pm Here are pictures of the test program. I have to use my 256mb one now because I fried the 2gb card.

https://i.imgur.com/BekMsSs.jpg
https://i.imgur.com/O7YFHYp.jpg

Here is a shot with the fried 2gb card. (It doesn't work on my computer either)
https://i.imgur.com/o1YekZW.jpg

EDIT: I think those Xs are the hidden files that Mac OS puts there. Because they have the same file extension as the main file.
I guess you tested after adding the pull-up. Could you remove it for a test? (I especially wish to see whether this thing can proceed with the original conditions of your hardware) Currently the tests show that the cards got detected fine.

The card you think fried may not be fried, it might just be wiped. At least the shot tells that it is fine, even a recognizable FAT is there, but then apparently it can't progress to find files, but it likely could read the master boot record (maybe somehow a loop of clusters was made in the FAT?). I think try to reformat it (a complete reformat), that might work. Maybe not (I also have a fried card which apparently still detects fine, but it is no longer readable, shows error code 6. Yours show 0, so you might have more success with a reformat if you attempted).

Hidden files, possibly! If they are only distinguishable by Mac OS by (possibly long) file name or some nonstandard attribute, there is no way to distinguish them in the loader. I will look for standard attributes though. How the filenames of these files look like by the way?
User avatar
Artcfox
Posts: 1382
Joined: Thu Jun 04, 2015 5:35 pm
Contact:

Re: Uzebox on a Breadboard!

Post by Artcfox »

Why not image the SD card, compress it and upload it somewhere? It should compress very well. Then we can analyze what might be different about its partitions/FAT.
User avatar
ry755
Posts: 226
Joined: Mon May 22, 2017 6:01 am

Re: Uzebox on a Breadboard!

Post by ry755 »

Artcfox wrote: Mon Oct 16, 2017 4:04 am Why not image the SD card, compress it and upload it somewhere? It should compress very well. Then we can analyze what might be different about its partitions/FAT.
Sorry, I already formatted the card. I haven't tried it with the Uzebox yet, so I don't know if the format fixed it. I don't know if it was really fried, or the filesystem just got messed up. When I added the pullup resistor, I accidentally connected the pin to 5v instead of 3v3.
User avatar
Artcfox
Posts: 1382
Joined: Thu Jun 04, 2015 5:35 pm
Contact:

Re: Uzebox on a Breadboard!

Post by Artcfox »

How did you format the card? Using your operating system's format tool, or the tool at sdcard.org? Unfortunately the only way to format it to ensure that the format aligns with the actual hardware running on the card is to use the tool from sdcard.org (or so they say). They don't have a Linux version, so that could make it tricky if that is all you have. It is free to download, and you can get it here: https://www.sdcard.org/downloads/formatter_4/
User avatar
ry755
Posts: 226
Joined: Mon May 22, 2017 6:01 am

Re: Uzebox on a Breadboard!

Post by ry755 »

Artcfox wrote: Mon Oct 16, 2017 12:18 pm How did you format the card? Using your operating system's format tool, or the tool at sdcard.org? Unfortunately the only way to format it to ensure that the format aligns with the actual hardware running on the card is to use the tool from sdcard.org (or so they say). (...)
Yes, that's the tool I used. I did the "Overwrite" format, which probably means zeroing the card. I have Windows, Linux, and Mac OS installed, so I can switch between them if I need to.
User avatar
Artcfox
Posts: 1382
Joined: Thu Jun 04, 2015 5:35 pm
Contact:

Re: Uzebox on a Breadboard!

Post by Artcfox »

ry755 wrote: Mon Oct 16, 2017 3:10 pm Yes, that's the tool I used. I did the "Overwrite" format, which probably means zeroing the card. I have Windows, Linux, and Mac OS installed, so I can switch between them if I need to.
Perfect. Hopefully that fixes it.
Post Reply