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

Tncart does not work with Ghoauld #24

Open
xKNIGHTMAREx opened this issue Nov 8, 2024 · 30 comments
Open

Tncart does not work with Ghoauld #24

xKNIGHTMAREx opened this issue Nov 8, 2024 · 30 comments

Comments

@xKNIGHTMAREx
Copy link

I have a VG8020 that I have been able to revive thanks to Ghoauld, it works perfectly with all the cartridges I have tried and with the Wondertang, now with the Tncartwonder when it starts up the first screen that detects the SD appears, the image of the nextor.sys and it goes to Basic. Is there any way to fix this? I would like to be able to use the tncart together with the Ghoauld. The PCB is 2.0b. Thanks.

@buppu3
Copy link
Owner

buppu3 commented Nov 9, 2024

You wrote in issue#14, is this a separate issue from that?
Is it possible to get a list of files with the FILES command after starting BASIC?

@xKNIGHTMAREx
Copy link
Author

Then I try to do it and see what happens.

@xKNIGHTMAREx
Copy link
Author

It says Files not found

@xKNIGHTMAREx
Copy link
Author

VID-20241109-WA0021.mp4

@xKNIGHTMAREx
Copy link
Author

The interference is due to the Ghoauld HDMI to VGA adapter

@xKNIGHTMAREx
Copy link
Author

This video is loading the wondertang

VID-20241109-WA0022.1.mp4

@Chandler-Kluser
Copy link

@jabadia

@buppu3
Copy link
Owner

buppu3 commented Nov 9, 2024

It says Files not found

Is the response to the FILES command “file not found” instead of “i/o error” etc.?

@polileco
Copy link
Contributor

polileco commented Nov 9, 2024

Are you using the same uSD for both cores on the same cartridge? And you did the partition on uSD using WonderTANG?

Can you tell what is the Nextor kernel version of both TnCart and WonderTANG?

What device and partitions "CALL FDISK" command show when runing from BASIC from both cores?

Regards

@xKNIGHTMAREx
Copy link
Author

The version I put in the Tncartwonder is the one on GitHub and for the wondertang the one on its GitHub

@xKNIGHTMAREx
Copy link
Author

Nextor 2.1.2 for Tncartwonder and Nextor 2.1.1 for Wondertang

@xKNIGHTMAREx
Copy link
Author

When I put files now this appears
Uploading IMG20241109154639.jpg…

@polileco
Copy link
Contributor

polileco commented Nov 9, 2024

How about FDISK?

If the uSD is the same for both cores maybe you can try downgrade only nextor kernel to 2.1.1 on TnCart.

@xKNIGHTMAREx
Copy link
Author

If I run Call Fdisk with the Wondertang it lets me format the SD and create a 4G partition, but if I do it with the one that Tncartwonder has, it only lets me create a 128mb partition.

@xKNIGHTMAREx
Copy link
Author

VID-20241109-WA0036.mp4

@xKNIGHTMAREx
Copy link
Author

However, from the wondertang it does make the files for me
IMG-20241109-WA0037

@xKNIGHTMAREx
Copy link
Author

I have tried with nextor 2.1.0 and 2.1.1 megaflashsdscc-1.slot.rom and it does the same.

@buppu3
Copy link
Owner

buppu3 commented Nov 16, 2024

Both tnCart and goauld multiplex the bus and the timings may not match.
Asserting the WAIT signal on the Z80 during TF access is expected to reduce the amount of data missed.
The WAIT signal can be controlled by synthesizing the USE_WAIT_SIGNAL parameter of the TF_CONTROLLER module with 1.

@xKNIGHTMAREx
Copy link
Author

How do I put 1 in that module?

@buppu3
Copy link
Owner

buppu3 commented Nov 16, 2024

If you want it right away, you have to install Gowin FPGA Designer, modify a part of tnCartWonder, and synthesize the bitstream file.
The part to change is USE_WAIT_SIGNAL = 0 at line 40 of "rtl/src/peripheral/msx/tf_controller.sv" in the tnCartWonder repository.

@xKNIGHTMAREx
Copy link
Author

I'll try to do it, although I don't know if I'll be able to do it well.

@Chandler-Kluser
Copy link

Both tnCart and goauld multiplex the bus and the timings may not match. Asserting the WAIT signal on the Z80 during TF access is expected to reduce the amount of data missed. The WAIT signal can be controlled by synthesizing the USE_WAIT_SIGNAL parameter of the TF_CONTROLLER module with 1.

well, goa'uld works with wondertang, which actually also multiplexes address bus...

@xKNIGHTMAREx
Copy link
Author

The Wondertang 2.0 works perfectly with the Ghoauld, but the Tncartwonder on the 2.0 board doesn't, it boots up the computer and always goes to Basic. Could someone modify the .fs and put the file on GitHub? I've tried to do it but I have no idea, thanks a lot.

@buppu3
Copy link
Owner

buppu3 commented Nov 17, 2024

Both tnCart and goauld multiplex the bus and the timings may not match. Asserting the WAIT signal on the Z80 during TF access is expected to reduce the amount of data missed. The WAIT signal can be controlled by synthesizing the USE_WAIT_SIGNAL parameter of the TF_CONTROLLER module with 1.

well, goa'uld works with wondertang, which actually also multiplexes address bus...

WonderTANG and tnCart have completely different Nextor driver implementation methods, which is probably why this phenomenon occurs.
WonderTANG is a highly functional implementation that performs initial card settings, etc. within the FPGA, while tnCart only performs SPI conversion and initial settings, etc. are performed by the MSX driver software.
The tnCart may have failed to read the CSD during the initialization process, causing it to behave strangely.

@xKNIGHTMAREx
Copy link
Author

xKNIGHTMAREx commented Nov 17, 2024

And modifying this line "USE_WAIT_SIGNAL = 0" to 1 will work? I will try to modify it to see if it works.

@buppu3
Copy link
Owner

buppu3 commented Nov 17, 2024

And modifying this line "USE_WAIT_SIGNAL = 0" to 1 will work? I will try to modify it to see if it works.

I do not know why Nextor does not work on your machine, so I cannot say for sure if it will work with this fix.
I suggested this as one possible cause.

@xKNIGHTMAREx
Copy link
Author

I'll try it and comment here.

@xKNIGHTMAREx
Copy link
Author

xKNIGHTMAREx commented Nov 17, 2024

I changed the parameter 0 to 1 and it still doesn't work. I guess I did the whole process right. I changed the 0 to 1 and after synchronizing I put the .fs in the Tncartwonder.

VID-20241117-WA0043.1.mp4

@buppu3
Copy link
Owner

buppu3 commented Nov 19, 2024

I changed the parameter 0 to 1 and it still doesn't work. I guess I did the whole process right. I changed the 0 to 1 and after synchronizing I put the .fs in the Tncartwonder.

VID-20241117-WA0043.1.mp4

Are you flashing the files created by the rebuild?
New files will be created in "rtl/impl/pnr/"

Also, do functions other than Nextor work?

@xKNIGHTMAREx
Copy link
Author

xKNIGHTMAREx commented Nov 19, 2024

Yes, use the .fs from that folder, it is supposed to be the one you created. I have problems with the computer where I have Ghoauld, until I fix it I will not be able to continue testing. Once it is fixed we will continue testing.

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

4 participants