Mapping Simulink function to an AUTOSAR runnable is not supported for this model. To map a Simulink function to an AUTOSAR runnable,

11 Ansichten (letzte 30 Tage)
Now i try to version up from 2018b to 2022b.
in that procedure, i try to code generation with 2022b autosar tlc.
but, i have some error that is 'Mapping Simulink function to an AUTOSAR runnable is not supported for this model. To map a Simulink function to an AUTOSAR runnable,'
the Simulink function occuring error is simulink function with global obtion checked.
please give me some answer to resolve that error

Antworten (1)

Atharva
Atharva am 21 Jun. 2023
The error message you encountered suggests that mapping a Simulink function to an AUTOSAR runnable is not supported in your model. Specifically, it seems that you have a Simulink function with the global option checked, and this is causing the error.
To resolve this issue, you have a few options:
  1. Remove the Global option: If possible, try unchecking the Global option for the Simulink function causing the error. This will make the function local to the model and may allow you to map it to an AUTOSAR runnable.
  2. Refactor the Simulink Function: If you cannot remove the Global option, you can refactor your Simulink function to remove the global dependency. This may involve passing inputs and outputs explicitly between the function and other components in your model.
  3. Check AUTOSAR compatibility: Ensure that the AUTOSAR Target Compatibility Kit (TCK) for your version of Simulink is compatible with the 2022b version. Sometimes, certain features may not be supported in specific versions, and upgrading may require additional steps or changes in your model.
Can you share your model for further assistance.
  1 Kommentar
hoa phan
hoa phan am 27 Jun. 2023
Hi Atharva,
I have the same error as above question, but I cannot remove the Global option because my model is set to re-usable. (the Global option is required)
so how can I reconfigure the model to use top-model, export-function modeling style?

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by