Skip to content

Latest commit

 

History

History
128 lines (109 loc) · 2.95 KB

NvM.md

File metadata and controls

128 lines (109 loc) · 2.95 KB

NvM

  • Modules to be configured
    1. Fee
    2. NvM
  • JonFinished

Fee Module

Block Configuration

  1. Add FeeBlock with desired value and short name

NvM module

Block Descriptor tab

  1. add nvMBlockDescriptor
  2. Set the below items
    • Continer Details
      • Block Use Crc
      • Calc Ram Block Crc
      • Max Num Of Read Retries
      • Max Num Of Write Retries
      • Select Block For Read All
      • Select Block For Write All
    • To Be Configured
      • Block Crc Type
      • Block Management Type
      • Nv Block Base Number
      • Nv Block Length
      • Nv Block Num
      • Nvram Block Identifier
      • Ram Block Data Address
      • Rom Block Data Address
      • Rom Block Num
      • Single Block Callback
      • Write Verification Data Size
  3. right click on block descriptor, and then click NvMTargetBlockReference
    • jump to NvMTargetBlockReference (automatically)
    • Choose Ea or Fee (Normally Fee Ref)
      • jump to NvMFeeRef (automatically)
      • click Browse and select appropriate FeeBlock

JobFinished configuration

Go to SWC_NvM

SWC_NvM

Ports

  1. Add provided port with NvMNotifyJobFinished Interface!!!
  2. Enable Provided Com Specs
  3. Type in Queue Length (typ: 10???)

Runnables

  1. Add Runnable named NvMJobFinished_[BLOCKNAME]
  2. RTE Event > Add > Operation Invoked Event

EcucValueCollection

  1. Go To Service and I/O tab
  2. Connect added port with PNJF_NvMBlock_XXX of Svc_NvM

OS & RTE

  1. Go to OS
  2. Add Events for extended tasks OsEvent_NvMCallback__
  3. Add Task OsTask_ASW_FG2_NvMCallback (prioritry between ASW_FG1 ~ ASW_FG3)
  4. Register events for Event Ref

OS


Runnables

  1. Add Runnable named NvMJobFinished_[BLOCKNAME]

All Contents

  1. Right click on Events
  2. Add Operation Invoked Event
  3. Rename shortname to OIE_NvMJobFinished_[BLOCKNAME]
  4. Designate Start On Event

(Optional) Os

  1. Make Task will be containing NvM Events
  2. Make tasks with number of Operation Invoked Events
  3. Register Evenets for NvM Task

Rte > Task Mapping


Caution!

  • NvMNvBlockBaseNumber should be equal to right shifted FeeBlockNumber
  • There should be no unmapped FeeBlock
  • FeeBlockLength should be greater than NvMBlockLength (normally, +2)

Concept

Block:

  1. Nv Block:
    • Base Number:
    • Length:
    • Num:
  2. Nvram Block:
    • Identifier:
    • Device Id:
  3. Rom Block:
    • Data Address:
    • Num:
  4. Ram Block:
    • Data Address:

SWC_NvM

Ports tab

  1. add Port with desired interface (server-client)
  2. rename
  3. In Communication Spec, select desired operation then enable Com Specs

Runnables tab

  1. Click Operation / Mode / Trigger Access
  2. Add enabled operations to Synchronous Server Call Points

EcucVallueCollection

Service and I/O tab

  1. Select Svc and desired ports
  2. Click add
  3. Uncheck Respecting Naming Rules
  4. Mapping with proper service name