I am new to nRF5x development coming from a heavy STM32 background. I have successfully created a custom board for use with our company's custom board which has a nRF5340 on it.
nRF Connect SDK: 2.2.0
nRF Connect Toolchain: 2.2.0
OS: macOS Monterey (12.6), Chip Apple M1 Max
I'm able to build and successfully run samples on an nRF5340 DK.
I created my board by copying the necessary pieces of the nrf5340-dk-nrf5340-cpuapp board to my custom board files. Aside from the warning detailed below, samples (Blinky, most notably) build successfully.
My board produces these warnings when building:
/Users/UserName/Dev/Company/nRF5340DK/blinky/build/zephyr/zephyr.dts:55.33-59.6: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/oscillator@4000: duplicate unit-address (also used in node /soc/peripheral@40000000/regulator@4000)
/Users/UserName/Dev/Company/nRF5340DK/blinky/build/zephyr/zephyr.dts:65.22-70.6: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
/Users/UserName/Dev/Company/nRF5340DK/blinky/build/zephyr/zephyr.dts:65.22-70.6: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/reset-controller@5000)
/Users/UserName/Dev/Company/nRF5340DK/blinky/build/zephyr/zephyr.dts:71.22-76.6: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/power@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/reset-controller@5000)
/Users/UserName/Dev/Company/nRF5340DK/blinky/build/zephyr/zephyr.dts:408.45-453.6: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000)
From what I've read these can be ignored. However, I'd like to address these if possible so they don't happen any more.
I do see that there "peripheral@40000000" entries in both .../build/zephyr/zephyr.dts and in nerf5340_cpuappns.dts (which is included in my .dts file). What I don't understand is that my device tree files are nearly identical to the nrf5340-dk-nrf5340-cpuapp files, yet mine produces those warnings and the stock nrf5340-dk-nrf5340-cpuapp files do not.
Any help fixing this is appreciated.
Thanks,
Craig