Hello all,
I am in trouble with the SPI of F28M36 in Simulink. I have a simple "code" :
When I deploy to hardware, nothing happen on the GPIO16 (SIMO) or even on the SPICLK.. I have a LSPCLK = SYSCLKOUT/4
Here is my SPI config :
With that configuration I have nothing on my board. I don't know what I can change to solve the problem on Simulink, so I began to check the generated code on CCS7 and I realize that the code is not compilable beacause there are some missing library. I have that error :
C:\MATLAB\spi_ert_rtw>cd . C:\MATLAB\spi_ert_rtw>if "all" == "" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -B -f spi.mk all ) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -B -f spi.mk all ) C:/PROGRA~3/MATLAB/SUPPOR~1/R2017b/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/bin/cl2000 --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/PROGRA~3/MATLAB/SUPPOR~1/R2017b/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/include" -v28 -ml --float_support=fpu32 -DMODEL=spi -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMW_PIL_SCIFIFOLEN=16 -DMW_PIL_TIC2000_CONCERTO -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMW_PIL_SCIFIFOLEN=16 -DMW_PIL_TIC2000_CONCERTO -DSTACK_SIZE=512 -DRT -DMODEL=spi -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MATLAB -IC:/MATLAB/spi_ert_rtw -IC:/PROGRA~1/MATLAB/R2017b/extern/include -IC:/PROGRA~1/MATLAB/R2017b/simulink/include -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/src -IC:/PROGRA~1/MATLAB/R2017b/toolbox/target/extensions/processor/tic2000/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/inc -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/inc -IC:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/include -IC:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_headers/include --output_file=MW_c28xx_board.obj MW_c28xx_board.c "C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/inc/MW_c2000SPI.h", line 12: fatal error: cannot open source file "MW_SVD.h" 1 catastrophic error detected in the compilation of "MW_c28xx_board.c". Compilation terminated. >> Compilation failure gmake: *** [MW_c28xx_board.obj] Error 1 C:\MATLAB\spi_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
The MW_SPI.h is missing and I can't find it on my computer.. I have already uninstall/install ControlSuite,Matlab SupportPackage
Can someone please help me ?
Best Answer