Effacer les filtres
Effacer les filtres

Rte_type.h data types generation problem

42 vues (au cours des 30 derniers jours)
oussama
oussama le 20 Avr 2023
Commenté : oussama le 24 Avr 2023
Hello,
I am using MATLAB R2020b to generate code from .slx model, the problem is that the generated Rte_type.h file have data types as (UInt8, UInt16...) but i am expecting them to be as (uint8, uint16...).
This matter is related to AUTOSAR Platform Type version according to this link :
For AUTOSAR 3.x Platform Type we have (UInt8, UInt16...) and for AUTOSAR 4.x Platform Type we have (uint8, uint16...)
So i tried to solve the problem by checking this option :
XML options > AUTOSAR Platform Types > Platform Type Names
But it turn out that it's not even exist in my model.
In the other hand the AUTOSAR schema version is equal to 4.2, which must make the code generates data types to (uint8, uint16...) according to this link :
Which one of this parameters has impact on data types in Rte_type.h file ?
Why i don't have AUTOSAR Platform Type option ?
And how can i change the Rte_type.h uint to AUTOSAR 4.2 form (uint8, uint16...) ?

Réponse acceptée

Philipp Diersing
Philipp Diersing le 21 Avr 2023
Hey oussama,
unfortunately, the option to specify Platform Type Names in the XmlOptions menu was introduced in R2023a, see the release notes here: AUTOSAR Blockset Release Notes.
You could upgrade to this latest version to make use of this setting.
I'd also like to point out that the Rte_Type.h file we generate is meant to be used for testing workflows like SIL within the MathWorks tools only and not for deployment. To deploy the generated code, the generated ARXML files should be used to have Rte_Type.h (and other headers like those found in the stub directory) generated by an RTE Generator, a third party tool.
I hope this answer helps.
Philipp
  1 commentaire
oussama
oussama le 24 Avr 2023
Thank you for your replay, that was very helpful.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur AUTOSAR Blockset dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by