<?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>Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123976/building-a-connect-sdk-v1-9-project</link><description>Hello, 
 I am working on a project which was previously developed by another person, and am struggling to setup the development environment. The project was built on nRF Connect SDK v1.9, and I need to be able to recompile the firmware as-is due to time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Jan 2026 17:45:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123976/building-a-connect-sdk-v1-9-project" /><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/558918?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2026 17:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:926db73f-3586-464f-8511-921be74ff51e</guid><dc:creator>Adamcs</dc:creator><description>&lt;p&gt;Sorry for the late replay. I managed to get past this issue after enough trial and error, though I&amp;#39;m not entirely sure what I did differently. I was going through the dev academy lessons and I think they helped my general understanding as well. Thanks Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547650?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 13:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d86349d0-1ea0-4001-94df-41cd5c13a4a8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you run the command &amp;quot;west update&amp;quot; after adding this to the west.yml file? Is the external driver added at all (physically, in the path that you selected)?&lt;/p&gt;
&lt;p&gt;I only tested this once before, following this guide:&lt;br /&gt;&lt;a href="https://github.com/Protocentral/protocentral_max30001_zephyr_driver"&gt;https://github.com/Protocentral/protocentral_max30001_zephyr_driver&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Perhaps try putting it in the modules folder, and give it a name that doesn&amp;#39;t already exist in Zephyr.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547524?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 14:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a5abe20-046b-4b46-8adf-e823ab68d718</guid><dc:creator>Adamcs</dc:creator><description>&lt;p&gt;Thanks, upon changing the &lt;span&gt;LIS3MDL&lt;/span&gt;&amp;nbsp;compatible field to &amp;quot;st,lis3mdl-magn&amp;quot; the build will no longer throw an error.&lt;/p&gt;
&lt;p&gt;However, I now realize that the issue appears to be due to the project using a custom driver.&lt;br /&gt;Here are the contents of the project&amp;#39;s&amp;nbsp;west.yml file.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;manifest:
  remotes:
    - name: nrfconnect
      url-base: https://github.com/nrfconnect
  projects:
    - name: nrf
      repo-path: sdk-nrf
      remote: nrfconnect
      revision: v1.9.0
      import: true
    # LIS3MDL driver
    - name: lis3mdl
      path: lis3mdl
      revision: main
      url: https://github.com/circuitdojo/lis3mdl-zephyr.git
  self:
    # This repository should be cloned to 
    path: wmv2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This custom LIS3MDL driver appears to use&amp;nbsp;&lt;span&gt;&amp;quot;st,lis3mdl&amp;quot; instead of the official&amp;nbsp;&amp;quot;st,lis3mdl-magn&amp;quot; compatible value. How can I determine where &amp;quot;DT_N_INST_0_st_lis3mdl_magn_REG_IDX_0_VAL_ADDRESS&amp;quot; is missing?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I tell if west is even pulling in the custom driver from github to begin with? I tested changing the compatible field to something random, i.e.&amp;nbsp;&lt;span&gt;&amp;quot;st,lis3mdl-abcd&amp;quot;, and I can reproduce the same error. It appears that the LIS3MDL driver defined in west.yml is not being used.&lt;pre class="ui-code" data-mode="text"&gt;C:/wmtest/zephyr/drivers/sensor/lis3mdl/lis3mdl.c: In function &amp;#39;lis3mdl_sample_fetch&amp;#39;:
C:/wmtest/zephyr/include/devicetree.h:305:40: error: &amp;#39;DT_N_INST_0_st_lis3mdl_magn_REG_IDX_0_VAL_ADDRESS&amp;#39; undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Edit: I tested renaming c:\west\zephyr\drivers\sensor\lis3mdl and I can confirm that the build process is trying to use the default LIS3MDL driver instead of the custom one from west.yml.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547330?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 12:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:744294c5-b9c7-4f86-91ed-f806112d892c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry, I read that a little fast. I thought you wanted to port the entire application to NCS v3.X.X.&lt;/p&gt;
&lt;p&gt;Either way, note that in the course, you can select the NCS version on top (in those places where the NCS versions affect the behavior):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1756715982024v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, looking at your project, it seems you are using the wrong &amp;quot;compatible&amp;quot; for the lis3mdl. Try this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c2 {
	status = &amp;quot;okay&amp;quot;;
	label = &amp;quot;I2C_2&amp;quot;;
	sda-pin = &amp;lt; 0x1e &amp;gt;;
	scl-pin = &amp;lt; 0x1f &amp;gt;;

	lis3mdl: lis3mdl@1e {
		compatible = &amp;quot;st,lis3mdl-magn&amp;quot;;
		reg = &amp;lt;0x1e&amp;gt;;
		label = &amp;quot;LIS3MDL&amp;quot;;
        irq-gpios = &amp;lt;&amp;amp;gpio0 20 GPIO_ACTIVE_HIGH&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that I also stripped away some of the i2c configurations, such as the &amp;quot;compatible&amp;quot;, &amp;quot;reg&amp;quot;, &amp;quot;clock-frequency&amp;quot;, as they are no different than the default configuration from the board files. You only need to include the parts that you want to change in your .overlay files (but it doesn&amp;#39;t harm either, so it is up to you).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547220?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2025 18:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd5ca4d-4b68-4b2c-95d7-e98cb4bf1167</guid><dc:creator>Adamcs</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the resources, I will be sure to go over them once I have sufficient time to begin the migration process.&lt;/p&gt;
&lt;p&gt;Just to reiterate, the issue&amp;nbsp;is that we have a legacy project which was built for SDK v1.9.X but we need to make some minor&amp;nbsp; changes to the application logic. The instructions which were left for how to build the project do not appear to be working, as myself and another colleague both are hitting build errors.&lt;/p&gt;
&lt;p&gt;Is there any documentation specifically regarding lis3mdl usage in SDK v1.9.0?&lt;br /&gt;I can see lis3mdl listed in the link below, but when I click it I&amp;#39;m seeing a 404 page not found.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-1.9.0/page/zephyr/reference/devicetree/bindings.html#dt-vendor-st"&gt;docs.nordicsemi.com/.../bindings.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This appears to be the current error which is being hit.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/wmtest/zephyr/drivers/sensor/lis3mdl/lis3mdl.c: In function &amp;#39;lis3mdl_sample_fetch&amp;#39;:
C:/wmtest/zephyr/include/devicetree.h:305:40: error: &amp;#39;DT_N_INST_0_st_lis3mdl_magn_REG_IDX_0_VAL_ADDRESS&amp;#39; undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547219?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2025 18:26:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed8e7e41-7b75-4164-ad2b-42e4acd571e6</guid><dc:creator>Adamcs</dc:creator><description>&lt;p&gt;That&amp;#39;s what I have in main.c from the test project I attached in my follow up post. The build output spits out quite a bit, but it seems to stem from this specific error earlier in the process.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/wmtest/zephyr/drivers/sensor/lis3mdl/lis3mdl.c: In function &amp;#39;lis3mdl_sample_fetch&amp;#39;:
C:/wmtest/zephyr/include/devicetree.h:305:40: error: &amp;#39;DT_N_INST_0_st_lis3mdl_magn_REG_IDX_0_VAL_ADDRESS&amp;#39; undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547206?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2025 13:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e52867be-f9a8-4e7b-96c5-8ca1c8a7b674</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for jumping in late. NCS v1.9.X -&amp;gt; v3.1.0 is a long jump. A lot have happened in that time, modules like pinctrl and sysbuild have been added. I believe these are the two biggest changes between these NCS versions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I strongly recommend that you look into the &lt;a href="https://academy.nordicsemi.com/"&gt;Nordic Developer Academy&lt;/a&gt;. The very first course, &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;nRF Connect SDK Fundamentals&lt;/a&gt;&amp;nbsp;has a lesson on &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/"&gt;I2C&lt;/a&gt;. Look at that one in particular to see how to set up your devicetree after pinctrl was introduced. But feel free to at least peek trough the first couple of lessons as well, to familiarize yourself with NCS, if you haven&amp;#39;t used it much before.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547134?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2025 05:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8bdff72-5510-4495-843e-7ac4c4f162c3</guid><dc:creator>mackz</dc:creator><description>&lt;p&gt;based on the overlay you posted:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c2 {
	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; 0xa000 0x1000 &amp;gt;;
	clock-frequency = &amp;lt; 0x61a80 &amp;gt;;
	interrupts = &amp;lt; 0xa 0x1 &amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	label = &amp;quot;I2C_2&amp;quot;;
	sda-pin = &amp;lt; 0x1e &amp;gt;;
	scl-pin = &amp;lt; 0x1f &amp;gt;;

	lis3mdl: lis3mdl@1e {
		compatible = &amp;quot;st,lis3mdl&amp;quot;;
		reg = &amp;lt;0x1e&amp;gt;;
		label = &amp;quot;LIS3MDL&amp;quot;;
        irq-gpios = &amp;lt;&amp;amp;gpio0 20 GPIO_ACTIVE_HIGH&amp;gt;;
	};
};&lt;/pre&gt;&lt;br /&gt;I think you should do:&lt;br /&gt;const struct device *mag = DEVICE_DT_GET(DT_NODELABEL(lis3mdl));&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547115?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 20:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d3c26d3-75ac-468a-9ff0-de7d04437500</guid><dc:creator>Adamcs</dc:creator><description>&lt;p&gt;Okay it looks like I may have not properly set things up originally, I never specified v1.9.0 when issuing west init. I&amp;#39;ve tried changing the procedure as follows, and I no longer get early device tree overlay errors, but unfortunately still fails to build.&lt;/p&gt;
&lt;p&gt;0.&amp;nbsp;clone project repo/copy sample to c:\test&lt;br /&gt;1.&amp;nbsp;make c:\west&lt;br /&gt;2. cd c:\west&lt;br /&gt;3. west init -m&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf"&gt;https://github.com/nrfconnect/sdk-nrf&lt;/a&gt;&amp;nbsp;--mr v1.9.0&lt;br /&gt;4. west update&lt;br /&gt;5.&amp;nbsp;west build -b nrf9160dk_nrf9160_ns -s c:\test --pristine&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached a minimal complete reproducible project if someone else can test out the procedure as well. I used the hello-world sample as a basis, and then modified main.c&amp;nbsp;to add some calls to DEVICE_DT_GET(...). When I test trying to get &amp;quot;sw0&amp;quot;, I have no issues building. When I test trying to get &amp;quot;lis3mdl&amp;quot; then there are a bunch of warnings and errors (see output.txt).&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;test project:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6153.test.zip"&gt;devzone.nordicsemi.com/.../6153.test.zip&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;build output:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1205.output.txt"&gt;devzone.nordicsemi.com/.../1205.output.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547100?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 14:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5c557d-bccb-4aa2-aadc-eb850c2058d5</guid><dc:creator>Adamcs</dc:creator><description>&lt;p&gt;Thanks for pointing me in the right direction, it does appear to be related to the project overlay(s).&lt;/p&gt;
&lt;p&gt;Here are relevant snippets from the overlay which appear to be triggering the errors.&lt;/p&gt;
&lt;hr /&gt;
&lt;p style="padding-left:30px;"&gt;devicetree error: &amp;#39;sda-pin&amp;#39; appears in /soc/peripheral@40000000/i2c@a000 in C:/wm2build/zephyr/zephyr.dts.pre, but is not declared in &amp;#39;properties:&amp;#39; in C:/wm2/zephyr/dts/bindings\i2c\nordic,nrf-twim.yaml&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c2 {
	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; 0xa000 0x1000 &amp;gt;;
	clock-frequency = &amp;lt; 0x61a80 &amp;gt;;
	interrupts = &amp;lt; 0xa 0x1 &amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	label = &amp;quot;I2C_2&amp;quot;;
	sda-pin = &amp;lt; 0x1e &amp;gt;;
	scl-pin = &amp;lt; 0x1f &amp;gt;;

	lis3mdl: lis3mdl@1e {
		compatible = &amp;quot;st,lis3mdl&amp;quot;;
		reg = &amp;lt;0x1e&amp;gt;;
		label = &amp;quot;LIS3MDL&amp;quot;;
        irq-gpios = &amp;lt;&amp;amp;gpio0 20 GPIO_ACTIVE_HIGH&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p style="padding-left:30px;"&gt;devicetree error: &amp;#39;ch0-pin&amp;#39; appears in /soc/peripheral@40000000/pwm@21000 in C:/wm2build/zephyr/zephyr.dts.pre, but is not declared in &amp;#39;properties:&amp;#39; in C:/wm2/zephyr/dts/bindings\pwm\nordic,nrf-pwm.yaml&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pwm0 {
	status = &amp;quot;okay&amp;quot;;
	ch0-pin = &amp;lt;2&amp;gt;;
	ch1-pin = &amp;lt;3&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p style="padding-left:30px;"&gt;devicetree error: missing data after phandle in &amp;lt;Property &amp;#39;pwms&amp;#39; on /pwmleds0/pwm_led_0 in C:/wm2/boards/nrf9160dk_nrf9160_ns.overlay:58&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;pwmleds0 {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led0: pwm_led_0 {
			pwms = &amp;lt;&amp;amp;pwm0 2&amp;gt;;
		};
	};

	pwmleds1 {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led1: pwm_led_1 {
			pwms = &amp;lt;&amp;amp;pwm0 3&amp;gt;;
		};
	};&lt;/pre&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I can remove those blocks from the overlay to get around the above errors. My assumption was that the project would be in a buildable state&amp;nbsp;given the correct SDKs are setup. Could it be that the overlay was meant for a different version of nRF Connect SDK and/or Zephyr?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a Connect SDK v1.9 project</title><link>https://devzone.nordicsemi.com/thread/547015?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 07:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c2fa71-4bb3-455f-a7a2-60f872fb1206</guid><dc:creator>mackz</dc:creator><description>&lt;p&gt;What is in the&amp;nbsp;C:/wm2/boards/nrf9160dk_nrf9160_ns.overlay? Seems like the error comes from that file&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>