FlsMem Integration Manual
Integration Manual
For
FlsMem
VERSION: 5
DATE: 08/26/16
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Location: The official version of this document is stored in the Nexteer Configuration Management System.
Revision History
Sl. No. | Description | Author | Version | Date |
1 | Initial version | Lucas Wendling | 1 | 10/07/15 |
2 | Updated with changes for DTS configuration for Flash CRC check | Avinash James | 2 | 03/18/16 |
3 | Removed FlsMemCodFlsSngBit handling | Avinash James | 3 | 03/31/16 |
4 | Added Trusted function for DTS clean up | Avinash James | 4 | 04/18/16 |
5 | Added Single bit ECC error handler and name correction for trusted funcions | Avinash James | 5 | 08/26/2016 |
Table of Contents
3.2 Global Functions(Non RTE) to be provided to Integration Project 6
4 Configuration REQUIREMeNTS 7
4.2 Configuration Files to be provided by Integration Project 7
4.3 Da Vinci Parameter Configuration Changes 7
4.4 DaVinci Interrupt Configuration Changes 7
4.5 Manual Configuration Changes 7
5 Integration DATAFLOW REQUIREMENTS 8
5.1 Required Global Data Inputs 8
5.2 Required Global Data Outputs 8
5.3 Specific Include Path present 8
Abbrevations And Acronyms
Abbreviation | Description |
DFD | Design functional diagram |
MDD | Module design Document |
FDD | Functional Design Document |
CCT | Common Checksum Tool |
References
This section lists the title & version of all the documents that are referred for development of this document
Sr. No. | Title | Version |
1 | FDD – CM102A FlsMem | See Synergy subproject version |
2 | Software Naming Conventions | Process 04.02.00 |
3 | Software Coding Standards | Process 04.02.00 |
Dependencies
SWCs
Module | Required Feature |
AR202A MicroCtrlrSuprt | NxtrMcuSuprtLib functions and register definitions |
CM800A SyncCrc | CRC HW Module Configuration and Allocation |
Note : Referencing the external components should be avoided in most cases. Only in unavoidable circumstance external components should be referred. Developer should track the references.
Global Functions(Non RTE) to be provided to Integration Project
DtsInin - To be defined as a trusted function as the DTS Channel master registers need to be configured in the supervisor mode.
DtsClnUp - To be defined as a trusted function as the DTS registers are being re-configured in the supervisor mode to avoid access protection violation
CodFlsSngBitEcc – Single bit code flash ECC error handler call back function provided to the MCAL driver
Configuration REQUIREMeNTS
Build Time Config
Modules | Notes | |
None |
Configuration Files to be provided by Integration Project
CDD_FlsMem_Cfg.c
CDD_FlsMem_Cfg_private.h
Da Vinci Parameter Configuration Changes
Parameter | Notes | SWC |
/Nexteer/FlsMem/FlashCRCRegnConfig/ StartAddress | Configured with “FlashCRCRegnConfig” Each Flash region(for eg:- Boot, App, Cal1) has a start address where the code resides on the flash | FlsMem |
/Nexteer/FlsMem/FlashCRCRegnConfig/Length | Configured with “FlashCRCRegnConfig” Each Flash region has a length defined for the region | FlsMem |
/Nexteer/FlsMem/FlashCRCRegnConfig/PredefinedCrcAddress | Configured with “FlashCRCRegnConfig” Each Flash region has a PredefinedCrcAddress defined for the region which is used by the CCT tool for storing the checksum on the flash and serves as the reference location to retrieve the pre calculated CRC and do a comparison with calculated CRC | FlsMem |
/Renesas/EcucDefs_Mcu/Mcu/McuModuleConfiguration /McuEcmErrorSourcesCfg/McuEcmErrorSource36 | Call back function name is “CodFlsSngBitEcc”. Refer the CM104A Integration manual for the configuration of the error source. (Type of the error, classification of the error eg FENMI or EI information) . |
DaVinci Interrupt Configuration Changes
ISR Name | VIM # | Priority Dependency | Notes |
Manual Configuration Changes
Constant | Notes | SWC |
None |
Integration DATAFLOW REQUIREMENTS
Required Global Data Inputs
None
Required Global Data Outputs
None
Specific Include Path present
Yes
Runnable Scheduling
This section specifies the required runnable scheduling.
Init | Scheduling Requirements | Trigger |
FlsMemInit1 | None | Once At Init (RTE) |
FlsMemInit2 | Non-RTE Init, Called in Startup Sequence* | Function call in Startup Sequence |
Runnable | Scheduling Requirements | Trigger |
FlsMemPer2 | None | 100ms(RTE) |
*“FlsMemInit2” shall schedule after OS Start – Refer CM100A Start up sequence.
PEG shall be configured before “FlsMemInit2”.
CrcHw Init shall be scheduled before “FlsMemInit2”.
Memory Map REQUIREMENTS
Mapping
Memory Section | Contents | Notes |
CDD_FlsMem_START_SEC_CODE | ||
* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.
Usage
Feature | RAM | ROM |
Table 1: ARM Cortex R4 Memory Usage
NvM Blocks
*See DataDict.m
Compiler Settings
Preprocessor MACRO
None
Optimization Settings
None
Appendix
The current implementation of the Flash Config Blocks in the configurator accepts values for all the parameters. Future implementation shall be targeted with parameters being able to also accept linker symbols