Hi,
I'm using nrf9160 with Zephyr RTOS i need to interface external flash memory using SPI protocol.
but, I didn't get any example code for that. can you help me to find example code for SPI protocol using nrf9160 with Zephyr RTOS.
Thank you
Hi,
I'm using nrf9160 with Zephyr RTOS i need to interface external flash memory using SPI protocol.
but, I didn't get any example code for that. can you help me to find example code for SPI protocol using nrf9160 with Zephyr RTOS.
Thank you
Hello,
can you help me to find example code for SPI protocol using nrf9160 with Zephyr RTOS.
I believe the spi_flash sample in zephyr\samples\drivers can be used with some minor modifications. You can try that, and let me know if you get stuck.
Hi Hakon,
thanks for reply,
the spi_flash sample in zephyr\samples\drivers
I tried with this path to build spi_flash for nRF9160 but I'm getting some errors.
can you help me to solve this errors

Hi Hakon,
thanks for reply,
the spi_flash sample in zephyr\samples\drivers
I tried with this path to build spi_flash for nRF9160 but I'm getting some errors.
can you help me to solve this errors

Hi,
Take a look at this sample: https://github.com/simon-iversen/sdk-nrf/tree/ext_flash_mcuboot_91dk/samples/nrf9160/http_update/application_update
Hi Sigurd,
Thank you for reply but its not helpful foe me, can you suggest another example which is useful to integrate SPI protocol with External FLASH in my case I'm using "W25Q32JV" spi flash ,so can you suggest example which really helps to work on my "W25Q32JV" SPI FLASH.
Thanks in advance.
There are some boards that uses the W25Q32JV. You can take a look at how these boards have added W25Q32JV to the devicetree. E.g:
Hi Sigurd,
github.com/.../sparkfun_thing_plus_nrf9160_common.dtsthanks it really helpful for me. I got that but my qurey still not resloved.
as i mention in query i want to configure SPI in my code but I'm not getting any idea to configure SPI.
can you give any idea how to configure SPI in my code...?
Thanks in advance.
_bhanu said:can you give any idea how to configure SPI in my code...?
You can change the SPI node fields(pins to use, frequency , etc) in the devicetree