Hi, Jonathan,
Regarding your question, it seems that there is problem for the following function, pls check.
SPI_DRV_MasterInit(*m_instance, &SPI_COM1_MasterState);
SPI_DRV_MasterConfigureBus(*m_instance, &SPI_COM1_MasterConfig0, &SPI_COM1_calculatedBaudRate);
I do not know what you define the m_instance, if you define it as:
#define m_instance 1 //if you use SPI1
#define m_instance 0 //if you use SPI0
#define m_instance 2 //if you use SPI2
In the case, you should omit the * when you call the API function.
SPI_DRV_MasterInit(m_instance, &SPI_COM1_MasterState);
SPI_DRV_MasterConfigureBus(m_instance, &SPI_COM1_MasterConfig0, &SPI_COM1_calculatedBaudRate);
Hope it can help.
BR
Xiangjun Rong