LubinKerhuel / MPLAB-Device-Blocks-for-Simulink

Blockset for dsPIC, PIC32 and SAM7x chip for Rapid Control Prototyping
13 stars 6 forks source link

MPLAB Simulink SPI block build error for PIC32MKMCM100 #5

Open controlseng123 opened 2 years ago

controlseng123 commented 2 years ago

Hi Lubin, I'm having trouble building code with the SPI block and keep getting the same error, even if I try to build from 1 of the examples provided. The error seems to be with an operator (>>) used in 1 line of the C code (MCHP_BUS_SPI.tlc) and I have attached a picture of the full error and the line it references in the code. Could you help please in diagnosing whether this is because I have not set up the block correctly or genuinely a bug in the code. I have attached a picture of the block settings I used as well (1 from the example model and 1 I set up). Thank you in advance

Example_Project_SPI_Config Example_Project_SPIError SPI_Config SPIError

LubinKerhuel commented 2 years ago

Discussion continued on MathWorks forum: https://fr.mathworks.com/matlabcentral/fileexchange/71892-mplab-device-blocks-for-simulink-dspic-pic32-and-sam-mcu?tab=discussions#discussions_2448370