Code replacement for "add" is not "mw_arm_add_q31"
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Shubham Kashyap
2020-6-10
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!