3 Replies Latest reply on Jul 31, 2019 2:40 AM by AnjanaM_61

    Why does my program get stuck at the line: spiffyd_rxData(SPIFFYD_2, 1 ,&byteReceived); when I set the spiffyd_configure() clock speed to 0?

    PhRi_4317641

      I want my BCM20737 chip to be the slave, and an FPGA on my PC board to be the master. I'm trying to send data over SPI from the FPGA to the BCM20737 chip. When I set the spiffyd_configure() clock speed to a value other than 0, I get the data (when running the spiffyd_rxData function): 0x96, then it switches to 0x3b once i send data from FPGA to BCM20737 over SPI. Is 0x96 the default data stored? Any ideas why the code gets frozen at the line: spiffyd_rxData(SPIFFYD_2, 1 ,&byteReceived); when I configure the clock speed to 0 (I think i'm supposed to configure the clock speed to 0 when I want the BCM20737 to be the slave)?

       

      Thank you very much for the help.