Tool/software: Code Composer Studio
Hi TI
the MCU (F2803) and DRV8301 is already using SPI communication in the instaspin_BLDC.ccs project.
We want to use the isolated SPI interface (GPIO 16, 17, 18, and 19) for SPI communication between the MCU and an Arduino.
As you don't have any examples, we have added Arduino_SPI.c and Arduino_SPI.h which use the same syntax/structure as DRV8301_SPI.c and DRV8301_SPI.h
GPIO 16, 17, 18, and 19 have been enabled for SPI communication in BLDC_Int-DevInit_F2803x.c
the Arduino_SPI_Init(&SpiaRegs) function works (added in BLDC_int.c line 217)
But using Arduino_SPI_Read in line 340 or Arduino_SPI_Write in line 493 to BLDC_int.c does not work and disables controllability over the motor (using the watchwindow in CCS on a pc connected to the MCU (F2803)).
So, the implemented code for SPI communication between MCU (F2803) and Arduino messes up the SPI communication between MCU (F2803) and DRV8301.
Can you help us solve this problem? any help is appreciated. Do you need more information/files from us?
the expanded CCS project is attached to this message.InstaSPIN_BLDC.zip