-
Notifications
You must be signed in to change notification settings - Fork 18
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
Comments
Does it display the build# (probably does as you quote it) Very occasionally when programming it it doesn't boot the first time. I've no idea why, but it's only that once. |
It displayed all the way to the prompt (including build # and Wozmon char). |
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. |
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. |
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. |
USB Release 11 (version 2448) works for me. |
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. |
Release 12 booted up into BASIC OK. Entering '/' displays 'Serial link enabled.'. After that the system hangs. No response from the keyboard. |
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. |
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. |
So far, the Buck Rogers release working fine. Levent |
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. |
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
The text was updated successfully, but these errors were encountered: