Why "Failed to generate all binary outputs" error occuring while creating model reference from subsystem for Embeddded Coder for C2000?
1 次查看(过去 30 天)
显示 更早的评论
I am implemnting sensorless FOC of PMSM using Texas Instrument's F28379D launchpad + DRV8305 + PMSM Dyno using Embedded Coder with help of an example shown in the following link - https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/examples/permanent-magnet-synchronous-motor-field-oriented-control.html or type command "c28379Dpmsmfocdual_cpu1_ert" to open the example. This original model is working fine and I verified all the funcitonality.
In the given model, I wanted to convert "Torque Control Algorithm" subsytem (inside function call of ADC interrupt subroutine) into the reference model. I have used Model Reference Conversion Advisor with its default settings and procedure shown in following link - https://www.mathworks.com/help/simulink/ug/convert-a-subsystem-to-a-referenced-model-1.html
During that conversion, I followed advisor's recommended changes as follows 1. setting "subsystem as an atomic unit". Also, In configuration parameter pane like 2. setting "Total number of instances allowed per top model --> multiple" 3. Data Validity --> Signal Resolution -->Explicit. Changes are applied to both parent and daughter model. Conversion complete message is shown for your reference
![model_reference_advisor_snap.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/228461/model_reference_advisor_snap.png)
While building the model following error is showing up -
![error_msg.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/228462/error_msg.png)
I edited F2837xD_Ipc_drivers.h by #inlcude <stdint.h> and #include "F2837xD_device.h", then it is building it and running the motor correctly with no issue.
The question is, why this issue doesn't showup when there is a subsytem and why I have to manually edit F2837xD_Ipc_drivers.h when I am using model referencing feature?
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!