#SOLVED parse error in "keyboard".dtsi

1 messages · Page 1 of 1 (latest)

supple niche
#

i seem to be running into an issue while compiling, as far as i can tell my syntax is ok but obviously SOMETHING is wrong LOL

twenny.dtsi -

/ {
    chosen {
            zmk,physical-layout = &physical_layout0;
       };
    kscan0: kscan0 {
        compatible = "zmk,kscan-gpio-direct";
        wakeup-source;
        input-gpios
        = <&seeeduino_xiao_ble 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        , <&seeeduino_xiao_ble 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
        ;
    };
    default_transform: keymap_transform0 {
        compatible = "zmk,matrix_transform";
        columns = <4>;
        rows = <4>;
        map = < 
                RC(0,3) RC(0,2) RC(0,0) RC(0,11) RC(0,13) RC(0,21)
            RC(0,10) RC(0,6) RC(0,5) RC(0,4) RC(0,20) RC(0,19) RC(0,18) RC(0,14)
                    RC(0,8) RC(0,9) RC(0,l5) RC(0,16)
                        RC(0,7) RC(0,17)
        >;
    };
};```
something in here is refusing to compile, i'm getting 
```devicetree error: /__w/zmk-config/zmk-config/boards/shields/twenny/twenny.dtsi:26 (column 3): parse error: expected number or parenthesized expression```
 although afaik the rowand col count are inaccurate because of the way it compiles

git repo for just in case:
https://github.com/turnisaa-sgtworms/zmk-config
GitHub

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

#

with some fiddling the location of the error changes but not much else unfortunately :(

ivory thicket
supple niche
#

seeed xiao nrf52840

ivory thicket
#

Use seeeduino_xiao_ble as board

#

Then use &xiao_d <number> to reference the pins

supple niche
#

ok, thanks! not sure how i got that first one mixed up tbh

supple niche
#

that worked, but now i'm getting another issue in my .layout file ;(
devicetree error: /tmp/zmk-config/config/twenny.keymap:11 (column 245): parse error: expected number or parenthesized expression
honestly probably another stupid typo but i'm (again) not sure as the syntax looks fine to me 😢

#include <dt-bindings/zmk/keys.h>

/ {
keymap {
    compatible = "zmk,keymap";

    default_layer {
        display-name = "base";
        bindings = <
            &kp W &kp E &kp T &kp U    &kp I &kp O
            &kp A &kp S &kp D &kp F &kp H &kp K &kp L &kp P
            &kp C &kp B &kp N &kp M
            &kp SPACE &kp SPACE
            >;
        };
    };
};```
supple niche
#

i thought i pushed a fix for that already hmm

#

ill try again real quick

#

oh oh oh in /config/

#

fixing

supple niche
#

ok, that's fixed, hopefully last thing:
getting: /tmp/zmk-config/zephyr/scripts/kconfig/kconfig.py: /__w/zmk-config/zmk-config/boards/shields/twenny/Kconfig.shield:2: error: couldn't parse 'def_bool $(shield_list_contains,twenny_left)': macro expanded to blank string

#

from Kconfig.shield : ```config SHIELD_TWENNY_LEFT
def_bool $(shield_list_contains,twenny_left)
config SHIELD_TWENNY_RIGHT
def_bool $(shield_list_contains,twenny_right)

#

and Kconfig.defconfig : ```if SHIELD_TWENNY_LEFT

config ZMK_KEYBOARD_NAME
default "twenny_left"

config ZMK_SPLIT_ROLE_CENTRAL
default y

endif

if SHIELD_TWENNY_LEFT || SHIELD_TWENNY_RIGHT

config ZMK_SPLIT
default y

endif```

supple niche
#

alright, one more message to send before i go to bed so I can work on it tomorrow:
getting: FAILED: CMakeFiles/app.dir/src/physical_layouts.c.obj ... /tmp/tmp.dtDMIt3HNg/zephyr/include/generated/devicetree_generated.h:6126:60: error: 'DT_N_S_keymap_transform_twenny_P_map_LEN' undeclared here (not in a function); did you mean 'DT_N_S_keymap_transform_twenny_PARENT'?

the mention of "parent" makes me thinnk maybe my build.yaml is wrong as i saw the "sibling" category in the example one for the corne, not quite sure though ☹️

#

ellipses is a big block of text, not actually an ellipses. can post if necessary

#

starts with "ccache /opt/zephyr/" etc etc

ivory thicket
#

compatible = "zmk,matrix-transform";
compatible = "zmk,matrix_transform";

supple niche
#

that finally fixed it thank you! clearly i need to NOT stay up late after debugging code to debug EVEN MORE code LMAO