<?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>SPI build error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105308/spi-build-error</link><description>Why am i getting this error ? 
 
 SDK 2.4.2 
 
 CONFIG_SPI =y 
 
 
 CONFIG_FLASH =y 
 
 dts file as follows 
 
 &amp;amp; spi0 { 
 compatible = &amp;quot;nordic,nrf-spim&amp;quot; ; 
 
 status = &amp;quot;okay&amp;quot; ; 
 pinctrl-0 = &amp;lt; &amp;amp; spi0_default &amp;gt;; 
 pinctrl-1 = &amp;lt; &amp;amp; spi0_sleep &amp;gt;; 
 pinctrl</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Nov 2023 21:12:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105308/spi-build-error" /><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/455849?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 21:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f2dcfc3-6707-4020-b205-0e9595fbdabc</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To use nrf-spin with custom nRF52832, it also needs to add &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58"&gt;CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58&lt;/a&gt;=y and CONFIG_NRFX_PPI=y (for use anomaly_58_workaround_init function) in the prj.conf.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;We added a warning that this PAN needs to be enabled when using SPIM on the 52832 since&amp;nbsp;NCS v2.5.0.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454846?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 08:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbd9f8d7-58d4-43bd-be46-21359f67c0b8</guid><dc:creator>sleeper</dc:creator><description>&lt;p&gt;thats not what i mean.....&amp;nbsp;&lt;/p&gt;
&lt;p&gt;using nrf-spim on 52833 works ok, so why does it not work on 832 ?&lt;/p&gt;
&lt;p&gt;please provide documents/links that show info as to why this is so.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454785?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 21:14:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bb8022f-e1f1-43eb-9322-0aa6177fe71e</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;nrf-spi and nrf-spim would trigger different driver configs. You can compare&amp;nbsp; .config under build/zephyr with&amp;nbsp;&lt;span&gt;nrf-spi /nrf-spim.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454754?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 16:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27cfef7-655a-4a78-a6ef-8b908bb26ac8</guid><dc:creator>sleeper</dc:creator><description>&lt;p&gt;that works, why nrf-spi ? and not spim ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454750?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 16:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc90263e-c4d1-49a8-95bc-0c8fe9c734d4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Add&amp;nbsp;CONFIG_SPI=y to prj.conf and update&amp;nbsp;wedge_lc.overlay as&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi0 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 9 GPIO_ACTIVE_LOW&amp;gt;;
//	cs-gpios = &amp;lt;&amp;amp;gpio0 9 GPIO_ACTIVE_LOW&amp;gt;, 
//			   &amp;lt;&amp;amp;gpio0 19 GPIO_ACTIVE_LOW&amp;gt;;

	spi_at25ff161: spi_at25ff161@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
//		irq-gpios = &amp;lt;&amp;amp;gpio0 21 0&amp;gt;;
		spi-max-frequency = &amp;lt;8000000&amp;gt;;
//        label = &amp;quot;W25Q64JV&amp;quot;;
        size = &amp;lt;0x4000000&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt;10000&amp;gt;;
		t-exit-dpd = &amp;lt;30000&amp;gt;;
        jedec-id = [1F 46 08];
		wp-gpios = &amp;lt;&amp;amp;gpio0 10 GPIO_ACTIVE_LOW&amp;gt;;
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454707?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 14:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:186fbeb2-2c20-4d2c-ab19-2b38572791b9</guid><dc:creator>sleeper</dc:creator><description>&lt;p&gt;anything ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454470?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 13:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8022667-1d23-4cba-96d6-a34f829e3a01</guid><dc:creator>sleeper</dc:creator><description>&lt;p&gt;Attached is the project&lt;/p&gt;
&lt;p&gt;Hello World is the project, this is using a custom board call wedge lc (in board folder)&lt;/p&gt;
&lt;p&gt;What i would also like is for you to clearly explain when to put config in defconfig file and when to use the prj.conf file ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vscode.zip"&gt;devzone.nordicsemi.com/.../vscode.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454464?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 13:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:117e91af-d49a-41c8-9075-236597cbe5aa</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="sleeper"]undefined reference to `__device_dts_ord_80&amp;#39;[/quote]
&lt;p&gt;For me, it seems the device tree doesn&amp;#39;t set correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you work with nRF52DK? Could you share the project?&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454356?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 08:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df985b54-9e5a-45b3-a348-4360103cd987</guid><dc:creator>sleeper</dc:creator><description>&lt;p&gt;Sorry but your answer is very non-discript....&lt;/p&gt;
&lt;p&gt;Can you explain to me what the issue is ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454321?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 22:11:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17846902-9229-43ef-a917-e5773019a061</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please refer to&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ff85910bf8ed1aac0571bca0e7f206782234efbb/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.overlay"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/ff85910bf8ed1aac0571bca0e7f206782234efbb/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.overlay&lt;/a&gt;&amp;nbsp;to check the overlay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/454138?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 09:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ef6df94-9d87-439b-8266-ad55fc116fa5</guid><dc:creator>sleeper</dc:creator><description>&lt;p&gt;attached is the dts file with config&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;still get this&amp;nbsp;warning&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CMake Warning at C:/ncs/v2.4.2/zephyr/CMakeLists.txt:839 (message):&lt;br /&gt; No SOURCES given to Zephyr library: drivers__spi&lt;/p&gt;
&lt;p&gt;Excluding target from build.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;along with this failed build&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wedge_5F00_lc_5F00_defconfig.txt"&gt;devzone.nordicsemi.com/.../wedge_5F00_lc_5F00_defconfig.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[175/185] Linking C executable zephyr\zephyr_pre0.elf&lt;br /&gt;FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map &lt;br /&gt;cmd.exe /C &amp;quot;cd . &amp;amp;&amp;amp; C:\ncs\toolchains\31f4403e35\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf -fuse-ld=bfd -T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=C:/Users/IMS_DEV/Documents/vscode/projects/hello_world/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/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/flash/libdrivers__flash.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a zephyr/drivers/pwm/libdrivers__pwm.a zephyr/drivers/sensor/nrf5/libdrivers__sensor__nrf5.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.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;c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m/nofp&amp;quot; -LC:/Users/IMS_DEV/Documents/vscode/projects/hello_world/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -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 -Wl,-no-pie &amp;amp;&amp;amp; cmd.exe /C &amp;quot;cd /D C:\Users\IMS_DEV\Documents\vscode\projects\hello_world\build\zephyr &amp;amp;&amp;amp; C:\ncs\toolchains\31f4403e35\opt\bin\cmake.exe -E echo &amp;quot;&amp;quot;&lt;br /&gt;c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj):(.rodata.spi_nor_config_0+0x0): undefined reference to `__device_dts_ord_80&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\Users\IMS_DEV\Documents\vscode\projects\hello_world\build&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/453843?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 19:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7451ccc7-ef67-4836-ad04-eda6a60d883c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Enable the following configs in your app&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPI Flash
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
################################################################################
# Enable flash operations.
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/453729?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 13:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9a03204-2464-4587-b0a7-d4bb86632208</guid><dc:creator>sleeper</dc:creator><description>&lt;p&gt;Tried&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SPI_NOR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;that still errors......&lt;/p&gt;
&lt;p&gt;It also throws this out&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;CMake Warning at C:/ncs/v2.4.2/zephyr/CMakeLists.txt:839 (message):&lt;br /&gt; No SOURCES given to Zephyr library: drivers__spi&lt;/p&gt;
&lt;p&gt;Excluding target from build.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;also there is this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;warning: SPI_NOR (defined at drivers/flash/Kconfig.nor:4) was assigned the value &amp;#39;y&amp;#39; but got the&lt;br /&gt;value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: DT_HAS_JEDEC_SPI_NOR_ENABLED (=n). See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SPI_NOR"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up SPI_NOR in the&lt;br /&gt;menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,&lt;br /&gt;and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;warning: SPI_NOR_FLASH_LAYOUT_PAGE_SIZE (defined at drivers/flash/Kconfig.nor:56) was assigned the&lt;br /&gt;value &amp;#39;4096&amp;#39; but got the value &amp;#39;&amp;#39;. Check these unsatisfied dependencies: SPI_NOR (=n). See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look&lt;br /&gt;up SPI_NOR_FLASH_LAYOUT_PAGE_SIZE in the menuconfig/guiconfig interface. The Application Development&lt;br /&gt;Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual&lt;br /&gt;might be helpful too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI build error</title><link>https://devzone.nordicsemi.com/thread/453728?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 13:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5437174c-abbb-4874-984a-0094da691774</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try to enable&amp;nbsp;CONFIG_SPI_NOR.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>