Tool/software:
I have two CC2640R2 boards that are communicating over ble. One has a joystick attached and transmits data to the other CC2640R2 board. This second board I connected to the LaunchXL-f28069M through the SPIB pins. There is some data definitely coming through, but it does not seem quite right. In my device running the Simple_Central I had to get the incoming data and do some bit shifting as the data was only coming in 8 bits in order to get the number correct.
Here are the two putty screens relaying the data
and this is the snippet of code I did in the Simple Central program for the data coming through bluetooth to get the numbers to match
Then I am trying to translate the data in the proj_lab10d for spinning 2 motors.
I made sure to change the code for HAL_setupSpiB as I know if you have 2 motors the second motor uses the spi.
When I look at the registers in the proj_lab10d there are numbers constantly changing in the SPIRXBUF. They are not quite right though. When the joystick is in the neutral position the numbers are around 1500 and here you can see they are around 5000. I was thinking that I would need to do some bit shifting, but the SPIRXBUF is a uint16_t. So would it hold the entire number?
This is my board setup