This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sending data via SPI driver to External memory

Hi,

I am beginner with nrf9160 and its SDK. I want to send data from nrf9160 to an external flash memory. To test it I wanted to start simply by sending hello_world(sample project that is given in nrfsdk) to an external flash memory. I found this zephyr/samples/drivers/spi_flash_at45/, however I don't know how to use it in my hello world example program to send the data via SPI. Can you help me with that? The existing opened project in SDK is hello world and I want to use the code of spi_flash_at45, I couldn't figure out how to combine them. It would be great if you can explain to me clearly what should I do.

Also, I want to send the file that I downloaded via http_update_sample directly to the external flash memory via spi, again I am stuck at the point:  which part of the http_update sample should I add this spi_flash_at45 code to make things work.

Thank you so much for the help.

Parents Reply Children
Related