How do you create an AUTOSAR model containing non-AUTOSAR entry points so that they do not appear in the generated ARXML files?

2 views (last 30 days)
I am developing an AUTOSAR complex device driver using the AUTOSAR blockset. My design is for the CDD to have a 1ms rate AUTOSAR runnable function which will be called by the RTE. This should also have an interrupt driven function which should be called directly by a hardware interrupt service routine.
My model currently contains two function call subsystems with the triggers connected to root level inports. In order to generate code, Simulink maps both of these to an AUTOSAR runnable.
Is there a way to create an AUTOSAR model containing non-AUTOSAR entry point functions (not mapped to AUTOSAR runnables) so they do not appear in the generated ARXML files?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Nov 2025 at 0:00
Edited: MathWorks Support Team on 10 Nov 2025 at 11:57
To model non-RTE entry point function in your CDD, you could use scoped Simulink Function which gives you the flexibility of not exposing the function to RTE and they need not map it as an AUTOSAR runnable. If you are trying to call the function bypassing the RTE, you should be able to do so by using C-Caller block or C-Function block
Below are some useful resources that should help get started with C-Caller and C-Function blocks:

More Answers (0)

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!