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.DescriptionAuthorVersionDate
1Initial versionLucas Wendling110/07/15
2Updated with changes for DTS configuration for Flash CRC checkAvinash James203/18/16
3Removed FlsMemCodFlsSngBit handlingAvinash James303/31/16
4Added Trusted function for DTS clean upAvinash James404/18/16
5Added Single bit ECC error handler and name correction for trusted funcionsAvinash James508/26/2016

Table of Contents

1 Abbrevations And Acronyms 4

2 References 5

3 Dependencies 6

3.1 SWCs 6

3.2 Global Functions(Non RTE) to be provided to Integration Project 6

4 Configuration REQUIREMeNTS 7

4.1 Build Time Config 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

6 Runnable Scheduling 9

7 Memory Map REQUIREMENTS 10

7.1 Mapping 10

7.2 Usage 10

7.3 NvM Blocks 10

8 Compiler Settings 11

8.1 Preprocessor MACRO 11

8.2 Optimization Settings 11

9 Appendix 12

Abbrevations And Acronyms

AbbreviationDescription
DFDDesign functional diagram
MDDModule design Document
FDDFunctional Design Document
CCTCommon Checksum Tool

References

This section lists the title & version of all the documents that are referred for development of this document

Sr. No.TitleVersion
1FDD – CM102A FlsMemSee Synergy subproject version
2Software Naming ConventionsProcess 04.02.00
3Software Coding StandardsProcess 04.02.00

Dependencies

SWCs

ModuleRequired Feature
AR202A MicroCtrlrSuprtNxtrMcuSuprtLib functions and register definitions
CM800A SyncCrcCRC 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

ModulesNotes
None

Configuration Files to be provided by Integration Project

CDD_FlsMem_Cfg.c

CDD_FlsMem_Cfg_private.h

Da Vinci Parameter Configuration Changes

ParameterNotesSWC
/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 NameVIM #Priority DependencyNotes

Manual Configuration Changes

ConstantNotesSWC
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.

InitScheduling RequirementsTrigger
FlsMemInit1NoneOnce At Init (RTE)
FlsMemInit2Non-RTE Init, Called in Startup Sequence*Function call in Startup Sequence
RunnableScheduling RequirementsTrigger
FlsMemPer2None100ms(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 SectionContentsNotes
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

FeatureRAMROM

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

Last modified October 12, 2025: Initial commit (1fadfc4)