Hi Dialog ,
DSPS example is working fine with uart protocol but i need to replace that with SPI protocol for communication.
Because my custom DA14580 module have only SPI and SWD support.
1. Can you give me some reference link or documents?
2. Can you list out the modification to be done to replace UART with SPI?
Device:
Hi RatheeshT,
There is no document that describes the changing of the interface from the UART port to the SPI interface (what might be useful is the application note of the DSPS itself that describes the architecture of the application and lists the functions used), the DSPS works exclusivelly only via the UART port and there is no provision by the application in order to change the interface. Regarding listing out what the modifications should be done that is quite hard to say since you will have to change the entire UART infastructure and replace it by SPI functionallity, you will have to find out all of the functions that push from the UART to the buffers and vice versa and alter that functions with SPI functionallity. Also you will have to consider the flow control as well and how this is going to work with the SPI instead of the UART, possibly you are going to need additional pins that are going to signal when the device is awake or not therefore it can accept data. Summing up what you are trying to do requires more than just a modification and a simple interface replacement from UART to SPI.
Thanks MT_dialog