This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Device tree error for board pca_20035 (Thingy:91)

Current (as of today) version of NCS wont build device tree out of the box.

Output using cmake+ninja (but same if using emStudio):

-- Using application from '/home/jesper/progging/nrf9160/ncs/nrf/samples/nrf9160/mqtt_simple'
Zephyr version: 1.14.99
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.8", minimum required is "3.4") 
-- Selected BOARD nrf9160_pca20035
-- Found west: /home/jesper/.local/bin/west (found suitable version "0.6.0", minimum required is "0.6.0")
-- Cache files will be written to: /home/jesper/.cache/zephyr
USING OUT OF TREE BOARD
-- Loading /home/jesper/progging/nrf9160/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca20035.dts as base
-- Overlaying /home/jesper/progging/nrf9160/ncs/zephyr/dts/common/common.dts
device tree error: 'tx-pin' is marked as required in 'properties:' in /home/jesper/progging/nrf9160/ncs/zephyr/dts/bindings/serial/nordic,nrf-uarte.yaml, but does not appear in <Node /soc/peripheral@50000000/uart@a000 in 'nrf9160_pca20035.dts.pre.tmp'>
CMake Error at /home/jesper/progging/nrf9160/ncs/zephyr/cmake/dts.cmake:181 (message):
new extractor failed with return code: 1
Call Stack (most recent call first):
/home/jesper/progging/nrf9160/ncs/zephyr/cmake/app/boilerplate.cmake:532 (include)
CMakeLists.txt:10 (include)


-- Configuring incomplete, errors occurred!

To (ugly-)fix the issue, I added the required properties for uart2 in nrf/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts.

&uart2 {
current-speed = <1000000>;
status = "okay";
tx-pin = <100>;
rx-pin = <101>;
rts-pin = <102>;
cts-pin = <103>;
};

It's obviously wrong - I just set them to something - but it builds now :-)

What is the correct solution for this?

Parents Reply Children
No Data
Related