#USB Device not detected (unsure how to set ZMK_USB ?)

1 messages · Page 1 of 1 (latest)

solid pumice
#

The maker of sea-picro said that using zmk with sparkfun_pro_micro_rp2040 should work since it has the same pinout.
I've been successfully flashing in qmk, but after flashing using zmk I can't list any new usb devices using lsusb nor dmesg. (I've always flashed by manually moving the uf2 file to the storage device that appears after resetting the microcontroller)

On the local install I ran using root (and rebooted after install)
cp ./60-openocd.rules /etc/udev/rules.d
udevadm control --reload

According to https://zmk.dev/docs/troubleshooting/flashing-issues

Verification of a functional board can be done by attempting to pair your newly flashed keyboard to your computer via Bluetooth or plugging in a USB cable if ZMK_USB is enabled in your Kconfig.defconfig
Since my keyboard is wired only I went ahead edited zmk/app/boards/shields/cradio/Kconfig.defconfig
config ZMK_USB default y
which didn't build the uf2 file (https://discord.com/channels/719497620560543766/1363728687354351738), so I undid this edit and added -DCONFIG_ZMK_USB=y and that's probably also not how this is supposed to be done.

flint warren
#

It should be fine, if you enabled that config flag. Can you post your built zephyr/.config?

flint warren
#

if you didn't specify a build directory, it'll be build/zephyr/.config

solid pumice
#

grep USB .config
`CONFIG_USB_DEVICE_PRODUCT=""
CONFIG_USB_DEVICE_VID=0x1D50
CONFIG_USB_DEVICE_PID=0x615E
CONFIG_USB_DEVICE_MANUFACTURER="ZMK Project"
CONFIG_ZMK_USB=y

CONFIG_ZMK_USB_BOOT is not set

CONFIG_USB_NUMOF_EP_WRITE_RETRIES=10
CONFIG_USB_HID_POLL_INTERVAL_MS=1

CONFIG_ZMK_USB_LOGGING is not set

CONFIG_USB_DEVICE_STACK is not set

CONFIG_DT_HAS_RASPBERRYPI_PICO_USBD_ENABLED=y

CONFIG_USB_BC12 is not set

CONFIG_USB_DEVICE_DRIVER is not set

CONFIG_USBC_TCPC_DRIVER is not set

CONFIG_USBC_VBUS_DRIVER is not set

CONFIG_USB_DEVICE_STACK_NEXT is not set

CONFIG_USB_HOST_STACK is not set

CONFIG_USBC_STACK is not set`

flint warren
#

Yeah, that smells like something is crashing/faulting on startup

#

# CONFIG_USB_DEVICE_STACK is not set

#

This is probably the root of the issue not even sure how this built when that's the case.

#

This stuff should all be turned on already due to boards/sparkfun_pro_micro_rp2040.conf

#

How exactly are you building? And can you try a fresh build by deleting the build/ directory?

solid pumice
flint warren
#

Please remove the -DCONFIG_ZMK_USB=y

#

And try that again.

#

It should already be defaulting.

solid pumice
#

I've downloaded setup.sh some time ago
./setup.sh

Keyboard Selection:

  1. 2% Milk
    ...
  2. Cradio/Sweep
    ...
    Pick a keyboard: 20

MCU Board Selection:
...
24) SparkFun Pro Micro RP2040
25) Quit
Pick an MCU board: 24
Wired split is not yet supported by ZMK.

solid pumice
flint warren
#

I'm guessing it's related to some split funkiness since the shield isn't set up with the uarts... Can you try building with something like reviung41 with it?

#

Also, to be clear: We only support full duplex wired split currently.

solid pumice
#

ayo lsusb now shows
Bus 001 Device 022: ID 1d50:615e OpenMoko, Inc. Reviung41

flint warren
solid pumice
#

using this shield responds to no keys
so what's next? any procedures to fix the shields funkiness

flint warren
#

If you just want to test things, use the tester_pro_micro shield.

#

That'll be set up with direct pin for every pin, so shorting a GPIO to ground should result in a HID report sent to your host.

solid pumice
#

can you link me to some resources, like I'm a noob in this codebase. or do you think I'll get it with the hints you just mentioned?

#

flashed it.. now Idk 😅

#

btw thank you for your patience and help all this time 🙂

flint warren
#

Did that at least work for generated key presses when connecting a pin to ground?

#

Reading up on the new shield guide is a good start.

#

!new_shield

solid pumice
#

omg usbhid-dump -a 001:034 -e all is spitting numbers

#

when I press keys

#

except when I type on the other split

flint warren