<?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>Failed to build due to &amp;quot;identifier &amp;quot;DT_N_S_soc_S_spi_40003000_P_clock_frequency&amp;quot; is undefined&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112285/failed-to-build-due-to-identifier-dt_n_s_soc_s_spi_40003000_p_clock_frequency-is-undefined</link><description>I am working with nRF52840 with MAX86141 and learning how to setup the SPI connection 
 Here is an opensource example : https://github.com/JON95Git/zephyr-spi-directly 
 And when I try to build, it has some errors 
 
 My overlay details 
 
 /* 
 * nRF52840_mdk</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jun 2024 15:44:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112285/failed-to-build-due-to-identifier-dt_n_s_soc_s_spi_40003000_p_clock_frequency-is-undefined" /><item><title>RE: Failed to build due to "identifier "DT_N_S_soc_S_spi_40003000_P_clock_frequency" is undefined"</title><link>https://devzone.nordicsemi.com/thread/491169?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 15:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fbdac28-6392-4de2-b735-8ba956f3db08</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;As I learn more on nrf chip, i think is just happened due to different version of ncs package which has impact on the device tree. I did not spot out any obvious errors from my code. Going to close this first. Follow the latest example from ncs tutorial.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to build due to "identifier "DT_N_S_soc_S_spi_40003000_P_clock_frequency" is undefined"</title><link>https://devzone.nordicsemi.com/thread/489832?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 03:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3123c564-6133-40f6-8f54-bf4eb4d0089c</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;Yes, i have completed the course, and I am following that right now. But when I try to use what I learnt to debug this code, it does not work as expected. So i post here to check if anyone has a similar issue and knows the reason. then it will help my further development.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to build due to "identifier "DT_N_S_soc_S_spi_40003000_P_clock_frequency" is undefined"</title><link>https://devzone.nordicsemi.com/thread/489757?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 13:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f4798f3-ca70-433f-94d5-1078cda7edcc</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It looks like you want to add this sensor&amp;nbsp;&lt;span&gt;MAX86141 as a slave device under SPI0. But You have not defined this in device tree. I would like to recommend you look at the SPI chapter of NCS Intermediate course.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to build due to "identifier "DT_N_S_soc_S_spi_40003000_P_clock_frequency" is undefined"</title><link>https://devzone.nordicsemi.com/thread/489698?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 11:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64353fd5-dbf1-40cb-a4b5-3c57447c0d43</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;I did not manage to find the errors in my overlay file , may i know if you are referring to any example/ tutorial ? cuz i did not see this DT_PROP in the sample files alr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to build due to "identifier "DT_N_S_soc_S_spi_40003000_P_clock_frequency" is undefined"</title><link>https://devzone.nordicsemi.com/thread/489657?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 09:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:637747ee-33bb-492f-8342-85ff3c8f49ab</guid><dc:creator>smul</dc:creator><description>&lt;p&gt;Hi, I don&amp;#39;t have the direct answer for you, but these pages might be worth a read:&lt;/p&gt;
&lt;p&gt;Scroll down for an SPI example&lt;br /&gt;&lt;a href="https://docs.zephyrproject.org/latest/build/dts/howtos.html#use-devicetree-overlays"&gt;https://docs.zephyrproject.org/latest/build/dts/howtos.html#use-devicetree-overlays &lt;br /&gt;&lt;/a&gt;&lt;br /&gt;and&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.zephyrproject.org/latest/kernel/drivers/index.html"&gt;https://docs.zephyrproject.org/latest/kernel/drivers/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In my implementation I use a macro&lt;br /&gt; &lt;pre class="ui-code" data-mode="c_cpp"&gt;#define MY_SPI  DT_PROP(DT_NODELABEL(spi2), label)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>