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

Latest USB release (2381) not working #43

Closed
leventp opened this issue Jan 25, 2024 · 12 comments
Closed

Latest USB release (2381) not working #43

leventp opened this issue Jan 25, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@leventp
Copy link

leventp commented Jan 25, 2024

Installed the latest USB release 2381. The boot up screen shows fine but no response from the keyboard accepted.
Back to release 2197. All seem to work. So looks like there is an issue with the latest USB release.
Cheers,
Levent

@paulscottrobson
Copy link
Owner

Does it display the build# (probably does as you quote it)
Uploading neo6502.zip…
? Does it display the Wozmon \ character ?
Did you have the USB Key plugged in ? It won't work with just a keyboard.
If not, can you try the SDCard version. It won't work obviously, but it should boot and the keyboard should work.
If not, try this one. It's the USB firmware with the serial check disabled (the only change I can see that would freeze it).

Very occasionally when programming it it doesn't boot the first time. I've no idea why, but it's only that once.

@leventp
Copy link
Author

leventp commented Jan 26, 2024

It displayed all the way to the prompt (including build # and Wozmon char).
By the way, the link you included does not contain the USB firmware serial check disabled.

@n2kbg
Copy link

n2kbg commented Jan 26, 2024

FYI- the latest SD card version doesn't work for me. I don't have a working USB hub and didn't try the USB build.

With the SD version, I do get the splash screen and the wozmon prompt but no keyboard input. The previous SD version works correctly with the same keyboard/hardware.

I'm using a rev A board if that matters.

@paulscottrobson
Copy link
Owner

paulscottrobson commented Jan 26, 2024

It shouldn't do. It's odd as I haven't touched the USB code in ages, or the SDCard code.

I will put up a release that has no serial code in it (the main change) and see if that's any better. Unfortunately mine works fine. It would be easier if mine didn't work !

If it worked before then there's no reason an A board should be any different.

@paulscottrobson
Copy link
Owner

paulscottrobson commented Jan 26, 2024

Okay release 11 is being built now. This has two changes ; one disables the serial code and the other is to reduce the allocated memory for graphics objects. Previously this has caused boards to crash and the compiler gives no warning.

Unfortunately if I can't replicate the problem I can only fix it by removing code until it works. Which is a pain, sorry.

I suspect the serial code because it's checked during the keyboard read.

If this doesn't work I'll add a lot of prints at various places in an attempt to figure out what is wrong. The \ means it has detected the USB key successfully and the 65C02 is running correctly.

The other thing to try if this doesn't work is reducing the speed. I suspect we are running the hardware at close to the limit. My board certainly is ; Sascha Schneider's can take a bit more. But there's a fair amount of 65C02 code that needs to work to get the \ up.

@leventp
Copy link
Author

leventp commented Jan 26, 2024

USB Release 11 (version 2448) works for me.

@paulscottrobson
Copy link
Owner

Okay if release 11 worked can you try release 12. This has the serial code put back in, but accessed differently. You have to type / [ENTER] at the command line to start it manually. It also does nothing with the serial code until it's actually needed.

I'm pretty sure the serial code is the problem. Why, I don't know. I suspect it's some timing or interplay between the USB system and the UART system.

If it all seems to work, can you try / and let me know what, if anything happens.

@leventp
Copy link
Author

leventp commented Jan 26, 2024

Release 12 booted up into BASIC OK. Entering '/' displays 'Serial link enabled.'. After that the system hangs. No response from the keyboard.

@n2kbg
Copy link

n2kbg commented Jan 26, 2024

Found a USB/TTL serial cable for more testing.

Release 12 (2470) for SD booted into basic. As with leventp when I enter '/' it displays the serial link message and then does not accept any more input from the keyboard. It does not display anything on the serial port either.

However, I found that on release 10 (2381) the USB keyboard does work IF the serial port is active! If the serial port is not connected then they keyboard does not work.

If I boot v10 (2381) with the serial port connected and then remove the serial connection then the usb keyboard will stop working as soon as the serial is removed.

@paulscottrobson
Copy link
Owner

paulscottrobson commented Jan 27, 2024

That's what I expected. I had to do it in a bit of a rush, so I didn't add the ESC out of it. It needs some work on timing out. It works well enough, the problems occur when it gets out of sync. Rather than timing out and exiting it is waiting for packet completion, I should let it time out once a packet has started and reject the incomplete packet and error. This is almost certainly why it isn't working, what I don't know is why it thought there was serial data there anyway. I'm presuming you haven't connected anything to UEXT serial pins. Maybe it's a noisy electrical environment ?

Either way I will make it more robust so at worst if fails. It is slightly problematic because I want it to be quick but there's no CTS/RTS flow control.

@paulscottrobson paulscottrobson added the bug Something isn't working label Jan 27, 2024
@leventp
Copy link
Author

leventp commented Jan 27, 2024

So far, the Buck Rogers release working fine.

Levent

@paulscottrobson
Copy link
Owner

I've closed this as I've had no further reports and the broken ones seem to work. It may still have consequential issues, the serial port might not work maybe, but if that's an issue it can be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants