How to fix the error

조회 수: 2 (최근 30일)
Ivan
Ivan 2015년 6월 20일
댓글: Venkatesh Chilapur 2018년 4월 18일
hello When you compile a program TMS320F28335 error:
Error evaluating 'InitFcn' callback of C28x SPI Transmit block (mask) 'Test_plati8_work / Tok / sample / SPI Transmit'. The SPI module SPI_Tx_A is already used by another block.
I use two SPI_A module in two different blocks, but this is what I need because 2 different units operate in different interrapt.
How to remove this problem.
  댓글 수: 1
Venkatesh Chilapur
Venkatesh Chilapur 2018년 4월 18일
Please can you update on the version of the MATLAB being used?

댓글을 달려면 로그인하십시오.

답변 (1개)

DKalale
DKalale 2016년 7월 4일
I'm sure this is NOT the right way to do it, but I was able to get past this error by doing the following.
When you look at the Callbacks of the SPI Transmit block:
  • Block Properties of SPI Block
  • Callbacks
  • InitFcn*It is calling a function "validateC280xSPI();"
If you then enter in command prompt: edit validateC280xSPI
You can edit this function, I just commented out line 24 where it says:
lf_registerBlockCallbackInfo(opts);
Obviously, this just makes it so that MATLAB will generate the C code (and probably disables useful error checking), but I would still be interested in a more elegant solution from MathWorks
  댓글 수: 1
pouya abbasi
pouya abbasi 2018년 3월 29일
not working for me :(

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by