<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89959/how-to-debug-undefined-reference-to-__device_dts_ord_xx-errors</link><description>Hi! 
 Currently, I&amp;#39;m trying to create a new board. I have a source code for the Thingy52 board and the code just compiles. With my own board I get __device_dts_ord_10 linker errors. And I don&amp;#39;t know, why. I have no idea how to debug such errors since</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Aug 2022 11:50:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89959/how-to-debug-undefined-reference-to-__device_dts_ord_xx-errors" /><item><title>RE: How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/thread/381182?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2022 11:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:709c9d6f-b837-44d6-ba0a-f4add7a905b9</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t immediately see anything wrong with this devicetree.&lt;/p&gt;
&lt;p&gt;Are you still having this issue? have you made any progress?&lt;/p&gt;
&lt;p&gt;Did the thread with the similar issue give you any leads?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/thread/378378?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 19:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e8af97e-2507-41b1-be8b-e02eb7c29cc1</guid><dc:creator>who9vy</dc:creator><description>&lt;p&gt;Here is the zephyr.dts of the build directory&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/dts-v1/;

/ {
	#address-cells = &amp;lt; 0x1 &amp;gt;;
	#size-cells = &amp;lt; 0x1 &amp;gt;;
	model = &amp;quot;ShockBurst_Probe&amp;quot;;
	compatible = &amp;quot;jan,shockburst-probe&amp;quot;;
	chosen {
		zephyr,entropy = &amp;amp;rng;
		zephyr,flash-controller = &amp;amp;flash_controller;
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
	};
	aliases {
		led0 = &amp;amp;led0;
		sw0 = &amp;amp;button0;
	};
	soc {
		#address-cells = &amp;lt; 0x1 &amp;gt;;
		#size-cells = &amp;lt; 0x1 &amp;gt;;
		compatible = &amp;quot;nordic,nRF52810-QFAA&amp;quot;, &amp;quot;nordic,nRF52810&amp;quot;, &amp;quot;nordic,nRF52&amp;quot;, &amp;quot;simple-bus&amp;quot;;
		interrupt-parent = &amp;lt; &amp;amp;nvic &amp;gt;;
		ranges;
		nvic: interrupt-controller@e000e100 {
			#address-cells = &amp;lt; 0x1 &amp;gt;;
			compatible = &amp;quot;arm,v7m-nvic&amp;quot;;
			reg = &amp;lt; 0xe000e100 0xc00 &amp;gt;;
			interrupt-controller;
			#interrupt-cells = &amp;lt; 0x2 &amp;gt;;
			arm,num-irq-priority-bits = &amp;lt; 0x3 &amp;gt;;
			phandle = &amp;lt; 0x1 &amp;gt;;
		};
		systick: timer@e000e010 {
			compatible = &amp;quot;arm,armv7m-systick&amp;quot;;
			reg = &amp;lt; 0xe000e010 0x10 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
		};
		ficr: ficr@10000000 {
			compatible = &amp;quot;nordic,nrf-ficr&amp;quot;;
			reg = &amp;lt; 0x10000000 0x1000 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		uicr: uicr@10001000 {
			compatible = &amp;quot;nordic,nrf-uicr&amp;quot;;
			reg = &amp;lt; 0x10001000 0x1000 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		sram0: memory@20000000 {
			compatible = &amp;quot;mmio-sram&amp;quot;;
			reg = &amp;lt; 0x20000000 0x6000 &amp;gt;;
		};
		clock: clock@40000000 {
			compatible = &amp;quot;nordic,nrf-clock&amp;quot;;
			reg = &amp;lt; 0x40000000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x0 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			label = &amp;quot;CLOCK&amp;quot;;
		};
		power: power@40000000 {
			compatible = &amp;quot;nordic,nrf-power&amp;quot;;
			reg = &amp;lt; 0x40000000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x0 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		bprot: bprot@40000000 {
			compatible = &amp;quot;nordic,nrf-bprot&amp;quot;;
			reg = &amp;lt; 0x40000000 0x1000 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		radio: radio@40001000 {
			compatible = &amp;quot;nordic,nrf-radio&amp;quot;;
			reg = &amp;lt; 0x40001000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x1 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			ble-2mbps-supported;
		};
		uart0: uart@40002000 {
			compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
			reg = &amp;lt; 0x40002000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x2 0x1 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			label = &amp;quot;UART_0&amp;quot;;
		};
		i2c0: i2c@40003000 {
			compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
			#address-cells = &amp;lt; 0x1 &amp;gt;;
			#size-cells = &amp;lt; 0x0 &amp;gt;;
			reg = &amp;lt; 0x40003000 0x1000 &amp;gt;;
			clock-frequency = &amp;lt; 0x186a0 &amp;gt;;
			interrupts = &amp;lt; 0x3 0x1 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			label = &amp;quot;I2C_0&amp;quot;;
		};
		spi0: spi@40004000 {
			compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
			#address-cells = &amp;lt; 0x1 &amp;gt;;
			#size-cells = &amp;lt; 0x0 &amp;gt;;
			reg = &amp;lt; 0x40004000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x4 0x1 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			label = &amp;quot;SPI_0&amp;quot;;
		};
		gpiote: gpiote@40006000 {
			compatible = &amp;quot;nordic,nrf-gpiote&amp;quot;;
			reg = &amp;lt; 0x40006000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x6 0x5 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			label = &amp;quot;GPIOTE_0&amp;quot;;
		};
		adc: adc@40007000 {
			compatible = &amp;quot;nordic,nrf-saadc&amp;quot;;
			reg = &amp;lt; 0x40007000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x7 0x1 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			label = &amp;quot;ADC_0&amp;quot;;
			#io-channel-cells = &amp;lt; 0x1 &amp;gt;;
		};
		timer0: timer@40008000 {
			compatible = &amp;quot;nordic,nrf-timer&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
			reg = &amp;lt; 0x40008000 0x1000 &amp;gt;;
			cc-num = &amp;lt; 0x4 &amp;gt;;
			interrupts = &amp;lt; 0x8 0x1 &amp;gt;;
			prescaler = &amp;lt; 0x0 &amp;gt;;
			label = &amp;quot;TIMER_0&amp;quot;;
		};
		timer1: timer@40009000 {
			compatible = &amp;quot;nordic,nrf-timer&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
			reg = &amp;lt; 0x40009000 0x1000 &amp;gt;;
			cc-num = &amp;lt; 0x4 &amp;gt;;
			interrupts = &amp;lt; 0x9 0x1 &amp;gt;;
			prescaler = &amp;lt; 0x0 &amp;gt;;
			label = &amp;quot;TIMER_1&amp;quot;;
		};
		timer2: timer@4000a000 {
			compatible = &amp;quot;nordic,nrf-timer&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
			reg = &amp;lt; 0x4000a000 0x1000 &amp;gt;;
			cc-num = &amp;lt; 0x4 &amp;gt;;
			interrupts = &amp;lt; 0xa 0x1 &amp;gt;;
			prescaler = &amp;lt; 0x0 &amp;gt;;
			label = &amp;quot;TIMER_2&amp;quot;;
			phandle = &amp;lt; 0x2 &amp;gt;;
		};
		rtc0: rtc@4000b000 {
			compatible = &amp;quot;nordic,nrf-rtc&amp;quot;;
			reg = &amp;lt; 0x4000b000 0x1000 &amp;gt;;
			cc-num = &amp;lt; 0x3 &amp;gt;;
			interrupts = &amp;lt; 0xb 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			clock-frequency = &amp;lt; 0x8000 &amp;gt;;
			prescaler = &amp;lt; 0x1 &amp;gt;;
			label = &amp;quot;RTC_0&amp;quot;;
		};
		temp: temp@4000c000 {
			compatible = &amp;quot;nordic,nrf-temp&amp;quot;;
			reg = &amp;lt; 0x4000c000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0xc 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			label = &amp;quot;TEMP_0&amp;quot;;
		};
		rng: random@4000d000 {
			compatible = &amp;quot;nordic,nrf-rng&amp;quot;;
			reg = &amp;lt; 0x4000d000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0xd 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			label = &amp;quot;RNG&amp;quot;;
		};
		ecb: ecb@4000e000 {
			compatible = &amp;quot;nordic,nrf-ecb&amp;quot;;
			reg = &amp;lt; 0x4000e000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0xe 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			label = &amp;quot;ECB&amp;quot;;
		};
		ccm: ccm@4000f000 {
			compatible = &amp;quot;nordic,nrf-ccm&amp;quot;;
			reg = &amp;lt; 0x4000f000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0xf 0x1 &amp;gt;;
			length-field-length-8-bits;
			status = &amp;quot;okay&amp;quot;;
		};
		wdt: wdt0: watchdog@40010000 {
			compatible = &amp;quot;nordic,nrf-wdt&amp;quot;;
			reg = &amp;lt; 0x40010000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x10 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			label = &amp;quot;WDT&amp;quot;;
		};
		rtc1: rtc@40011000 {
			compatible = &amp;quot;nordic,nrf-rtc&amp;quot;;
			reg = &amp;lt; 0x40011000 0x1000 &amp;gt;;
			cc-num = &amp;lt; 0x4 &amp;gt;;
			interrupts = &amp;lt; 0x11 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			clock-frequency = &amp;lt; 0x8000 &amp;gt;;
			prescaler = &amp;lt; 0x1 &amp;gt;;
			label = &amp;quot;RTC_1&amp;quot;;
		};
		qdec: qdec0: qdec@40012000 {
			compatible = &amp;quot;nordic,nrf-qdec&amp;quot;;
			reg = &amp;lt; 0x40012000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x12 0x1 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			label = &amp;quot;QDEC&amp;quot;;
		};
		comp: comparator@40013000 {
			compatible = &amp;quot;nordic,nrf-comp&amp;quot;;
			reg = &amp;lt; 0x40013000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x13 0x1 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			#io-channel-cells = &amp;lt; 0x1 &amp;gt;;
		};
		egu0: swi0: egu@40014000 {
			compatible = &amp;quot;nordic,nrf-egu&amp;quot;, &amp;quot;nordic,nrf-swi&amp;quot;;
			reg = &amp;lt; 0x40014000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x14 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		egu1: swi1: egu@40015000 {
			compatible = &amp;quot;nordic,nrf-egu&amp;quot;, &amp;quot;nordic,nrf-swi&amp;quot;;
			reg = &amp;lt; 0x40015000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x15 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		swi2: swi@40016000 {
			compatible = &amp;quot;nordic,nrf-swi&amp;quot;;
			reg = &amp;lt; 0x40016000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x16 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		swi3: swi@40017000 {
			compatible = &amp;quot;nordic,nrf-swi&amp;quot;;
			reg = &amp;lt; 0x40017000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x17 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		swi4: swi@40018000 {
			compatible = &amp;quot;nordic,nrf-swi&amp;quot;;
			reg = &amp;lt; 0x40018000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x18 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		swi5: swi@40019000 {
			compatible = &amp;quot;nordic,nrf-swi&amp;quot;;
			reg = &amp;lt; 0x40019000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x19 0x1 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		pwm0: pwm@4001c000 {
			compatible = &amp;quot;nordic,nrf-pwm&amp;quot;;
			reg = &amp;lt; 0x4001c000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x1c 0x1 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			label = &amp;quot;PWM_0&amp;quot;;
			#pwm-cells = &amp;lt; 0x3 &amp;gt;;
		};
		pdm0: pdm@4001d000 {
			compatible = &amp;quot;nordic,nrf-pdm&amp;quot;;
			reg = &amp;lt; 0x4001d000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x1d 0x1 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			label = &amp;quot;PDM_0&amp;quot;;
		};
		flash_controller: flash-controller@4001e000 {
			compatible = &amp;quot;nordic,nrf52-flash-controller&amp;quot;;
			reg = &amp;lt; 0x4001e000 0x1000 &amp;gt;;
			partial-erase;
			#address-cells = &amp;lt; 0x1 &amp;gt;;
			#size-cells = &amp;lt; 0x1 &amp;gt;;
			label = &amp;quot;NRF_FLASH_DRV_NAME&amp;quot;;
			flash0: flash@0 {
				compatible = &amp;quot;soc-nv-flash&amp;quot;;
				label = &amp;quot;NRF_FLASH&amp;quot;;
				erase-block-size = &amp;lt; 0x1000 &amp;gt;;
				write-block-size = &amp;lt; 0x4 &amp;gt;;
				reg = &amp;lt; 0x0 0x30000 &amp;gt;;
				partitions {
					compatible = &amp;quot;fixed-partitions&amp;quot;;
					#address-cells = &amp;lt; 0x1 &amp;gt;;
					#size-cells = &amp;lt; 0x1 &amp;gt;;
					boot_partition: partition@0 {
						label = &amp;quot;mcuboot&amp;quot;;
						reg = &amp;lt; 0x0 0xc000 &amp;gt;;
					};
					slot0_partition: partition@c000 {
						label = &amp;quot;image-0&amp;quot;;
						reg = &amp;lt; 0xc000 0xa000 &amp;gt;;
					};
					slot1_partition: partition@16000 {
						label = &amp;quot;image-1&amp;quot;;
						reg = &amp;lt; 0x16000 0xa000 &amp;gt;;
					};
					scratch_partition: partition@20000 {
						label = &amp;quot;image-scratch&amp;quot;;
						reg = &amp;lt; 0x20000 0xa000 &amp;gt;;
					};
					storage_partition: partition@2a000 {
						label = &amp;quot;storage&amp;quot;;
						reg = &amp;lt; 0x2a000 0x6000 &amp;gt;;
					};
				};
			};
		};
		ppi: ppi@4001f000 {
			compatible = &amp;quot;nordic,nrf-ppi&amp;quot;;
			reg = &amp;lt; 0x4001f000 0x1000 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
		};
		gpio0: gpio@50000000 {
			compatible = &amp;quot;nordic,nrf-gpio&amp;quot;;
			gpio-controller;
			reg = &amp;lt; 0x50000000 0x1000 &amp;gt;;
			#gpio-cells = &amp;lt; 0x2 &amp;gt;;
			label = &amp;quot;GPIO_0&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
			port = &amp;lt; 0x0 &amp;gt;;
			phandle = &amp;lt; 0x3 &amp;gt;;
		};
	};
	pinctrl: pin-controller {
		compatible = &amp;quot;nordic,nrf-pinctrl&amp;quot;;
	};
	rng_hci: entropy_bt_hci {
		compatible = &amp;quot;zephyr,bt-hci-entropy&amp;quot;;
		label = &amp;quot;bt_hci_entropy&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
	};
	cpus {
		#address-cells = &amp;lt; 0x1 &amp;gt;;
		#size-cells = &amp;lt; 0x0 &amp;gt;;
		cpu@0 {
			device_type = &amp;quot;cpu&amp;quot;;
			compatible = &amp;quot;arm,cortex-m4&amp;quot;;
			reg = &amp;lt; 0x0 &amp;gt;;
			swo-ref-frequency = &amp;lt; 0x1e84800 &amp;gt;;
		};
	};
	sw_pwm: sw-pwm {
		compatible = &amp;quot;nordic,nrf-sw-pwm&amp;quot;;
		status = &amp;quot;disabled&amp;quot;;
		label = &amp;quot;SW_PWM&amp;quot;;
		generator = &amp;lt; &amp;amp;timer2 &amp;gt;;
		clock-prescaler = &amp;lt; 0x0 &amp;gt;;
		#pwm-cells = &amp;lt; 0x3 &amp;gt;;
	};
	leds {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		led0: led_0 {
			gpios = &amp;lt; &amp;amp;gpio0 0x7 0x1 &amp;gt;;
			label = &amp;quot;Status LED&amp;quot;;
		};
	};
	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt; &amp;amp;gpio0 0xb 0x11 &amp;gt;;
			label = &amp;quot;Button&amp;quot;;
		};
	};
};
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/thread/377431?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 13:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f2e2dbc-9ba9-45c3-96f3-b06aaad5929f</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you build your project for this &amp;quot;shockburst probe&amp;quot; board?&lt;/p&gt;
&lt;p&gt;I&amp;#39;d be interested to see the generated devicetree in your build directory (build/zephyr/zephyr.dts), I think it could help a lot in figuring out what&amp;#39;s going wrong, as this is definitely related to your devicetree setup.&lt;/p&gt;
&lt;p&gt;See this case where someone had a similar issue caused by missing devicetree definitions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/85485/how-to-use-nrf-led-matrix-sample-and-library-from-zephyr-with-nrf-connect-sdk-1-9-1-and-ses-for-use-in-an-app-on-micro-bit-v2"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/85485/how-to-use-nrf-led-matrix-sample-and-library-from-zephyr-with-nrf-connect-sdk-1-9-1-and-ses-for-use-in-an-app-on-micro-bit-v2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/thread/377276?ContentTypeID=1</link><pubDate>Sat, 16 Jul 2022 14:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4206c441-21d4-4809-a3e5-a314d0515a18</guid><dc:creator>who9vy</dc:creator><description>&lt;p&gt;Maybe, it&amp;nbsp; is the easiest way to share the repository.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/oMtQB4/nrf52-shockburst-3d-touch-probe"&gt;https://github.com/oMtQB4/nrf52-shockburst-3d-touch-probe&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are two projects in the project. Currently, I&amp;#39;m only trying to get the ESB_ptx working. Furthermore, there is the board in the repository.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The current error message is as follows (the lines have changed due to changes in the code.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[3/13] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map xxx/build/zephyr/zephyr_pre0.map
: &amp;amp;&amp;amp; ccache /opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=xxx/ESB_ptx/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatali_error.a modules/nrf/subsys/esb/lib..__nrf__subsys__esb.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a modules/segger/libmodules__segger.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L&amp;quot;/opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/thumb/v7e-m/nofp&amp;quot; -Lxxx/ESB_ptx/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -no-pie -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn &amp;amp;&amp;amp; cd xxx/ESB_ptx/build/zephyr &amp;amp;&amp;amp; /opt/homebrew/Cellar/cmake/3.23.2/bin/cmake -E echo
/opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(main.c.obj): in function `button_pressed_cb&amp;#39;:
xxx/ESB_ptx/src/main.c:170: undefined reference to `__device_dts_ord_10&amp;#39;
/opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(main.c.obj): in function `main&amp;#39;:
xxx/ESB_ptx/src/main.c:245: undefined reference to `__device_dts_ord_10&amp;#39;
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.0.0/bin/cmake --build xxx/ESB_ptx/build&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Currently, NRF Connect SDK 2.0.0 is used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/thread/377124?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 08:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e90b00e1-b382-445b-925a-ac4fbf7c9efb</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;I would suspect the error to be caused by something in your &amp;#39;button_pressed&amp;#39; function unsuccessfully accessing the devicetree.&lt;/p&gt;
&lt;p&gt;Could you please share your main c file?&lt;/p&gt;
&lt;p&gt;If there&amp;#39;s a zephyr.dts file generated in your build/zephyr directory, this could also be interesting to have a look at.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/thread/377041?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 18:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1729cb9a-20e7-4d3b-a47c-f75e9b32c6c0</guid><dc:creator>who9vy</dc:creator><description>&lt;p&gt;Sorry, for the bad format&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/thread/377040?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 18:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00f55f3f-c06e-4110-9b47-82f4c57dc4a9</guid><dc:creator>who9vy</dc:creator><description>&lt;p&gt;Hi, Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Yes, btn_prs is defined. As I noted, the code does work with the Thingy52 (and with the nrf52 DK). There is one further difference. The board I created is based on the nRF52810 and the others on the nRF52832. But why these errors appear? And is there a guide how to debug such errors?&lt;/p&gt;
&lt;p&gt;The static const struct gpio_dt_spec led is from the esb_ptx example (&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/esb/ptx/src/main.c"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/esb/ptx/src/main.c&lt;/a&gt;). Since I only use one LED, I removed the other 3 of them.&lt;/p&gt;
&lt;p&gt;The dts part of my question is from the board dts file. Here is the complete file:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/dts-v1/;
#include &amp;lt;nordic/nrf52810_qfaa.dtsi&amp;gt;

/ {
	model = &amp;quot;XXX&amp;quot;;
	compatible = &amp;quot;xxx,example&amp;quot;;

	chosen {
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
	};

  aliases {
    led0 = &amp;amp;led0;
    sw0 = &amp;amp;button0;
  };

  leds {
      compatible = &amp;quot;gpio-leds&amp;quot;;
      led0: led_0 {
              gpios = &amp;lt;&amp;amp;gpio0 7 GPIO_ACTIVE_LOW&amp;gt;;
              label = &amp;quot;Red LED&amp;quot;;
      };
  };

  buttons {
      compatible = &amp;quot;gpio-keys&amp;quot;;
      button0: button_0 {
              gpios = &amp;lt;&amp;amp;gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
              label = &amp;quot;Button&amp;quot;;
      };
  };
};

&amp;amp;gpio0 {
  status = &amp;quot;okay&amp;quot;;
};    

&amp;amp;flash0 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = ;
		#size-cells = ;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = ;
		};
		slot0_partition: partition@c000 {
			label = &amp;quot;image-0&amp;quot;;
			reg = ;
		};
		slot1_partition: partition@16000 {
			label = &amp;quot;image-1&amp;quot;;
			reg = ;
		};
		scratch_partition: partition@20000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = ;
		};
		storage_partition: partition@2a000 {
			label = &amp;quot;storage&amp;quot;;
			reg = ;
		};
	};
};
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the error message:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[146/157] Linking C static library app/libapp.a&lt;br /&gt;[147/157] Linking C executable zephyr/zephyr_pre0.elf&lt;br /&gt;FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map &lt;br /&gt;: &amp;amp;&amp;amp; ccache /opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=xxx/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/subsys/esb/lib..__nrf__subsys__esb.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a modules/segger/libmodules__segger.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L&amp;quot;/opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/thumb/v7e-m/nofp&amp;quot; -Lxxx/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -no-pie -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn &amp;amp;&amp;amp; cd xxx/build/zephyr &amp;amp;&amp;amp; /opt/nordic/ncs/toolchains/v2.0.0/Cellar/cmake/3.20.5/bin/cmake -E echo&lt;br /&gt;/opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(main.c.obj): in function `button_pressed&amp;#39;:&lt;br /&gt;xxx/src/main.c:179: undefined reference to `__device_dts_ord_10&amp;#39;&lt;br /&gt;/opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(main.c.obj): in function `main&amp;#39;:&lt;br /&gt;xxx/src/main.c:254: undefined reference to `__device_dts_ord_10&amp;#39;&lt;br /&gt;collect2: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.0.0/bin/cmake --build xxx/build&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;That is the error message. &lt;strong&gt;Fun fact:&lt;/strong&gt; The second error at line 254 cannot happen there because there is no line 254 in main.c. There are only 249 lines.&lt;/p&gt;
&lt;p&gt;Thank you very much and best regards&lt;/p&gt;
&lt;p&gt;Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug undefined reference to __device_dts_ord_XX errors?</title><link>https://devzone.nordicsemi.com/thread/376986?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 13:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd29993e-8e13-4c3e-b99a-fbf6a003f2ec</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Could you please share the error output?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Other than that:&lt;/p&gt;
&lt;p&gt;how have you defined btn_prs?&lt;/p&gt;
&lt;p&gt;where did you get the idea of defining &amp;quot;led&amp;quot; as&amp;nbsp;&lt;em&gt;static&amp;nbsp;const&amp;nbsp;struct&lt;/em&gt;&lt;span&gt;&lt;em&gt;&amp;nbsp;gpio_dt_spec&lt;/em&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;normally I would expect to see something like &lt;em&gt;#define LED DT_ALIAS(led0)&lt;/em&gt;, i&amp;#39;ve also seen&amp;nbsp;&lt;em&gt;struct gpio_dt_spec&lt;/em&gt; led.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I assume this devicetree code you&amp;#39;ve shared is in an overlay file that gets picked up by the build system?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Einar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>