How do you create an AUTOSAR model containing non-AUTOSAR entry points so that they do not appear in the generated ARXML files?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 8 Dez. 2022
Bearbeitet: MathWorks Support Team
am 10 Nov. 2025 um 11:57
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?
Akzeptierte Antwort
MathWorks Support Team
am 10 Nov. 2025 um 0:00
Bearbeitet: MathWorks Support Team
am 10 Nov. 2025 um 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:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!