フィルターのクリア

Code replacement for "add" is not "mw_arm_add_q31"

4 ビュー (過去 30 日間)
Vit Valek
Vit Valek 2019 年 8 月 22 日
回答済み: Shubham Kashyap 2020 年 6 月 10 日
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

回答 (1 件)

Shubham Kashyap
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.

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by