R2017b AUTOSAR not writing provided ports at initiatialization phase
1 回表示 (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2020 年 8 月 7 日
回答済み: MathWorks Support Team
2020 年 8 月 7 日
I am trying to write a constant value of 0/false at the initialization phase in AUTOSAR. It is not written to the output port as expected. I was able to do this while using ert.tlc.
採用された回答
MathWorks Support Team
2020 年 8 月 7 日
Simulink prevents writing 0 / false at the time of initialization for AUTOSAR because the initialization of the output block depends on the Runtime Environment (RTE).
Hence, a setting in Code Generation pane (optimization) of Configuration parameters in Simulink, known as "zeroExternalMemoryAtStartup" is checked by default for "autosar.tlc".
This setting removes root level I/O zero initialization.This can not be unchecked in "autosar.tlc". It can be unchecked in "ert.tlc".
Hence, the generated code does not write to "Outport".
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で AUTOSAR Blockset についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!