MATLAB: What is new in the Embedded Coder® Support Package for AUTOSAR in R2015b (15.2.1)

Embedded Coder

What is new in the Embedded Coder® Support Package for AUTOSAR in R2015b (15.2.1)?

Best Answer

The R2015b Embedded Coder Support Package for AUTOSAR Standard, Version 15.2.1, includes the following features and bug fixes.
Features:
  • AUTOSAR Validation and Synchronization API: Programmatically validate and synchronize AUTOSAR model configurations
>>   autosar.api.validateModel('rtwdemo_autosar_counter');
>>   autosar.api.syncModel('rtwdemo_autosar_counter');
Equivalent to Validate and Synchronize icons in graphical views of the AUTOSAR configuration.
  • ARXML Round-Trip: Import CompuMethods of category SCALE_LINEAR_AND_TEXTTABLE
Ability to round-trip CompuMethods that use both LINEAR and TEXTTABLE scaling. Importing application data types that reference CompuMethods of category SCALE_LINEAR_AND_TEXTTABLE creates Simulink.NumericTypes and Simulink.AliasTypes in the Simulink workspace. In Simulink, you can modify the LINEAR scaling for the CompuMethods, but the TEXTTABLE scaling is read-only.
Bug Fixes:
  • Multiple ApplicationDataTypes created from same Simulink data type, but with different min/max values, now reference the same CompuMethod. Previously, each ApplicationDataType referenced a separate CompuMethod.
  • During arxml import, for ArTypedPerInstanceMemory referencing ApplicationArrayDataTypes, create DataStoreMemory initialized with Dimensions and Initial Value.
  • In the AUTOSAR configuration UI, when mapping of Simulink inport to PortInterface DataElement changes, update the trigger port for the associated Event.
  • Allow import of ImplementationDataType with category TYPE_REFERENCE (with reference to another ImplementationDataType with category DATA_REFERENCE, i.e., VoidPtr). The error message for previous releases begins with the following text:
Error using Simulink.metamodel.arplatform.ArxmlImporter/read
Assertion failed: Could not find context sequence for type / at
b:\matlab\src\arxml_util\arxml\arxmlreadtransformer4p0.cpp:7316:
  • Update AUTOSAR configuration UI icons for NvDataInterface: NvReceiverPorts, NvSenderPorts, and NvSenderReceiverPorts.
  • Change Nv Data Interfaces label to Non-Volatile Data Interfaces in the Nv "Add Interfaces" dialog.
  • Adding an NV SenderReceiverPort through the API now correctly errors out for schema 4.0 models.
  • Correct code generation error previously thrown when using DataAccessMode QueuedExplicitReceive with NV Interface.
  • When the name of a NvDataInterface or DataElement name is updated using import with update (updateModel), the mapping now is correctly updated.
  • Corrected arxml exporter error when building a model with a mixture of Receiver/Sender and NvReceiver/NvSender ports. The error for previous releases is the following:
ERROR: The call to autosar_make_rtw_hook, during the exit hook generated the following error: Cannot create reference to element [unnamed].
  • Change default names of DataElements in NV Interface to be NVData1, NVData2 etc.
  • Change Nv Sender Receiver Ports label to Non-Volatile Data Ports in the Nv "Add Ports" dialog.
  • Prevent inclusion of old arguments in the exported interface when using "Invoke AUTOSAR Server Operation" block.
  • When using the AUTOSAR configuration UI, a change in a data element name for an non-volatile data interface now results in an update to the drop down menu for Simulink port mapping.
  • Prevent Segv when unmapped component's VARIABLE-ACCESS has a missing VARIABLE-PROTOTYPE reference.
  • Changed the default ApplicationError for a model that has an error argument but no predefined error codes from 0 to 1.