BLE-MIDI / NCS-MIDI

MIDI tools for nRF Connect SDK
20 stars 4 forks source link

error on compiling "DT_N_NODELABEL_arduino_serial_P_label" #3

Open sail2themoon opened 1 year ago

sail2themoon commented 1 year ago

If I try to compile the sample, with: west build -b nrf52832_mdk nrf_midi/samples/bluetooth/central_midi I get:

...nrf_midi/samples/bluetooth/peripheral_midi/src/main.c: In function 'uart_init':
...zephyr/include/devicetree.h:173:36: error: 'DT_N_NODELABEL_arduino_serial_P_label' undeclared (first use in this function)
  173 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~

same error for the peripheral example. I also tried for the board arduino_nano_33_ble, no change. What could help?

sail2themoon commented 1 year ago

I've changed the line 283 of nrf_midi/samples/bluetooth/peripheral_midi/src/main.c to uart = device_get_binding(DT_LABEL(DT_NODELABEL(uart0)));

same for nrf_midi/samples/bluetooth/central_midi/src/main.c

compiling without errors, but I don't know if it's working, yet.