CmMtrCurr_Integration_Manual

1 Dependencies 2

1.1 SWCs 2

1.2 Functions to be provided to Integration Project 2

2 Configuration 3

2.1 Build Time Config 3

2.2 Configuration Files to be provided by Integration Project 3

2.2.1 Da Vinci Config Configuration Changes 3

2.2.2 Manual Configuration Changes 3

3 Integration 5

3.1 Required Global Data Inputs 5

3.2 Specific Include Path present 5

4 Runnable Scheduling 6

5 Memory Mapping 7

5.1 Mapping 7

5.2 Usage 7

5.3 RTE NvM Blocks 7

5.4 Non RTE NvM Blocks 7

6 Compiler Settings 7

6.1 Preprocessor MACRO 7

6.2 Optimization Settings 7

7 Revision Control Log 8

Dependencies

SWCs

ModuleRequired Feature

Note : Referencing the external components should be avoided in most cases. Only in unavoidable circumstance external components should be refered. Developer should track the references.

Functions to be provided to Integration Project

CurrDQPer1

Configuration

Build Time Config

ModulesNotes
None

Configuration Files to be provided by Integration Project

CmMtrCurr_Cfg.h ( Refer CmMtrCurr_Cfg_Template.h in tools folder)

(Data synchronization must be provided at the integration level between 2 ms periodic and Motor Control ISR Periodic’s)

Outputs from the CmMtrCurr (Motor Control ISR) periodic must be synchronized with the outputs from

ES51 Signal correction outputs (Motor Control ISR) and buffered and mapped to 2 ms Task.

Da Vinci Config Configuration Changes

ConstantNotesSWC
MTRCURRPHASEBCPhaseB and Phase C used in Curr Measurement
MTRCURRPHASECBPhaseC and Phase B used in Curr Measurement
MTRCURRPHASEACPhaseA and Phase C used in Curr Measurement
MTRCURRPHASECAPhaseC and Phase A used in Curr Measurement
MTRCURRPHASEABPhaseA and Phase B used in Curr Measurement
MTRCURRPHASEBAPhaseB and Phase A used in Curr Measurement

Note: Only one of the configuration can be selected based on the requirements. Make sure order matches oreder in ADC data read ie MTRCURRPHASEBC - “BC” represents current_1 is phase B and current_2 is phase C .

Manual Configuration Changes

ConstantNotesSWC
none

Integration

Required Global Data Inputs

Specific Include Path present

Yes

Runnable Scheduling

This section specifies the required runnable scheduling.

InitScheduling RequirementsTrigger
CmMtrCurr_InitNoneRTE
RunnableScheduling RequirementsTrigger
CmMtrCurr_Per2NoneRTE(2MilliS)
CmMtrCurr_Per1NoneRTE(100 MilliS)
CurrDQPer1After DigMSB Signal processingISR (50MicroS)

.

Memory Mapping

Mapping

Memory SectionContentsNotes
CMMTRCURR_START_SEC_VAR_CLEARED_16
CMMTRCURR_START_SEC_VAR_CLEARED_8
CMMTRCURR_START_SEC_VAR_CLEARED_BOOLEAN
CMMTRCURR_START_SEC_VAR_CLEARED_32
SA_CMMTRCURR_CODE
RTE_START_SEC_SA_CMMTRCURR_APPL_CODE

* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.

Usage

Table 1: ARM Cortex R4 Memory Usage

FeatureRAMROM

RTE NvM Blocks

Block Name
None

Note : Size of the NVM block if configured in developer

Non RTE NvM Blocks

Block Name
None

Note : Size of the NVM block if configured in developer

Compiler Settings

Preprocessor MACRO

None

Optimization Settings

None

Revision Control Log

Rev #Change DescriptionDateAuthor
1Initial version7-Sep- 13nzt9hv
Last modified October 12, 2025: Initial commit (0347a62)