This document describes support for OSEK operating system used with winidea.

Similar documents
HCS12 BDM Getting Started V4.3

_ V ST STM8 Family On-Chip Emulation. Contents. Technical Notes

_ V NEC V850ES/Fx3 Family In-Circuit Emulation. Contents. Technical Notes

_ V Renesas R8C In-Circuit Emulation. Contents. Technical Notes

Installation and Quick Start of isystem s winidea Open in DAVE. Tutorial Version 1.0, May, 2014

Chapter 12 Visual Program Debugger

ETAS RTA-HVR Hypervisor & Multi RTA-OS Profiling

1. Introduction Document organization and format Technical support Software Installation...3

NEC 78K0- Family On-Chip Emulation

Trace Getting Started V8.02

OS Awareness Manual OSEK/ORTI

Enabling safer embedded systems

Renesas 78K/78K0R/RL78 Family In-Circuit Emulation

Lab 3-2: Exploring the Heap

Freescale 68HCS12 Family On-Chip Emulation

Evaluation & Development Kit for Freescale PowerPC MPC5517 Microcontroller

Contents. Cortex M On-Chip Emulation. Technical Notes V

Tool Qualification. Get the Most out of Development and Testing with the Maker of the Blue Box V11.01

User Trace Port Trace Port Emulation on Processors without on-chip Trace Hardware

ICE/FIRE Analyzer Programming Dialog

OSEK/VDX. OSEK Run Time Interface (ORTI) Part A: Language Specification. Version November 2005

_ V1.3. MPC564xB ActiveGT POD. POD Hardware Reference

An Introduction to Komodo

_ V Intel 8085 Family In-Circuit Emulation. Contents. Technical Notes

Profiling Applications and Creating Accelerators

IBM VisualAge for Java,Version3.5. Distributed Debugger for Workstations

The ThreadX C-SPY plugin

JCreator. Starting JCreator

Freescale S12X Family In-Circuit Emulation

Supplement: Visual C++ Debugging

Eclipse-Based CodeWarrior Debugger

NEW CEIBO DEBUGGER. Menus and Commands

_ V1.1. EVB-5566 Evaluation & Development Kit for Freescale PowerPC MPC5566 Microcontroller. User s Manual. Ordering code

Debugging INTRODUCTION DEBUGGER WHAT IS VBA'S DEBUGGING ENVIRONMENT?

Assembly Language Fundamentals

_ V Freescale ColdFire Family On-Chip Emulation. Contents. Technical Notes

TREX Set-Up Guide: Creating a TREX Executable File for Windows

Intro to MS Visual C++ Debugging

O B J E C T L E V E L T E S T I N G

Assembly Programming in Atmel Studio 7 Step by Step Tutorial

_ V PowerPC 4xx Family On-Chip Emulation. Contents. Technical Notes

NIOS II Instantiating the Off-chip Trace Logic

embos Real-Time Operating System embos plug-in for IAR C-Spy Debugger Document: UM01025 Software Version: 3.1 Revision: 0 Date: May 3, 2018

NetBeans Tutorial. For Introduction to Java Programming By Y. Daniel Liang. This tutorial applies to NetBeans 6, 7, or a higher version.

embos Real-Time Operating System embos plug-in for IAR C-Spy Debugger Document: UM01025 Software Version: 3.0 Revision: 0 Date: September 18, 2017

The NetBeans Debugger: A Brief Tutorial

Lab6 GDB debugging. Conventions. Department of Computer Science and Information Engineering National Taiwan University

Parallel Debugging. ª Objective. ª Contents. ª Learn the basics of debugging parallel programs

RealTime-UnitTest On Object Code Level

Intro to Flex Debugging and Profiling

Noopur Gupta Eclipse JDT/UI Committer IBM India

IBM i Debugger. Overview Service Entry Points Debugger Functions Attach to an IBM i Job Launch Configurations and Settings

Support for RISC-V. Lauterbach GmbH. Bob Kupyn Lauterbach Markus Goehrle - Lauterbach GmbH

_ V1.2. Motorola 68HC08 JL POD rev. D1. POD Hardware Reference

Function names can be specified with winidea syntax for qualified names, if multiple download files and file static functions are tested.

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... TriCore... TriCore Monitor... 1

A Tutorial for ECE 175

Product Information Embedded Operating Systems

TRACE32 Debugger Getting Started... ICD Tutorial About the Tutorial... 2

AIOP Task Aware Debug

ARM-ETM Programming Dialog

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang

CUDA Development Using NVIDIA Nsight, Eclipse Edition. David Goodwin

Supported Architectures Supported Cores Supported microcontroller families. Cortex-M0 Cortex-M1 Cortex-M3 Cortex-M4 ARM7 ARM720T ARM7DI ARM7TDMI

Advanced Debugging using the Ashling MPC5500 tools

Freescale Semiconductor Inc. Vybrid DS-5 Getting Started Guide Rev 1.0

Raptor Application Monitor Guide

Hands-on CUDA exercises

CS193P: HelloPoly Walkthrough

M16C R8C PC7501 Emulator Debugger V Release Notes

SDKs - Eclipse. SENG 403, Tutorial 2

Computing and compilers

Cortex-M3 Family On-Chip Emulation

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Changing the Embedded World TM. Module 3: Getting Started Debugging

RTOS Debugger for RTX-ARM

News in RSA-RTE 10.1 updated for sprint Mattias Mohlin, March 2017

COBOL-IT Developer Studio 2.0

Testing and Debugging

CS420: Operating Systems. OS Services & System Calls

Debugging in AVR32 Studio

1. Allowed you to see the value of one or more variables, or 2. Indicated where you were in the execution of a program

Simplygon Unreal Engine 4 Integration Guide. January 9, 2015

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

C++ for Everyone, 2e, Cay Horstmann, Copyright 2012 John Wiley and Sons, Inc. All rights reserved. Using a Debugger WE5.

A Quick Introduction to MPLAB SIM

ACT-R Environment Manual

1. Open the folder called TI APPS and Emulators. 2. Open the folder called 83plus emulator

Under the Debug menu, there are two menu items for executing your code: the Start (F5) option and the

PL/SQL Developer 10.0 User s Guide. February 2013

Debugging and Profiling

RTA-OSEK Freescale MPC55xx/56xx with the WindRiver Compiler

HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS

file://c:\documents and Settings\degrysep\Local Settings\Temp\~hh607E.htm

Using SQL Developer. Oracle University and Egabi Solutions use only

Enterprise Architect. User Guide Series. Profiling

Enterprise Architect. User Guide Series. Profiling. Author: Sparx Systems. Date: 10/05/2018. Version: 1.0 CREATED WITH

Operating System. Chapter 4. Threads. Lynn Choi School of Electrical Engineering

This chapter introduces how to use the emulator of TOPICE quickly.

XML Builder. Version Beta

Transcription:

_ V1.2 TECHNICAL INFORMATION OSEK operating system Introduction This document describes support for OSEK operating system used with winidea. It assumes that: Hardware is configured properly, An OSEK builder was used to generate the application, with debug support for at least RUNNINGTASK indication. Make sure that a valid ORTI file is generated by entering the appropriate definitions into the OIL file. winidea supports ORTI 1.x and 2.x files. The OSEK and user sources have been compiled and linked to an executable, The executable is listed in the Debug/Files for download dialog. Note that an OSEK Freeze Mode debugging license is required for OSEK debugging. Configuration OSEK awareness is configured in the Debug/Operating system dialog: Select the OSEK option Click the Setup button to configure OSEK options isystem, July 2002 1/9

In the ORTI file field specify the path to the ORTI file generated by the OSEK builder. Click OK in both dialogs to confirm configuration Perform Debug/Download isystem, July 2002 2/9

Viewing OSEK objects OSEK objects are displayed in the OS window Select the View/Operating System menu item The top item in the OS window displays the operating system (OSEK), value displays the version as reported in the ORTI file. IMPLEMENTATION The item IMPLEMENTATION is special as it defines the layout of other display OSEK objects. In the figure above, it defines layout of OS, STACK and TASK objects. The OS object layout (expanded) defines two members: RUNNINGTASK and CURRENTSERVICE. Every member has a description identifying its meaning, displayed in the Value column. When an OS object member is expanded, it shows valid values (if applicable) for this member to assume. In the above figure, the RUNNINGTASK can assume values 0 through 4. When value 0 is contained, NO_TASK task is executing, value 1 refers to TASKSND etc. Note: the IMPLEMENTATION Objects There can be one or more objects of a type defined in the IMPLEMENTATION part. In this example, one OS type object, 5 TASK and 9 STACK objects exist. When an OS object is expanded it will shown current values for its members. isystem, July 2002 3/9

In the above figure, the os1 object (of type OS), shows current values for RUNNINGTASK and CURRENTSERVICE. winidea reads out its values and maps them to the defintion table (IMPLEMENTATION/OS/RUNNINGTASK, IMPLEMENTATION/OS/CURRENTSERVICE). There are two situations where a value of an OS object member can not be displayed. If the member contains value that can not be found in the definition table (which should only occur before OS initialization starts). See RUNNINGTASK in below figure. If the expression, by which the value is calculated can not be evaluated. In the bellow figure the STACK of TASKSND task is not allocated as the task is suspended. isystem, July 2002 4/9

Task debugging To enable task debugging: Check the Enabled option in the Debug/Operating System dialog Select the task to be debugged. If you wish to perform task specific analyzer operations, check the Analyzer functions option. In this case the trace and the profiler will record only objects in the selected task. In the above example, if the Analyzer functions options would be checked, only functions within the TASKCONS function will be traced or profiled. When all tasks should be either traced or profiled, the option must be unchecked. In the above configuration, breakpoints that occur in the context of task TASKCONS stop the execution only. Note that task debugging must be supported by the hardware. isystem, July 2002 5/9

Application Notes When using OSEK operating system, it must be selected in the Operating System dialog first. Note that associated software license must be obtained, when the debugger s OS awareness is required. Task Debugging When using operating system, the debugging can be limited to one task only and the application can be debugged task-by-task. Tasks, other than the selected one, don t interfere with the selected task. To enable task debugging, the Enabled checkbox must be checked and the particular task (e.g. TASKCONS) being debugged selected in the Debug/Operating System dialog. Operating System dialog Typically, the program contains many functions, which are called from different tasks. With no task debugging, if a breakpoint is set in the function, every time a call is made to the function and the breakpoint is reached, the program execution stops. When the task debugging is enabled, the program execution stops only when the function is called from the task (e.g. TASKCONS) specified in the Debug/Operating System dialog. When any other task calls the function with the breakpoint set, the program execution does not stop. When task debugging is enabled and particular task selected, breakpoints and debug commands like step, step over, don t function in tasks, other than the selected one. Have in mind that step and step over debug commands are implemented using run debug command and breakpoints Analyzer functions Some analyzer operating modes like profiler and trace can be limited to the specific task. Additionally, the profiler can profile either functions or the operating system objects. Trace When the Analyzer functions checkbox is not checked in the Operating system dialog, the trace doesn t feature any task awareness. When the Analyzer functions checkbox is checked and a particular task selected, the trace records only the CPU cycles while the selected task is being active. Additionally, when any trigger is set, it is evaluated only when the selected task is active. isystem, July 2002 6/9

Profiling functions When profiling functions, called by the particular task only, the Analyzer functions option must be checked and a task selected from the combo box. When the option is unchecked, all functions can be profiled regardless to the active task. Refer to the profiler user s guide for more details on profiling functions. Make sure that the function profiler is selected in the Debug/Analyzer Tools/Profiler dialog is selected. Profiler Configuration Dialog Profiling OS objects The OS profiler can be used to record task and service activity. Note: To get correct results Task Debugging should be disabled when profiling OS objects. To enable OS profiler: Configure the analyzer to operate in profiler mode (Hardware/Analyzer Setup/Operation) Invoke the OS Setup dialog from the Debug/Operating System dialog to profile the OS objects. Profiled OS objects must be selected. Note that this example is OSEK based. isystem, July 2002 7/9

OSEK Setup dialog Next, make sure the profiler is set to profile Data and that the Include OS objects option is selected in the profiler configuration dialog. Profiler configuration dialog Open the Profiler/Coverage window (View/Profiler/Coverage) isystem, July 2002 8/9

Start the profiler Select OS Statistics from the context menu to view time and activation statistics. Individual object s statiscs can be inspected by seleting Properties command from the context menu. Select OS Execution from the context menu to view execution history. isystem, July 2002 9/9