jabadiagm / MSXgoauld_tn20k

MSX Goa'uld board with Tang Nano 20k
GNU General Public License v3.0
44 stars 7 forks source link

Cannot Flash bitstream #6

Closed Chandler-Kluser closed 2 months ago

Chandler-Kluser commented 4 months ago

I can`t flash bitstream in impl/pnr using Gowin EDA Programmer and also openFPGALoader.

Using Official EDA, the tool says the Gowin device was not found.

Using openFPGALoader, this is the output I get:

image

Is there any programming step I missed?

BTW, thanks for the great job!!

Chandler-Kluser commented 4 months ago

I can`t flash bitstream in impl/pnr using Gowin EDA Programmer and also openFPGALoader.

Using Official EDA, the tool says the Gowin device was not found.

Using openFPGALoader, this is the output I get:

image

Is there any programming step I missed?

BTW, thanks for the great job!!

my tang nano 20k is v3921 and it can be successfully flashed with other .fs files

Chandler-Kluser commented 4 months ago

Could get it to flash with commit fe25ad2720eea09d6686d502b8feddcb6055501d, before v0.61

jabadiagm commented 4 months ago

Hi!

This is really strange, all .fs are created with same ide version, win64 1.9.9 beta 4, and tried on my tangs. Now that you flashed a previous version, if you try to flash the last one does it fail again?

Thank you for your feedback

Enviado desde mi Alcatel OT511

El 8 mar 2024, a las 3:27, Chandler Klüser @.***> escribió:

 Could get it to flash with commit fe25ad2, before v0.61

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

Chandler-Kluser commented 4 months ago

I have not tried, but I can check it!

For now I am more concerned about not getting video output from my board 😅

jabadiagm commented 4 months ago

That’s bad, hdmi output should always be on. If you get hdmi signal with black screen it’s either a problem with multiplexer (hct373’s) or unstable firmware.

Enviado desde mi Alcatel OT511

El 8 mar 2024, a las 23:50, Chandler Klüser @.***> escribió:

 I have not tried, but I can check it!

For now I am more concerned about not getting video output from my board 😅

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Chandler-Kluser commented 4 months ago

I believe it is something with the power, when I connect the board into the socket the leds gets lit

Chandler-Kluser commented 4 months ago

Now that you flashed a previous version, if you try to flash the last one does it fail again?

It failed, and worse... even that commit is not flashing anymore and I believe I have bricked the board bootloader somehow, because the last time I have tried I have got a lot of sse errors

I will try to get it back to work, although I have another board with me here.

Besides, is there any debug info to help troubleshooting?

jabadiagm commented 4 months ago

Usb plug in tang is in the cheap side (tn9k specially) I have a couple boards difficult to flash, maybe this is similar and your firmware got corrupted during flashing due to bad contact. To prevent firmware from loading, press s1 button, connect usb cable and try to flash a simple firmware like the leds demo (keep s1 pressed during whole process). Once reflashed, jtag pins will be back and board will be responsive, hopefully.

Enviado desde mi Alcatel OT511

El 12 mar 2024, a las 3:03, Chandler Klüser @.***> escribió:

 Now that you flashed a previous version, if you try to flash the last one does it fail again?

It failed, and worse... even that commit is not flashing anymore and I believe I have bricked the board bootloader somehow, because the last time I have tried I have got a lot of sse errors

I will try to get it back to work, although I have another board with me here.

Besides, is there any debug info to help troubleshooting?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Chandler-Kluser commented 3 months ago

To prevent firmware from loading, press s1 button, connect usb cable and try to flash a simple firmware like the leds demo (keep s1 pressed during whole process).

I have just saved my tang nano 20k :smile:

I have got a black screen by using the 01_Z80_V9958_goauld.fs, is it expected? :sweat_smile:

jabadiagm commented 3 months ago

Unfortunately, it is both common and bad sign. If hardware is ok and you have hdmi signal but black screen, the firmware is running but unstable. Still don’t know the reason, some tangs work and some fail. I’m trying a different fpga vendor to tell wether it’s a software or a hardware problem. In the meantime, you may try different firmwares and, even better, different tangs.

Enviado desde mi Alcatel OT511

El 13 mar 2024, a las 23:28, Chandler Klüser @.***> escribió:

 To prevent firmware from loading, press s1 button, connect usb cable and try to flash a simple firmware like the leds demo (keep s1 pressed during whole process).

I have just saved my tang nano 20k 😄

I have got a black screen by using the 01_Z80_V9958_goauld.fs, is it expected? 😅

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Chandler-Kluser commented 3 months ago

I have tried with another tang nano 20k and I noticed a diferent pattern of leds, I will order another board and brand new ICs

jabadiagm commented 3 months ago

Two tangs with black screen is a bit suspicious. Please double check pcb weldings, sockets and be sure to use 74HCT373, not HC.

Enviado desde mi Alcatel OT511

El 14 mar 2024, a las 21:45, Chandler Klüser @.***> escribió:

 I have tried with another tang nano 20k and I noticed a diferent pattern of leds, I will order another board and brand new ICs

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Chandler-Kluser commented 3 months ago

be sure to use 74HCT373, not HC

I just have hct with me here, shouldn't they be compatible?

EDIT: can a 74HC245 replace 74LVC245?

jabadiagm commented 3 months ago

HC doesnt work with tang because voltage level for logic 1 is 3.3-0.4= 2.9V aprox. and HC requires 3.15 minimum. HCT works nice with 2.9 V.

0.4 V is voltage drop in goauld diode.

Enviado desde mi Alcatel OT511

El 18 mar 2024, a las 13:42, Chandler Klüser @.***> escribió:

 be sure to use 74HCT373, not HC

I just have hct with me here, shouldn't they be compatible?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Chandler-Kluser commented 3 months ago

HC doesnt work with tang because voltage level for logic 1 is 3.3-0.4= 2.9V aprox. and HC requires 3.15 minimum. HCT works nice with 2.9 V.

you mean this for 74XX245 or for 74XX373 :sweat_smile:

jabadiagm commented 3 months ago

Problem is 74HCT373. This is the latch for the address bus. Tang outputs are 3.3V and this signal is the input of 74HCT373. HC and HCT are compatible when using 5V, but here we are using 3.3V

To summarize, use this: U3, U4, U5: 74LVC245 U1-U2: 74HCT373

Enviado desde mi Alcatel OT511

El 18 mar 2024, a las 14:10, Chandler Klüser @.***> escribió:

 HC doesnt work with tang because voltage level for logic 1 is 3.3-0.4= 2.9V aprox. and HC requires 3.15 minimum. HCT works nice with 2.9 V.

you mean this for 74XX245 or for 74XX373 😅

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Chandler-Kluser commented 3 months ago

I did some modifications in the design:

IMG_20240326_231357325

IMG_20240326_231259304

If you want I can make a PR with the kicad projects with two board revisions I have made, there is nothing special I only changed the IC package.

But there is, actaully, a problem...

IMG_20240326_232459138

I was able to make it work with my MSX Sharp Hotbit 1.1, but it only worked in MSX1 mode 01_Z80_V9958_goauld.fs and with TMS9918 connected...

I was able to play some games in my mapper cartridge, but I could not get to work any 9958 versions with my MSX here, are you able to tell me a tip of what kind of problem it can be?

Also, I could not get v0.61 to flash in neither of my Tang Nano 20k FPGAs, are you sure the bitstream in the last commit can be flashed into the board?

Thanks in advance for your patience and great work!!

Chandler-Kluser commented 3 months ago

Update: This time I was able to flash 0.61 version to my TN20k, I have built from source and flashed the default bitstream and then it worked (don`t know why that happened).

image

But even using the latest version v9958 is still not working (02, 03, 04 and 05 .fs)

jabadiagm commented 3 months ago

You new pcb is really cool! This is more like it should be, a pcb with the size of a Z80.

If one firmware works in your board, that's good news, it means your hardware is OK and the fails are caused by the different firmwares. Problem is, if the only working is 01_Z80_V9958_goauld.fs, then you are missing MSX2 bios, so most of the MSX2 software won't work. Aleste should work, at least the intro.

Regarding version 0.61, no big problems here. I have the usual problems working with tk20k: connection drops, instabilities from time to time. Same as other fpga's. Tang 9k is another story, it's really a pain in the ass. I have to use usb2 (not blue) ports and a usb hub to flash it. Tip: connect and disconnect tang using the tang (usb-c) connector, not usb-a connector.

https://www.msx.pics/images/2024/03/28/programando2.png

I have four tangs 20k, two goa'uld pcb's and three MSX for tests: Omega, Toshiba HX-20 and Sony Hitbit HB-75P. With every new version I try all combinations and they worked fine. But the fact is, nobody has reported success with firmwares 04, 05. So, this means that something in my system must be different and it makes things work. About what could it be, I haven't got a clue.

https://www.msx.pics/images/2024/03/28/puebas.jpeg

On Thu, Mar 28, 2024 at 4:59 AM Chandler Klüser @.***> wrote:

Update: This time I was able to flash 0.61 version to my TN20k, I have built from source and flashed the default bitstream and then it worked (don`t know why that happened).

image.png (view on web) https://github.com/jabadiagm/MSXgoauld_tn20k/assets/29960960/368cf7f9-ce77-4571-b497-d5c99c63b89d

But even using the latest version v9958 is still not working (02, 03, 04 and 05 .fs)

— Reply to this email directly, view it on GitHub https://github.com/jabadiagm/MSXgoauld_tn20k/issues/6#issuecomment-2024352859, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOYT426VOIJVDIBX5O7YXLY2OIRJAVCNFSM6AAAAABELCABXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGM2TEOBVHE . You are receiving this because you commented.Message ID: @.***>

jabadiagm commented 3 months ago

I forgot, you mentioned about having TMS9918 connected. That's the way it is, goa'uld board blocks bus requests (IORQ, MREQ) for external devices (TMS, msx1 bios) when there is an internal device bith bigger priority (V9958, msx2 bios...). That's easy to test: when goa'uld board is in place, you should see no analog video.

Chandler-Kluser commented 3 months ago

You new pcb is really cool! This is more like it should be, a pcb with the size of a Z80.

If one firmware works in your board, that's good news, it means your hardware is OK and the fails are caused by the different firmwares. Problem is, if the only working is 01_Z80_V9958_goauld.fs, then you are missing MSX2 bios, so most of the MSX2 software won't work. Aleste should work, at least the intro.

Regarding version 0.61, no big problems here. I have the usual problems working with tk20k: connection drops, instabilities from time to time. Same as other fpga's. Tang 9k is another story, it's really a pain in the ass. I have to use usb2 (not blue) ports and a usb hub to flash it. Tip: connect and disconnect tang using the tang (usb-c) connector, not usb-a connector.

https://www.msx.pics/images/2024/03/28/programando2.png

I have four tangs 20k, two goa'uld pcb's and three MSX for tests: Omega, Toshiba HX-20 and Sony Hitbit HB-75P. With every new version I try all combinations and they worked fine. But the fact is, nobody has reported success with firmwares 04, 05. So, this means that something in my system must be different and it makes things work. About what could it be, I haven't got a clue.

https://www.msx.pics/images/2024/03/28/puebas.jpeg

On Thu, Mar 28, 2024 at 4:59 AM Chandler Klüser @.***> wrote:

Update: This time I was able to flash 0.61 version to my TN20k, I have built from source and flashed the default bitstream and then it worked (don`t know why that happened).

image.png (view on web) https://github.com/jabadiagm/MSXgoauld_tn20k/assets/29960960/368cf7f9-ce77-4571-b497-d5c99c63b89d

But even using the latest version v9958 is still not working (02, 03, 04 and 05 .fs)

— Reply to this email directly, view it on GitHub https://github.com/jabadiagm/MSXgoauld_tn20k/issues/6#issuecomment-2024352859, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOYT426VOIJVDIBX5O7YXLY2OIRJAVCNFSM6AAAAABELCABXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGM2TEOBVHE . You are receiving this because you commented.Message ID: @.***>

Great, so do you want a PR with the new board?

Additionally, how can I make the MSX2+ bios work (the 02 and 03 versions)?

jabadiagm commented 3 months ago

I'm not familiar with github usage, will a pull request overwrite current pcb? I think it is better to keep both pcb's designs, so people can have choices.

On tang, I'm working on a reduced version with bios & v9958 only. Tangs work better with a low number of logic elements.

jabadiagm commented 3 months ago

There is a new version, trying to get a low number of logic elements in fpga. Sound and mapper is removed. Hopefully this will work in more devices. As usual, tested in Omega, Toshiba HX-20 and Sony Hitbit HB-75P.

Chandler-Kluser commented 3 months ago

I can test in my msx hotbit, too

Chandler-Kluser commented 3 months ago

I can test in my msx hotbit, too

@jabadiagm black screen with TMS9918 attached in VDP slot

EDIT: without TMS9118 also black screen in Sharp MSX Hotbit

jabadiagm commented 3 months ago

That's interesting...

Black screen with or without hdmi? Are all leds lit?

(TMS9118 needs to be always on, without it there is no 3.6 MHZ clock)

Chandler-Kluser commented 3 months ago

leds blinking, there is HDMI signal

Chandler-Kluser commented 3 months ago

is there a way to help the development like doing a discord server/telegram channel or something like that?

I believe I can help giving more details, I also made a PR with a new board revision

Chandler-Kluser commented 3 months ago

IMG_20240410_085536264

jabadiagm commented 3 months ago

That’s a good idea, I have created a telegram group:

https://t.me/+tsXxv2i2q3M4YWFk

Enviado desde mi Alcatel OT511

El 10 abr 2024, a las 13:55, Chandler Klüser @.***> escribió:

 is there a way to help the development like doing a discord server/telegram channel or something like that?

I believe I can help giving more details, I also made a PR with a new board revision

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

YouInSun commented 2 months ago

You new pcb is really cool! This is more like it should be, a pcb with the size of a Z80. If one firmware works in your board, that's good news, it means your hardware is OK and the fails are caused by the different firmwares. Problem is, if the only working is 01_Z80_V9958_goauld.fs, then you are missing MSX2 bios, so most of the MSX2 software won't work. Aleste should work, at least the intro. Regarding version 0.61, no big problems here. I have the usual problems working with tk20k: connection drops, instabilities from time to time. Same as other fpga's. Tang 9k is another story, it's really a pain in the ass. I have to use usb2 (not blue) ports and a usb hub to flash it. Tip: connect and disconnect tang using the tang (usb-c) connector, not usb-a connector. https://www.msx.pics/images/2024/03/28/programando2.png I have four tangs 20k, two goa'uld pcb's and three MSX for tests: Omega, Toshiba HX-20 and Sony Hitbit HB-75P. With every new version I try all combinations and they worked fine. But the fact is, nobody has reported success with firmwares 04, 05. So, this means that something in my system must be different and it makes things work. About what could it be, I haven't got a clue. https://www.msx.pics/images/2024/03/28/puebas.jpeg On Thu, Mar 28, 2024 at 4:59 AM Chandler Klüser @.> wrote: Update: This time I was able to flash 0.61 version to my TN20k, I have built from source and flashed the default bitstream and then it worked (don`t know why that happened). image.png (view on web) https://github.com/jabadiagm/MSXgoauld_tn20k/assets/29960960/368cf7f9-ce77-4571-b497-d5c99c63b89d But even using the latest version v9958 is still not working (02, 03, 04 and 05 .fs) — Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOYT426VOIJVDIBX5O7YXLY2OIRJAVCNFSM6AAAAABELCABXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGM2TEOBVHE . You are receiving this because you commented.Message ID: @.>

Hello, I can report the 05_Z80_V9958_bios_mapper_sound_goauld.fs of V0.61 with your goauld board(jabadiagm's original version) is doing well to my FC-80(MSX1). Please look at my capture below. And the SCC sound is good! My experience of black screen was that there is no signal of the 5V level from HDMI of Monitor. Please check the level of 5V pin. IMG_5128

Chandler-Kluser commented 2 months ago

Thanks for your feedback!!

Regarding the bitstream, we are rolling back some features in order to make the project compatible with more MSX models.

I am testing with Sharp MSX Hotbit and Gradiente MSX Expert, I believe very soon we are going to present news with better compatibility.

@jabadiagm @YouInSun