<?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>macro deprecated DT_INST_FOREACH_STATUS_OKAY</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75662/macro-deprecated-dt_inst_foreach_status_okay</link><description>Quite a few drivers use this deprecated macro. For example bme280. 
 It was OK on ncs v1.4 but throwing warning on v1.5 
 Solution?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 May 2021 07:19:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75662/macro-deprecated-dt_inst_foreach_status_okay" /><item><title>RE: macro deprecated DT_INST_FOREACH_STATUS_OKAY</title><link>https://devzone.nordicsemi.com/thread/312277?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 07:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60094d94-0d82-464f-a6bd-e7095ec75174</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx Simon,&lt;/p&gt;
&lt;p&gt;Must be something about the board I&amp;#39;m using.&amp;nbsp; I could also build the bme280 example.&amp;nbsp; Needs further investigation.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: macro deprecated DT_INST_FOREACH_STATUS_OKAY</title><link>https://devzone.nordicsemi.com/thread/311913?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 21:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0aad7da-b135-4db8-950e-47d191c02399</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce this. I did the following&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Used NCS v1.5.0&lt;/li&gt;
&lt;li&gt;Added the file&amp;nbsp;nrf9160dk_nrf9160ns.overlay to&amp;nbsp;zephyr\samples\sensor\bme280\boards,&amp;nbsp;with the same content showed in&amp;nbsp;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-3-ncs-v1-4-0#h79sk0f70607qwcyitkx2xn61bmh9mo"&gt;1.2 Walkthrough for BME280&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Built the sample&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;zephyr\samples\sensor\bme280 for the board nrf9160dk_nrf9160ns and g&lt;/span&gt;ot no warnings:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ west build -b nrf9160dk_nrf9160ns
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/Users/Simon/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280
-- Using NCS Toolchain 1.5.0 for building. (C:/Users/Simon/ncs/v1.5.0/toolchain/cmake)
-- Zephyr version: 2.4.99 (C:/Users/Simon/ncs/v1.5.0/zephyr)
-- Found Python3: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Found west (found suitable version &amp;quot;0.9.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0
-- Cache files will be written to: C:/Users/Simon/ncs/v1.5.0/zephyr/.cache
-- Found dtc: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: gnuarmemb (C:/Users/Simon/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
-- Found devicetree overlay: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/boards/nrf9160dk_nrf9160ns.overlay
-- Generated zephyr.dts: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/include/generated/device_extern.h
Parsing C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/Kconfig
Loaded configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig&amp;#39;
Merged configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_0_7_0.conf&amp;#39;
Merged configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/prj.conf&amp;#39;
Configuration saved to &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Changed board to secure nrf9160dk_nrf9160 (NOT NS)

=== child image spm -  begin ===
Including boilerplate (Zephyr base): C:/Users/Simon/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/Simon/ncs/v1.5.0/nrf/samples/spm
-- Using NCS Toolchain 1.5.0 for building. (C:/Users/Simon/ncs/v1.5.0/toolchain/cmake)
-- Zephyr version: 2.4.99 (C:/Users/Simon/ncs/v1.5.0/zephyr)
-- Found Python3: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Found west (found suitable version &amp;quot;0.9.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf9160dk_nrf9160, Revision: 0.7.0
-- Cache files will be written to: C:/Users/Simon/ncs/v1.5.0/zephyr/.cache
-- Found dtc: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: gnuarmemb (C:/Users/Simon/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: C:/Users/Simon/ncs/v1.5.0/nrf/samples/spm/nrf9160dk_nrf9160.overlay
-- Generated zephyr.dts: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/include/generated/device_extern.h
Parsing C:/Users/Simon/ncs/v1.5.0/zephyr/Kconfig
Loaded configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig&amp;#39;
Merged configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_0_7_0.conf&amp;#39;
Merged configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/nrf/samples/spm/prj.conf&amp;#39;
Merged configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/nrf/samples/spm/boards/nrf9160dk_nrf9160.conf&amp;#39;
Merged configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm
=== child image spm -  end ===

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build
-- west build: building application
[5/165] Performing build step for &amp;#39;spm_subimage&amp;#39;
[196/201] Linking C executable zephyr\zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:         32 KB        48 KB     66.67%
            SRAM:        8648 B        64 KB     13.20%
        IDT_LIST:          72 B         2 KB      3.52%
[201/201] Linking C executable zephyr\zephyr.elf
[159/165] Linking C executable zephyr\zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       30340 B       976 KB      3.04%
            SRAM:        6608 B       192 KB      3.36%
        IDT_LIST:         104 B         2 KB      5.08%
[165/165] Generating zephyr/merged.hex
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you tell me how to reproduce it?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>