External SPI Master

3 posts / 0 new
Last post
ptracton
Offline
Last seen: 8 years 5 days ago
Joined: 2014-09-15 21:09
External SPI Master

Hi-

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_3.0.4.0 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?

Thanks,
Phil

JE_Dialog
Offline
Last seen: 1 year 1 month ago
Staff
Joined: 2013-12-05 14:02
Hello Phil,

Hello Phil,

one of the local team in US shuold have been in touch with you. Please let me know if this didnt happen.

BR JE_Dialog

ptracton
Offline
Last seen: 8 years 5 days ago
Joined: 2014-09-15 21:09
Nobody has ever gotten in

Nobody has ever gotten in touch with me about this.