I am attempting to use an STM32 F3 Discovery Board as an external processor to control the DA14580 Basic board via SPI. I have been following the guide in UM-B-013, DA14580 External processor interface over SPI.
The DA14580 board is running the reporter_fe_spi application from the DA14580_SDK_22.214.171.124 package.
At boot the F3 pulls nCS high and waits for DREADY from the DA14580. Once DREADY goes high, F3 pulls nCS low and transmits 0x08 (DREADY Acknowledge). I can see this is happening correctly on my scope.
This gets me to my break point on the DA14580 in the spi_hci_set_flow function. I check to see if the tmp variable holds the 0x08 that I just sent. It has never been 0x08. I have tried other values but it always comes back wrong in different ways. To get to this break point, nCS, DREADY, and clock must be correctly wired between the boards. Since I am getting a non-zero value, MOSI from the F3 is correctly tied to SPI_DI on the dialog board.
Has anyone had success with SPI? Does anyone know why this is not working?