#devicetree undefined node

1 messages · Page 1 of 1 (latest)

naive rover
#

Hi, I'm having a devicetree error with initial setup for Jiran keyboard. I've followed the standard steps as per user guide with no changes to keymap. The error reads as:

-- Found toolchain: zephyr 0.15.2 (/opt/zephyr-sdk-0.15.2)
-- Found BOARD.dts: /__w/zmk-config/zmk-config/zmk/app/boards/arm/nrf52840_m2/nrf52840_m2.dts
-- Found devicetree overlay: /__w/zmk-config/zmk-config/zmk/app/boards/shields/jiran/jiran_left.overlay
-- Found devicetree overlay: /__w/zmk-config/zmk-config/config/jiran.keymap
devicetree error: /kscan: undefined node label 'pro_micro'
CMake Error at /__w/zmk-config/zmk-config/zephyr/cmake/dts.cmake:205 (message):
gen_defines.py failed with return code: 1
Call Stack (most recent call first):
/__w/zmk-config/zmk-config/zephyr/cmake/app/boilerplate.cmake:542 (include)
/__w/zmk-config/zmk-config/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/__w/zmk-config/zmk-config/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:15 (find_package)

What am I doing wrong?
The repo and actions page is here: https://github.com/riman/zmk-config/actions/runs/4093034960/jobs/7058187246

GitHub

Contribute to riman/zmk-config development by creating an account on GitHub.

shadow edge
naive rover
#

Hi @shadow edge . Thanks for the answer! It's now getting clearer what the problem is. Mine was built with nrf52840 m2. Not sure if it's compatible. As far as I understand I'll have to modify the ZMK firmware code to compile for this board. Am I correct?

shadow edge
#

You can add a new shield to your zmk-config repo.

west ferry
#

I don't think m2 interconnects are abstracted out like &pro_micro, so you'd likely need to rewrite the shield definition to directly use nRF pin numbers, like P1.01 would be &gpio1 1 and P0.20 would be &gpio0 20, etc.