Code replacement for "add" is not "mw_arm_add_q31"
1 view (last 30 days)
Show older comments
Hi,
I am attempting to generate code for the ARM Cortex-M using Embedded Coder. I am using ARM Cortex-M (CMSIS) code replacement library. For "sin" function with single output it is working correctly. But for "add" operation it is not working correctly. Code generation process did not replace this operation with CMSIS function. I attached picture with model below. Here is generated code:
...
arm_cortex_m_gettingstarted_Y.Out1_FLT = arm_sin_f32(arm_cortex_m_gettingstarted_U.In1_FLT);
arm_cortex_m_gettingstarted_Y.Out2_FRAC = arm_cortex_m_gettingstarted_U.In2_FRAC + arm_cortex_m_gettingstarted_U.In3_FRAC;
...
Thanks for your advice,
Vit
0 Comments
Answers (1)
Shubham Kashyap
on 10 Jun 2020
The generated code should have the default functions overwritten by the those present in the code replacement library selected.. You can find a list of supported functions for ARM Cortex-M processors in the following link:
The information regarding the parameters is given inside the code replacement table. If you open up the code replacement library using the following command:
>> RTW.viewTFL('ARM Cortex-M');
You can search for the available functions in the code replacement library. On the right pane of the window, the criteria for replacing the code is mentioned for every function.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!