<?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>How to add W25Q80 flash to my board?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110299/how-to-add-w25q80-flash-to-my-board</link><description>Hello. 
 I try to connect SPI memory W25Q80 to nRF52840DK (in the future it will be my own board) but I have problem with device tree. I modified original files (nRF52840dk_nRF52840) but still I can&amp;#39;t build project. 
 dts file: 
 
 Implementation in my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Apr 2024 08:35:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110299/how-to-add-w25q80-flash-to-my-board" /><item><title>RE: How to add W25Q80 flash to my board?</title><link>https://devzone.nordicsemi.com/thread/479895?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 08:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bdfeeba-1499-4d58-bd37-bd8a36dd0324</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am glad to hear that your issue has been resolved.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add W25Q80 flash to my board?</title><link>https://devzone.nordicsemi.com/thread/479733?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 13:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d38d6dc1-f5d5-4798-8f10-c1a7ad36ea59</guid><dc:creator>PW</dc:creator><description>&lt;p&gt;Problem solved. I added child_image/mcuboot.conf file to my&amp;nbsp;project and multithreading config inside.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_MULTITHREADING=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;PW&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hot to add W25Q80 flash to my board?</title><link>https://devzone.nordicsemi.com/thread/479450?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 13:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e48b51f7-99c2-4b5a-b4aa-20ac994dad8a</guid><dc:creator>PW</dc:creator><description>&lt;p&gt;After many tries I builded separate project and flash is working. But it still doesn&amp;#39;t work in my main project :(. My main project has MCUBoot and FOTA (which is working fine).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My terminal info: (sorry, but I couldn&amp;#39;t paste it in another way)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[1/6] 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\c57af46cb7\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:/ncs/v2.5.0/zephyr/samples/bluetooth/beacon_relay/build/mcuboot/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/lib/libc/common/liblib__libc__common.a zephyr/soc/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/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/timer/libdrivers__timer.a modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.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/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard&amp;quot; -LC:/ncs/v2.5.0/zephyr/samples/bluetooth/beacon_relay/build/mcuboot/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mfp16-format=ieee -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 C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.18.a C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a &amp;amp;&amp;amp; cmd.exe /C &amp;quot;cd /D C:\ncs\v2.5.0\zephyr\samples\bluetooth\beacon_relay\build\mcuboot\zephyr &amp;amp;&amp;amp; C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe -E true&amp;quot;&amp;quot;&lt;br /&gt;c:/ncs/toolchains/c57af46cb7/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_119&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;[188/207] Building C object zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_spim.c.obj&lt;br /&gt;FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf &lt;br /&gt;cmd.exe /C &amp;quot;cd /D C:\ncs\v2.5.0\zephyr\samples\bluetooth\beacon_relay\build\mcuboot &amp;amp;&amp;amp; C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe --build . --&amp;quot;&lt;br /&gt;[191/207] Linking C static library zephyr\subsys\bluetooth\host\libsubsys__bluetooth__host.a&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\ncs\v2.5.0\zephyr\samples\bluetooth\beacon_relay\build&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible that flash settings make this issue?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# Flash
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_DISABLE_FLASH_PATCH=y

CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_ZCBOR=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;PW&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hot to add W25Q80 flash to my board?</title><link>https://devzone.nordicsemi.com/thread/479433?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 12:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff63cf53-9c5e-45c7-bdcb-ad11178d21c0</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As a starting point, I recommend you follow the Nordic Developer Academy chapter about&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/"&gt; SPI communication&lt;/a&gt; and see the exercise on &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/topic/exercise-2-16/"&gt;interfacing a TFT screen&lt;/a&gt;. The steps you should follow are:&lt;/p&gt;
&lt;p&gt;Enable the SPI and GPIO drivers. Create an overlay file for your board in the boards directory, connecting the SPI memory to the appropriate GPIO pins on the nRF2840DK; refer to&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/hw_external_memory.html#ariaid-title1"&gt; this page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I recommend referring to&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/subsys/fs/littlefs/README.rst"&gt; this sample&lt;/a&gt; from Zephyr.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>