Arduino interface definition for Nordic development kits

Aaron Xu


When I try to compile "samples\shields\x_nucleo_iks01a1\" for my Nordic dev. kits(pca10040 and pca10056), occurred this error:

Error: nrf52840_pca10056.dts.pre.tmp:437.1-13 Label or path arduino_i2c not found
FATAL ERROR: Syntax error parsing input tree
Call Stack (most recent call first):
-- Configuring incomplete, errors occurred!

I noticed that the Arduino interface, like default i2c and so on, not been included in the Nordic dev. kits, either pca10040 or pca10056. So I add this patch to nrf52_pca10040.dts under "zephyr\boards\arm\nrf52_pca10040":

@@ -97,7 +97,7 @@
        cts-pin = <7>;
-&i2c0 {
+arduino_i2c: &i2c0 {
        status = "ok";
        sda-pin = <26>;
        scl-pin = <27>;
And it works.

My question is that, do I need to add Arduino interface definition to each of the Nordic development kit's DTS files?

Join to automatically receive all group messages.