Generate Code for a TI C2000 Microcontroller from a simulink model with an integrated existing C code
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I would like to generate code from a simulink model for a TI C2000 Microcontroller using the Matlab Toolchain with CCS v5. Normally, the Toolchain works and I can generate code for the TI C2000. However, my actual Simulink Model is integrated with an existing C code, which was written for another Microcontroller (now I want to reuse this C code). The C code is integrated into the Simulink Model via a Matlab Function Block. When I generate code for this Simulink model, there is an error of undefined symbols _atan2f, _cosf, _sinf (which are used in the existing C code). In the C code there is an include of math.h. However, as I see in the header file math.h in the CCS compiler folder, the math.h does not have these _atan2f, _cosf, _sinf functions for float numbers (there exist only atan2, cos, sin...).
Any idea how to solve this problem? Thanks in advance.
0 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!