Can you FDS for an external spi flash device/chip?
Can you FDS for an external spi flash device/chip?
Hi ypearson,
I am afraid that FDS or fstorage, which is used by FDS, support external flash at the current moment. We're looking into this and it will probably be added in a future release of the SDK.
Best regards
Bjørn
Two years have passed.
Is it possible now to use an external flash instead of an internal one?
I looked at the FDS source code and realized that this is generally possible, but it is not clear to me how it is used inside the softdevice. And I would not want to remake someone else's library, losing the ability to upgrade to the new version in the future.
Ok.
If I replace fstorage to my own functions working with spi flash, SoftDevice will use any sector of the flash for their internal purposes via NVMC except MBR?
Turnaev: The SoftDevice will only use its designated flash area for internal purposes, see SoftDevice memory usage.
Ok. Very good! Thank you!
Fds must modify the fds module code to use external flash, because fds will directly read the internal flash data through the data pointer.
This flash driver here is quite easy to use and works with almost all SPI Flash.
https://github.com/IOsonata/IOsonata/blob/master/include/diskio_flash.h
usage example
https://github.com/IOsonata/IOsonata/blob/master/exemples/misc/flash_memory_demo.cpp
This flash driver here is quite easy to use and works with almost all SPI Flash.
https://github.com/IOsonata/IOsonata/blob/master/include/diskio_flash.h
usage example
https://github.com/IOsonata/IOsonata/blob/master/exemples/misc/flash_memory_demo.cpp