Error when building code that includes SPI BUS block (PIC32)
I am attempting to send data from a PI32MK PIM over SPI to a raspberry pi. I have a basic simulink model designed but I encounter errors when building the model. If I comment out the SPI block and related process the model builds fine. I do not know if the error is due to improper use of the SPI Bus block or something else. I would appreciate guidance or recommendations on where I can learn more about the use of an SPI Bus block (I have already looked at the example UDB5_33FJ256GP710A_SPI_MPU6000_SensorTest.mdl).
I am using R2019a with blockset 3.45.02 and compiling for PIC32MK Motor Control PIM. I have included my code and the diagnostics Viewer.