How to use tmu of CCS in Matlab? How to use sincos_rts block in simulink?

조회 수: 5 (최근 30일)
How to use tmu of CCS in Matlab? How to use sincos_rts block in simulink?

채택된 답변

Venkatesh Chilapur
Venkatesh Chilapur 2019년 8월 9일
Hi,
If your hardware supports it, turn on the TMU support (--tmu_support=tmu0 and --fp_mode=relaxed) in addition to FPU support (--fpu_support=fpu32) and then call the sin(), cos()- what the compiler does in this case is replace those calls with TMU instructions.
You can add them under C Compiler under Toolchain details in ‘Code Generation’ tab. please refer below fig.
Also, FastRTS is included in the build using the Linker option in Build configuration as shown below:
1.jpg
Regards,
Venkatesh C
  댓글 수: 2
Srinivaskarthik potluri
Srinivaskarthik potluri 2019년 8월 10일
Thank you for the response!
When I'm running the attached model in internal mode, the data IN the scope is constant. But, when I'm running it in external mode using F28335 experimental kit the th data in scope is decreasing continuously. To verify we have checked the output on CAN analyser tool's TRACE window. But, unfortunately the data is decrerasing there also.
Please provide the solution to rectify this problem.
PS: Please do check the attached model and waveforms.
This model was developed based on the c2000 example model to see serial data in closed loop.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 C Code Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by