21
CANoe.AMD and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

Embed Size (px)

Citation preview

Page 1: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

CANoe.AMD and MICROSAR AMD

Mark Schwager and Hannes Haas

Webinar 2013

Page 2: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 2

Agenda

> MICROSAR AMD Overview

Runtime Measurement (RTM)

Debugging (DBG)

Diagnostic Log and Trace (DLT)

Usage of XCP

Page 3: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 3

MICROSAR AMD Overview

MICROSAR AMD simplifies ECU Development by:

Real-time access to ECU status

Runtime measurement of quite everything

Notification of ECU internal errors and events

Connectivity based on XCP (CAN, LIN, FR, IP…) or VX1000

Page 4: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 4

MICROSAR AMD Overview

Available Features

Runtime Measurement (RTM)

Diagnostic Log and Trace (DLT)

BSW variable access (DBG)

Page 5: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 5

Agenda

MICROSAR AMD Overview

> Runtime Measurement (RTM)

Debugging (DBG)

Diagnostic Log and Trace (DLT)

Usage of XCP

Page 6: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 6

Runtime Measurement (RTM)

Purpose:

Verification of performance goals

Improve code efficiency by profiling

MICROSAR RTM is:

Easy to use

Simple to integrate

Universal

Start

Stop

ECU code

CAN

XCP

CANoe

t = 0.023 ms

AMD RTM

Runtime Measurement

Page 7: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 7

Runtime Measurement (RTM)

Runtime measurement of:

User defined code sections (application and BSW)

Response times of asynchronous activities

Interrupt locking times

SWC runnables

CPU load measurement:

Code section specific

Overall CPU load

Page 8: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 8

Runtime Measurement (RTM)

Measurement Point Configuration

User Measurement points are configured in DaVinci Configurator

Selected BSW modules provide predefined measurement points

E.g. Driver interrupt routines, main- and init Functions

Integration of user measurement points

Add start and stop API calls for each measurement to your code

Page 9: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 11

Runtime Measurement (RTM)

Measurement Results

Min/Max/Average runtime

Number of measurements taken

CPU load (in %) of measured code section

Notification function reporting unexpected high runtime

Helps detecting problematic code sections

Overall CPU Load (Live Mode)

Outlook

Measurement of net runtime (R9 – Q1 2014)

Removal of runtime inflicted external sources e.g. interrupts or callouts

Page 10: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 13

Agenda

MICROSAR AMD Overview

Runtime Measurement (RTM)

> Debugging (DBG)

Diagnostic Log and Trace (DLT)

Usage of XCP

Page 11: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 14

Debugging (DBG)

BSW and RTE Variable Access

Determine the status of BSW modules in real-time

Access to S/R communication data of SWCs

Available for selected MICROSAR BSW module variables

Page 12: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 15

Debugging (DBG)

Read Function Return Values (available with R9 – Q1 2014)

DBG can trigger any API and relay the result to CANoe via XCP

Use-Case example: Determine OS stack usage

Call frequency and activation controlled via CANoe frontend

Page 13: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 16

Debugging (DBG)

Easy to use:

No BSW configuration or integration required

DBG generates A2L file describing available variables

Variable illustration with XCP tool (CANoe.AMD or CANape)

Multiple ways of processing and displaying the data

Example: CANoe state tracker display

Page 14: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 17

Agenda

MICROSAR AMD Overview

Runtime Measurement (RTM)

Debugging (DBG)

> Diagnostic Log and Trace (DLT)

Usage of XCP

Page 15: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 18

Diagnostic Log and Trace (DLT)

Monitoring of application and BSW without debugger

Tracing of internal ECU activity using CANoe.AMD or CANape

Feedback loop for test environments

Transmits result from ECU to tester

Reporting of ECU errors

Page 16: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 19

Diagnostic Log and Trace (DLT)

DLT reports ECU events:

Development Errors reported to DET

Fault Memory (DEM) events (with and without DTC)

Arbitrary text messages (“WriteLine” API)

Customizable notification elements (minimized overhead)

Page 17: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 21

Diagnostic Log and Trace (DLT)

DLT Event Processing in CANoe.AMD

Illustration in Trace

Logging

Evaluation in automated testing (Test Feature Set)

Example: CANoe trace window

Page 18: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 22

Agenda

MICROSAR AMD Overview

Runtime Measurement (RTM)

Debugging (DBG)

Diagnostic Log and Trace (DLT)

> Usage of XCP

Page 19: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 23

Usage of XCP

MICROSAR DLT and DBG use XCP

XCP is a standardized protocol widely used

Existing XCP tools and workflow can be used

XCP was designed to visualize ECU internal data

By using XCP MICROSAR AMD remain lightweight modules

XCP Solution is favored over the AUTOSAR solution by several OEMs

Page 20: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

© 2012 . Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

Slide: 24

XCP Workflow

MICROSAR BSW

A2L

Compiler/Linker

MAP file

Vector ASAP2 Updater

CANoe.AMD CANape import

.a2l

result .a2l

Edit

SIP

_master .a2l

master .a2l

DaVinci Configurator

Includes a2l files from MICROSAR BSW and application

Resolves symbol addresses within a2l files

Delivered with CANoe.AMD

Page 21: Testing and debugging of ECUs using MICROSAR AMD … and MICROSAR AMD Mark Schwager and Hannes Haas Webinar 2013

Thank you for your attention!

Webinar 2013