Simulink exclusive area Autosar

8 ビュー (過去 30 日間)
Thomas Mayr
Thomas Mayr 2018 年 6 月 11 日
編集済み: Ulrich 2019 年 9 月 23 日
Hello, i'm working for bosch in austria and i'm currently working in a project with autosar. i have to include a so called "exclusive area" which is desribed here (from page 25): https://www.autosar.org/fileadmin/user_upload/standards/classic/3-1/AUTOSAR_SimulinkStyleguide.pdf i don't know where to include the exclusive-area-block in the simulink file. i generate code out of simulink to build it for a microcontroller we use. maybe after the code generation and after including the "exclusive-area"-block a #define variable appears in the code. it would be great if you have an expert simulink in conjunction with autosar to help me out with this problem. thanks in advance, best regards, thomas

回答 (2 件)

TAB
TAB 2018 年 6 月 12 日
In my knowledge until Matlab R2015b, Exclusive area is not supported by Mathwork's AUTOSAR toolbox.
To place some section of your generated code from model in exclusive area, you need to design your own memory section using custom storage class.
It can be achieved using PrePragma & PostPragma properties of Simulink.MemorySectionDefn.
For details, search for Design Custom Storage Classes and Memory Sections in your Matlab documentation.

Ulrich
Ulrich 2018 年 7 月 23 日
編集済み: Ulrich 2019 年 9 月 23 日
When you are using a newer MATLAB release, then you should have a look here: Configure AUTOSAR Per-Instance Memory.

カテゴリ

Help Center および File ExchangeCommercial & Off-Highway Vehicles についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by