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

SPI flash memory

Hello all. I want to use an external SPI Flash Memory with NRF52832 module. I'm using KEIL MDK5.17. Being the use of packs to configure runtime environnement deprecated, wich is the correct and recommended flow to access CMSIS HW drivers? In CMSIS packs beside the SPI driver(s) I found the FLASH I want to use driver too (Adesto AT45). In all the ANT examples the CMSIS drivers are all excluded. Thank You very Much. Paolo.

Parents
  • You cannot just plug in any CMSIS driver for use with the nRF5 SDK directly. While ARM CMSIS has set of modules, CMSIS-Driver included, this is not and have never been supported by the nRF5 SDK. CMSIS Packs were used before, but is not directly related to this. You cannot just take another CMSIS driver that is not made for the nRF5 SDK and use it without rewriting it.

    You need to write a driver for the SPI flash memory yourself (or adapt another driver), and make it so that it uses the SPI master driver from the nRF5 SDK to handle SPI transfers. The SPI Master Example demonstrates how the driver can be used.

Reply
  • You cannot just plug in any CMSIS driver for use with the nRF5 SDK directly. While ARM CMSIS has set of modules, CMSIS-Driver included, this is not and have never been supported by the nRF5 SDK. CMSIS Packs were used before, but is not directly related to this. You cannot just take another CMSIS driver that is not made for the nRF5 SDK and use it without rewriting it.

    You need to write a driver for the SPI flash memory yourself (or adapt another driver), and make it so that it uses the SPI master driver from the nRF5 SDK to handle SPI transfers. The SPI Master Example demonstrates how the driver can be used.

Children
Related