Our hardware setup has three devices connected to one SPI bus: Flash, DSP, FPGA. DSP/FPGA are configured as SPI slaves and will be booted/configured by the xmos chip, based on data stored in flash (alternating flash-reads and DSP/FPGA writes). DSP/FPGA never access the flash directly.
The libflash library has all I need for using the flash device (store, read, erase, image handling, ..), but doesnt provide access to the SPI interface itsself (correct?)
The two possible options I see are:
- dont use libflash and do everything manually
- put the flash on an additional SPI bus, use libflash for flash communication and lib_spi for DSP/FPGA communication
I'd go with option 2, as I have the pins available. Just wanted to make sure: The libflash library is used for communicating with flashs ONLY and does not support any additional SPI communication? Also, I cannot use libflash and lib_spi with the same pins, as that will vilate parallel usage regulations?