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

[BUG] Latest kmk_firmware with latest CircuitPython 9.0.0.alpha.2 on ESP32-S3-DevKitC-1-N8 kinda breaks it #907

Open
Anutrix opened this issue Oct 29, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@Anutrix
Copy link

Anutrix commented Oct 29, 2023

Describe the bug
Latest kmk_firmware with latest CircuitPython 9.0.0.alpha on ESP32-S3-DevKitC-1-N8 breaks it.
CIRCUITPY drive and even bootmode Drive both stop working. No matter what reset combination I use.
I hear disconnect/reconnect sounds whenever I try any reset/boot buttons combination.

To Reproduce
Steps to reproduce the behavior:

  • Flash in UF2 bootloader according to docs.
  • Drag and drop CircuitPython 9.0.0.alpha for ESP32-S3-DevKitC-1-N8 to set it up.
  • CircuitPython works perfectly.
  • On CIRCUITPY drive, add zmk folder to root and write sample program in http://kmkfw.io/docs/Getting_Started to code.py.
  • Set row and column keys line to board.IO6 and board.IO7.
  • Empty boot.py.
  • Try to save/run it which fails with 'keypad.py doesn't have key_count attribute' kind of error.
  • Reset the board after few minutes of trying to make it work.
  • CIRCUITPY never comes back. Onwards to panicland.....

Expected behavior
No errors or crashes to happen. CIRCUITPY drive shows up again.

Debug output
Couldn't note it down as CIRCUITPY wouldn't show and nothing else worked.
I am too scared to try again.

Additional context
Wasn't sure which project to report but seeing as CircuitPython worked fine for a while before trying ZMK, I posted it here.

@Anutrix Anutrix added the bug Something isn't working label Oct 29, 2023
@xs5871
Copy link
Collaborator

xs5871 commented Oct 30, 2023

Citation from any CP download page:

Alpha development releases are early releases. They are unfinished, are likely to have bugs, and the features they provide may change.

This is not an issue with KMK. If you don't want bugs, both stable build and (usually) the release candidate are good options.

@Anutrix
Copy link
Author

Anutrix commented Oct 30, 2023

There were some recent fixes to ESP32-S3 which I wasn't sure if they got applied in Stable branch.
It will try with 8.X stable CircuitPython next.

@Anutrix
Copy link
Author

Anutrix commented Nov 1, 2023

It is indeed issue with KMK not CircuitPython.

It happens whenever you hard reset after there's working KMK HID related code.
On next hard reset, both HID logic and CIRCUITPY logic seems to run so CIRCUITPY is not visible.

Steps to reproduce:

  1. CIRCUITPY drive is visible. Edit code and add good KMK code with keyboard.go() line.
  2. Reconnect the USB cable or press button on the board.
  3. See CIRCUITPY go away but not come back.

I see following USBLogView as soon as I plug it in once:
image

Seems like it tried to connect as drive but disconnected and turned into HID quickly. Which further disconnects.

Only solution was to go into CP's safe mode, add something else in main.py. After that it goes back to normal:
Unsure about HID part but here's how it looks now:
image

@xs5871
Copy link
Collaborator

xs5871 commented Nov 5, 2023

Did you confirm that this also happens with the stable release?

@adam-huganir
Copy link

I am having the same issue with the same board on 8.2.6 stable, i thought it was hardware and just used a different board but since I saw this ticket I thought I'd jump in and confirm

@xs5871
Copy link
Collaborator

xs5871 commented Nov 10, 2023

Looks like known issue: adafruit/circuitpython#7664

@adam-huganir
Copy link

Awesome, i'll give that a try and get that lil macro pad up and running

Looks like known issue: adafruit/circuitpython#7664

@claycooper
Copy link
Member

Closing as stale.

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

4 participants