This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F280025C: Receiving SPI Data From CC2640R2

Part Number: LAUNCHXL-F280025C
Other Parts Discussed in Thread: DAC128S085

Tool/software:

I have two BOOSTXL-CC2640R2 making a connection over bluetooth. I have a joystick hooked up to one board and transmitting the data to the other board which is hooked up to through spi to the LAUNCHXL-F280025C.  


Here is the data being transmitted visualized on some putty terminals.  


I hooked up a logic analyzer to the pins on the CC2640R2 board that is receiving the data and will pass it on to the F280025C board and it is indeed receiving data.  Here is one freeze frame that shows 2 8 bits of data of 0x0C and  0x26 which correlate to what is seen from the left picture of 3110 which matches the correct data coming from the joystick.  


However, I can not seem to get anything coming into the SPI registers when I run the universal_motor_control_lab.  I disable the spib that was set in the DAC128S085.c file and created my own function to initialize the spib for my purposes.  I set up gpio pins GPIO22, GPIO30, and GPIO31 for the SPIB CLK, SIMO, and SOMI in the HAL_setupGPIOs that gets called from the main function.



Then I also created my own function to set up the spib and called it in main


Here are the registers that become all 0's when I comment out my custom function. So I know that my code is setting the registers and that the DAC128S085 doesn't control them.  


I have been thinking I have not set up the registers correctly and have tried many different things.  I am just banging my head as I can't figure out why I don't see any data coming in the SPIRXBUFF buffer. 

  • Hi,

    Do you see SPI waveforms with logic analyzer when testing SPI code integrated in universal_motor_control_lab? Have you tested this SPI B code for communicating with your CC2640R2 board outside of using the universal_motor_control_lab

    Best,

    Kevin