Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

error on compiling "DT_N_NODELABEL_arduino_serial_P_label" #3

Open
sail2themoon opened this issue Mar 18, 2023 · 1 comment
Open

error on compiling "DT_N_NODELABEL_arduino_serial_P_label" #3

sail2themoon opened this issue Mar 18, 2023 · 1 comment

Comments

@sail2themoon
Copy link

sail2themoon commented Mar 18, 2023

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
Copy link
Author

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant