Other Parts Discussed in Thread: MOTORWARE, DRV8305, , DRV8301
Tool/software:
I am currently running proj10d for spinning 2 motors. I altered the code so SPIB is setup to receive data from a CC2640R2 board. When I first start the program, the data is coming through perfectly and changes in relation to joystick movement. However, when I set gSystemVars.Flag_enableRun = true, along with everything else that needs to be true to get the motor spinning, the motor starts to spin, but the data from the (halHandle->spiBHandle->SPIRXBUF) just turns to -1 and stays there. I tried to comment out code and debug this, but am having no success. I thought maybe it could be an interrupt priority or something, but I'm not using interrupts for the spib. Maybe I need to disconnect the interrupt for MTR2?
Here is the joystick code inside the for(;;) loop of project 10d. I am trying to manipulate the motor from the joystick position.
The altered SPIB function
When gSystemVars.Flag_enableRun = 0
you can see below the data is coming through nicely
Then when I set it to true
It turns to -1 and stays.