Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Flash bitstream #6

Closed
Chandler-Kluser opened this issue Mar 7, 2024 · 32 comments
Closed

Cannot Flash bitstream #6

Chandler-Kluser opened this issue Mar 7, 2024 · 32 comments

Comments

@Chandler-Kluser
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@jabadiagm
Copy link
Owner

jabadiagm commented Mar 8, 2024 via email

@Chandler-Kluser
Copy link
Contributor Author

I have not tried, but I can check it!

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

@jabadiagm
Copy link
Owner

jabadiagm commented Mar 9, 2024 via email

@Chandler-Kluser
Copy link
Contributor Author

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

@Chandler-Kluser
Copy link
Contributor Author

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
Copy link
Owner

jabadiagm commented Mar 12, 2024 via email

@Chandler-Kluser
Copy link
Contributor Author

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? 😅

@jabadiagm
Copy link
Owner

jabadiagm commented Mar 14, 2024 via email

@Chandler-Kluser
Copy link
Contributor Author

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
Copy link
Owner

jabadiagm commented Mar 18, 2024 via email

@Chandler-Kluser
Copy link
Contributor Author

Chandler-Kluser commented Mar 18, 2024

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
Copy link
Owner

jabadiagm commented Mar 18, 2024 via email

@Chandler-Kluser
Copy link
Contributor Author

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 😅

@jabadiagm
Copy link
Owner

jabadiagm commented Mar 18, 2024 via email

@Chandler-Kluser
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Owner

jabadiagm commented Mar 28, 2024 via email

@jabadiagm
Copy link
Owner

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
Copy link
Contributor Author

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:
@.***>

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
Copy link
Owner

jabadiagm commented Mar 30, 2024

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
Copy link
Owner

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
Copy link
Contributor Author

I can test in my msx hotbit, too

@Chandler-Kluser
Copy link
Contributor Author

Chandler-Kluser commented Apr 9, 2024

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
Copy link
Owner

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
Copy link
Contributor Author

leds blinking, there is HDMI signal

@Chandler-Kluser
Copy link
Contributor Author

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
Copy link
Contributor Author

IMG_20240410_085536264

@jabadiagm
Copy link
Owner

jabadiagm commented Apr 10, 2024 via email

@YouInSun
Copy link

YouInSun commented Apr 12, 2024

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants