Skip to content

Keyboard from shop w/PS2 adapter doesn't work #10140

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

Open
FoamyGuy opened this issue Mar 18, 2025 · 4 comments
Open

Keyboard from shop w/PS2 adapter doesn't work #10140

FoamyGuy opened this issue Mar 18, 2025 · 4 comments
Milestone

Comments

@FoamyGuy
Copy link
Collaborator

CircuitPython version and board name

Adafruit CircuitPython 9.2.4-274-g2af397ed1c on 2025-03-06; Adafruit Metro RP2350 with rp2350b
Board ID:adafruit_metro_rp2350

Code/REPL

import supervisor
import sys

while True:
    available = supervisor.runtime.serial_bytes_available
    if available:
        c = sys.stdin.read(available)
        print(c, end='')

Behavior

The code runs and waits until a key is pressed. Once a key is pressed the device reboots and there is this hardfault message in the serial console:

Running in safe mode! Not running saved code.

You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
Please file an issue with your program at github.com/adafruit/circuitpython/issues.
Press reset to exit safe mode.

Description

No response

Additional information

Using this keyboard: https://www.adafruit.com/product/857

@FoamyGuy FoamyGuy added the bug label Mar 18, 2025
@FoamyGuy
Copy link
Collaborator Author

There seems to be something specific about this keyboard that it doesn't like. I've tried the following and they all work with the same code on the same device:

@tannewt tannewt added this to the 10.0.0 milestone Mar 18, 2025
@tannewt
Copy link
Member

tannewt commented May 1, 2025

This still happen?

@FoamyGuy
Copy link
Collaborator Author

FoamyGuy commented May 2, 2025

9.2.7 does still hard fault when keys are pressed sometimes. 10.0.0-alpha.2 seems like it will not hard fault, I have tested it and pressed away on the keyboard for a while and never got one. With 9.2.7, and originally in 9.2.4 when this was submitted it occurs fairly fast within dozen or so key presses.

None of the versions successfully read the keys and print them on Metro RP2350 connected to USB host pins, but that is less problematic than the hard fault.

@tannewt tannewt changed the title Hard fault reading input from keyboard Keyboard from shop w/PS2 adapter doesn't work May 2, 2025
@tannewt tannewt modified the milestones: 10.0.0, Long term May 2, 2025
@tannewt
Copy link
Member

tannewt commented May 2, 2025

Ok, @hathach not a high priority but next time you order from the Adafruit shop please get https://www.adafruit.com/product/857 to test with.

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

No branches or pull requests

2 participants