c0pperdragon / C64-Video-Enhancement

Component video modification for the C64 8-bit computer
MIT License
256 stars 36 forks source link

Rev. 6 died after flashing v2.11 #99

Closed shindouj closed 10 months ago

shindouj commented 10 months ago

Hi there,

I have finished assembling my Rev. 6 C64 Video Enhancement yesterday and got to the point of it working with the test firmware - got perfect gradients and a stable signal - so I decided it is okay to go ahead and flash the final firmware onto the FPGA.

Right away after programming the chip the JTAG stopped working (Quartus complains about JTAG chain - like the chip was not there). There was no component signal either. I have assembled and plugged the daughterboard in since then and it did not change (no signal, no JTAG). However, the analog part is working - I am still getting composite output.

Do you have an idea what might be the issue here? I think nobody here had a similar issue, at least it's not something I have found while browsing through issues...

Thanks a lot for your support.

20231124_135502 20231124_135549 20231124_135452 20231124_135443

c0pperdragon commented 10 months ago

Flashing the firmware has serious challenges. Maybe something in these threads may help you: https://github.com/c0pperdragon/C64-Video-Enhancement/issues/80 https://github.com/c0pperdragon/C64-Video-Enhancement/issues/97

shindouj commented 10 months ago

Thanks, but I think we misunderstood each other.

I have successfully flashed the firmware already - quite a few times, actually. Right after building the board I have flashed the pattern generator at least three times. My USB blaster is detected just fine, and I used Prime 18.1 as suggested. That step worked flawlessly, and after flashing the firmware, a pattern has been generated.

However, after successfully (according to Prime) flashing the video enhancement 2.11 firmware the board became essentially dead, with the JTAG header apparently not working anymore - something that did not happen with the pattern generator firmware. This has happened immediately after flashing - when flashing was completed at 100%, I opened the programmer again, and it was not able to recognize the chip anymore.

I don't think this is an issue with my blaster or my programming setup since that has succeeded before (and by before, I mean 12 hours ago - when flashing the pattern generator).

shindouj commented 10 months ago

Update: I have found a severed trace from RFCON2_1 to REG1_3 - bodged it, mod outputs video now. I think I have severed it when I was moving the board a little bit higher. I'm relieved that I did not brick it by flashing, at the very least.

...But JTAG is still not functional. It'd be good to make it work for any future firmware upgrades - do you have any ideas what might've caused that outage?

c0pperdragon commented 10 months ago

The real firmware (in contrast to the pattern generator) shares the JTAG pins for some functionality. So it may very well be that this is now conficting with the programmer to prevent further access to it. Using the software and hardware mentioned in the other threads on this topic seems to overcome this problem somehow.

shindouj commented 10 months ago

Oh, understood. That may be very well the case. Well - I'm off to doing a proper fix for that trace, and thanks for your hard work on the mod! I'm impressed I managed to make it work at all, it was my second time doing any SMD soldering at all 😅

c0pperdragon commented 10 months ago

Wow! Going from 0 to 144 pin, 0.5mm is a pretty steep learning courve.