Hello
I'm new to the nrf platform and wanted to try out the I2C functionality of my nrf5340 DK. The only example I could find was the Fujitsu MB85RC256V FRAM I2C example. I tried to build the example with default configurations, but I got a link error:
[230/251] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj [231/251] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a [232/251] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj [233/251] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj [234/251] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj [235/251] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj [236/251] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj [237/251] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj [238/251] Linking C static library zephyr\kernel\libkernel.a [239/251] Linking C executable zephyr\zephyr_pre0.elf c:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `read_bytes': C:\Users\Gabriel\Documents\VS_Code_WS\i2c_fujitsu_fram\src\main.c:69: undefined reference to `__device_dts_ord_81' c:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `write_bytes': C:\Users\Gabriel\Documents\VS_Code_WS\i2c_fujitsu_fram\src\main.c:42: undefined reference to `__device_dts_ord_81' c:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `main': C:\Users\Gabriel\Documents\VS_Code_WS\i2c_fujitsu_fram\src\main.c:156: undefined reference to `__device_dts_ord_81' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.1\opt\bin\cmake.EXE' --build 'c:\Users\Gabriel\Documents\VS_Code_WS\i2c_fujitsu_fram\build'
It seems like the i2c device is not recognized. I think it has something to do with the prf.conf or the .dts file. These files are all by default, but I still share them here:
prj.conf
CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y
CONFIG_I2C=y
nrf5340dk_nrf5340_cpuapp_ns.dts
/dts-v1/;
#include <nordic/nrf5340_cpuappns_qkaa.dtsi>
#include "nrf5340_cpuapp_common.dts"
/ {
model = "Nordic NRF5340 DK NRF5340 Application";
compatible = "nordic,nrf5340-dk-nrf5340-cpuapp";
chosen {
zephyr,sram = &sram0_ns;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_ns_partition;
};
};
Thank you for your help!
GG
Edit: I've noticed that I'm having trouble compiling basically every sample project with my setup. I tried compiling the WS2812B driver sample and got this error
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:83:41: error: '__device_dts_ord_DT_N_ALIAS_led_strip_ORD' undeclared here (not in a function) 83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
I think it could be something with the SDK. Because it looks like the Comiler can't find basic definitions in zephyr or from the NRF boards. Does anyone have any idea what I did wrong in my setup for VS Code?
I am using the sdk version 2.1.1 and the toolchain version 2.1.1. I installed it about the toolchain manager.
Edit: ok, I boiled my Problem down. I neether have a problem with my VS Code setup nor with my sdk version. My Problem is that both examples require external hardware like spi and i2c and that has to be specified in a devicetree source (.dts). I managed to compile the ws2812b driver sample with a dts overlay given in the documentation but the i2c example (Fujitsu MB85RC256V FRAM I2C example) not.
I tried adding an overlay to the dts of Fujitsu MB85RC256V FRAM I2C example like so:
&i2c0 {
compatible = "nordic,nrf-twim";
status = "okay";
};
the following error trace looks like this:
[107/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[108/251] Building C object CMakeFiles/app.dir/src/main.c.obj
[109/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[110/251] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
[111/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[112/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[113/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strerror.c.obj
[114/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[115/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
[116/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[117/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
[118/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[119/251] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[120/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[121/251] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[122/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[123/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
[124/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[125/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrtf.c.obj
[126/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[127/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[128/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[129/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrt.c.obj
[130/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[131/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[132/251] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
[133/251] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
[134/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[135/251] Linking C static library zephyr\lib\posix\liblib__posix.a
[136/251] Linking C static library app\libapp.a
[137/251] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[138/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[139/251] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[140/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[141/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[142/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[143/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[144/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[145/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[146/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[147/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[148/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[149/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[150/251] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
[151/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[152/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[153/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[154/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[155/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[156/251] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
[157/251] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[158/251] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[159/251] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
[160/251] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[161/251] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
C:\ncs\toolchains\v2.1.1\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.1.1/zephyr/kernel/include -IC:/ncs/v2.1.1/zephyr/arch/arm/include -Itfm/install/interface/include -IC:/ncs/v2.1.1/zephyr/include/zephyr -IC:/ncs/v2.1.1/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.1/nrf/include -IC:/ncs/v2.1.1/nrf/include/tfm -Itfm/generated/interface/include -IC:/ncs/v2.1.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.1/zephyr/modules/hal_nordic/nrfx/. -Imodules/nrfxlib/nrfxlib/nrf_security/src/include/generated -IC:/ncs/v2.1.1/nrfxlib/nrf_security/include -IC:/ncs/v2.1.1/nrfxlib/nrf_security/include/mbedtls -IC:/ncs/v2.1.1/mbedtls/include -IC:/ncs/v2.1.1/mbedtls/include/mbedtls -IC:/ncs/v2.1.1/mbedtls/include/psa -IC:/ncs/v2.1.1/mbedtls/library -IC:/ncs/v2.1.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.1.1/nrfxlib/crypto/nrf_oberon/include -isystem C:/ncs/v2.1.1/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -imacros C:/Users/Gabriel/Documents/VS_Code_WS/i2c_fujitsu_fram/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Users/Gabriel/Documents/VS_Code_WS/i2c_fujitsu_fram=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj -MF zephyr\CMakeFiles\zephyr.dir\soc\arm\nordic_nrf\validate_enabled_instances.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj -c C:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/validate_enabled_instances.c
In file included from C:\ncs\v2.1.1\zephyr\include\zephyr\toolchain.h:50,
from C:\ncs\v2.1.1\zephyr\include\zephyr\kernel_includes.h:19,
from C:\ncs\v2.1.1\zephyr\include\zephyr\kernel.h:17,
from C:\ncs\v2.1.1\zephyr\soc\arm\nordic_nrf\validate_enabled_instances.c:7:
C:\ncs\v2.1.1\zephyr\include\zephyr\toolchain\gcc.h:77:36: error: static assertion failed: "Only one of the following peripherals can be enabled: SPI0, SPIM0, SPIS0, TWI0, TWIM0, TWIS0, UARTE0. Check nodes with status \"okay\" in zephyr.dts."
77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
| ^~~~~~~~~~~~~~
C:\ncs\v2.1.1\zephyr\soc\arm\nordic_nrf\validate_enabled_instances.c:48:1: note: in expansion of macro 'BUILD_ASSERT'
48 | BUILD_ASSERT(CHECK(0), MSG(0));
| ^~~~~~~~~~~~
[162/251] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[163/251] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_secure.c.obj
[164/251] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
[165/251] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf53/power.c.obj
[166/251] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf53/soc.c.obj
[167/251] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[168/251] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[169/251] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[170/251] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
[171/251] Building C object zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_nrfx_twim.c.obj
FAILED: zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_nrfx_twim.c.obj
C:\ncs\toolchains\v2.1.1\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/ncs/v2.1.1/zephyr/include/zephyr -IC:/ncs/v2.1.1/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.1/nrf/include -IC:/ncs/v2.1.1/nrf/include/tfm -Itfm/generated/interface/include -IC:/ncs/v2.1.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.1/zephyr/modules/hal_nordic/nrfx/. -Itfm/install/interface/include -Imodules/nrfxlib/nrfxlib/nrf_security/src/include/generated -IC:/ncs/v2.1.1/nrfxlib/nrf_security/include -IC:/ncs/v2.1.1/nrfxlib/nrf_security/include/mbedtls -IC:/ncs/v2.1.1/mbedtls/include -IC:/ncs/v2.1.1/mbedtls/include/mbedtls -IC:/ncs/v2.1.1/mbedtls/include/psa -IC:/ncs/v2.1.1/mbedtls/library -IC:/ncs/v2.1.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.1.1/nrfxlib/crypto/nrf_oberon/include -isystem C:/ncs/v2.1.1/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -imacros C:/Users/Gabriel/Documents/VS_Code_WS/i2c_fujitsu_fram/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Users/Gabriel/Documents/VS_Code_WS/i2c_fujitsu_fram=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_nrfx_twim.c.obj -MF zephyr\drivers\i2c\CMakeFiles\drivers__i2c.dir\i2c_nrfx_twim.c.obj.d -o zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_nrfx_twim.c.obj -c C:/ncs/v2.1.1/zephyr/drivers/i2c/i2c_nrfx_twim.c
In file included from C:\ncs\v2.1.1\zephyr\include\zephyr\toolchain.h:50,
from C:\ncs\v2.1.1\zephyr\include\zephyr\init.h:10,
from C:\ncs\v2.1.1\zephyr\include\zephyr\device.h:29,
from C:\ncs\v2.1.1\zephyr\include\zephyr\drivers\i2c.h:23,
from C:\ncs\v2.1.1\zephyr\drivers\i2c\i2c_nrfx_twim.c:8:
C:\ncs\v2.1.1\zephyr\include\zephyr\toolchain\gcc.h:77:36: error: static assertion failed: "/soc/peripheral@40000000/i2c@8000 defined without required pin configuration"
77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
| ^~~~~~~~~~~~~~
c:\ncs\v2.1.1\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:218:2: note: in expansion of macro 'BUILD_ASSERT'
218 | BUILD_ASSERT((IS_ENABLED(CONFIG_PINCTRL) && \
| ^~~~~~~~~~~~
C:\ncs\v2.1.1\zephyr\drivers\i2c\i2c_nrfx_twim.c:414:2: note: in expansion of macro 'NRF_DT_CHECK_PIN_ASSIGNMENTS'
414 | NRF_DT_CHECK_PIN_ASSIGNMENTS(I2C(idx), 1, scl_pin, sda_pin); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.1.1\zephyr\drivers\i2c\i2c_nrfx_twim.c:457:1: note: in expansion of macro 'I2C_NRFX_TWIM_DEVICE'
457 | I2C_NRFX_TWIM_DEVICE(0);
| ^~~~~~~~~~~~~~~~~~~~
[172/251] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[173/251] Building C object zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_common.c.obj
[174/251] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[175/251] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/C_/ncs/v2.1.1/nrf/drivers/entropy/entropy_cc3xx.c.obj
[176/251] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[177/251] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[178/251] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.1\opt\bin\cmake.EXE' --build 'c:\Users\Gabriel\Documents\VS_Code_WS\i2c_fujitsu_fram\build'
I read about the device tree format and its purpose and i think i understand it, but may i need some more examples to do it my self.
I am using an nrf5340 DK board, SDK Version 2.1.1 on Windows 10 and the VS Code nrf Connect Extension V2022.11.140
I really aprichiate your help.
GG
Edit: i fuigert it out by myself, so no more help is needed in this case. It helped using the dev academy lesson 6 academy.nordicsemi.com/.../