<?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>Undefined initialization levels used</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100895/undefined-initialization-levels-used</link><description>minimal_log_spi$ west build -b custom_nrf52832 
 [235/256] Linking C executable zephyr/zephyr_pre0.elf FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map : &amp;amp;&amp;amp; ccache /home/henry/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Jun 2023 14:09:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100895/undefined-initialization-levels-used" /><item><title>RE: Undefined initialization levels used</title><link>https://devzone.nordicsemi.com/thread/431534?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 14:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dcfaade-1a5d-4a80-9c62-34b07c945ac2</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
[quote user=""]/home/henry/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(flash_nor.c.obj):(.rodata.spi_nor_config_0+0x0): undefined reference to `__device_dts_ord_91&amp;#39;[/quote]
&lt;p&gt;This sort of error usually means something is wrong with your devicetree. Since you seem to be using a custom board I would assume the error could come from your board definition.&lt;/p&gt;
&lt;p&gt;You can have a look at the generated devicetree in &lt;code&gt;build/zephyr/zephyr.dts&lt;/code&gt; to see if anything isn&amp;#39;t as expected. The error mentions &lt;code&gt;flash_nor.c&lt;/code&gt; and &lt;code&gt;spi_nor_config&lt;/code&gt;, so anything related to flash or&amp;nbsp;spi would be a good place to start.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;../src/flash_nor.c: In function &amp;#39;spi_nor_process_sfdp&amp;#39;:&lt;/code&gt;&lt;br /&gt;&lt;code&gt;../src/flash_nor.c:1031:16: warning: &amp;#39;rc&amp;#39; is used uninitialized [-Wuninitialized]&lt;/code&gt;&lt;br /&gt;&lt;code&gt; 1031 | return rc;&lt;/code&gt;&lt;br /&gt;&lt;code&gt; | ^~&lt;/code&gt;&lt;br /&gt;&lt;code&gt;../src/flash_nor.c:958:13: note: &amp;#39;rc&amp;#39; was declared here&lt;/code&gt;&lt;br /&gt;&lt;code&gt; 958 | int rc;&lt;/code&gt;&lt;br /&gt;&lt;code&gt; | ^~&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Looks like specifically what happens with &lt;code&gt;rc&lt;/code&gt; in &lt;code&gt;flash_nor.c&lt;/code&gt; would be a good place to start.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefined initialization levels used</title><link>https://devzone.nordicsemi.com/thread/431506?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 13:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:343cb581-fb1e-40c4-9e0c-a6f18e278ff3</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefined initialization levels used</title><link>https://devzone.nordicsemi.com/thread/431390?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 01:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:844b96ba-84c4-4ac1-907d-8ad9dbd9242e</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5444.custom_5F00_nrf52832.zip"&gt;devzone.nordicsemi.com/.../5444.custom_5F00_nrf52832.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefined initialization levels used</title><link>https://devzone.nordicsemi.com/thread/431389?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 01:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dc3df6a-95f6-413e-b675-c98a557f5033</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/minimal_5F00_log_5F00_spi.zip"&gt;devzone.nordicsemi.com/.../minimal_5F00_log_5F00_spi.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefined initialization levels used</title><link>https://devzone.nordicsemi.com/thread/431388?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 01:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1f1059d-a3a6-47c0-8b39-08827e19232d</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1004.Undefined_5F00_initialization_5F00_levels_5F00_used.txt"&gt;devzone.nordicsemi.com/.../1004.Undefined_5F00_initialization_5F00_levels_5F00_used.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>