Copyright Elektrobit (EB) 2012 / Company confidenti ... which includes mandatory modules for all ki...

Preview:

Citation preview

Copyrig

ht E

lektro

bit (E

B) 2

012 / C

om

pany c

onfid

entia

l

Exerc

ise D

escrip

tion

EB

treso

sA

UT

OS

AR

Tra

inin

g

Intro

ductio

n

Th

ere

are

slid

es w

ith d

iffere

nt tite

ls:

•o

ve

rvie

w

no

wo

rk is

asso

cia

ted

with

this

ste

p

ove

rvie

w s

lide

s g

ive

yo

u a

n o

ve

rvie

w o

f the

ne

xt e

xe

rcis

e s

tep

•d

oin

g

co

nfig

ura

tion

wo

rk is

ne

ce

ssa

ry

follo

w th

e s

tep

s w

hic

h a

re d

escrib

ed

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

Insta

llatio

n -

doin

g

EB

tresos S

tudio

and c

ygw

in in

sta

llatio

n:

•C

opy tre

sos_W

incore

.zip

and c

ygw

in_W

incore

.zip

onto

your P

C a

t C:\E

B, E

xtra

ct h

ere

–R

esultin

g s

tructu

re:

–C

:\EB

\tresos_W

incore

C:\E

B\c

ygw

in_W

incore

•If n

eeded, th

e d

ongle

driv

er is

insta

lled b

y e

xecutin

g

C:\E

B\tre

sos_W

incore

\bin

\Wib

uIn

sta

ll.bat

•S

tart C

:\EB

\tresos_W

incore

\bin

\tresos_gui.e

xe

–C

reate

work

space �

yes

–C

lose w

elc

om

e w

indow

EB

tresos In

specto

r insta

llatio

n:

•E

xecute

:C

:\EB

\tresos_In

specto

r\EB

_tre

sos_In

specto

r_and_B

usm

irrorR

untim

e_3_3_2.e

xe

•S

et e

nviro

nm

ent v

aria

ble

EB

_LIC

EN

SE

_F

ILE

to

C:\E

B\tre

sos_In

specto

r\EB

_LIC

EN

SE

_33.lic

Serv

ice

Layer

NvM

Ap

plic

atio

n

Ab

stra

ctio

n

Layer

SW

C_

Cyc

licC

ou

nte

r

P_S

etC

ounte

r

-If_

Counte

r:

--C

ou

nte

rVa

lue

P_C

ounte

rOut

-If_

Counte

r:

--C

ou

nte

rVa

lue

P_N

ew

Counte

r

-If_

Counte

r:

--C

ou

nte

rVa

lue

P_D

et

-D

ET

Serv

ice:

--R

ep

ortE

rror

Runnable

R_SetCounter

Runnable

R_Cyclic

EC

U

Ab

stra

ctio

n

Layer

µC

Ab

stra

ctio

n

Layer

De

t

SGCounterOut_272T

SGCounterIn_256RPdu_CounterIn_256R

Pdu_CounterOut_272T

Dio

IoH

wA

b

treso

s In

sp

ecto

r

Ca

nId

: 0x1

00

Ca

nId

: 0x1

10

Runnable

R_GetKey

Os

Co

m

Pd

uR

Ca

nIf

Ca

n

Rte

_T

ime

Ta

sk

Rte

_E

ve

ntT

ask

… o

the

r T

asks

Ca

nS

M Co

mM Bsw

M

Ecu

M

De

m

Crc

Ee

p

Ea

NV

MB

lock_

Co

nfig

ID

NV

M_

BL

OC

K_

DE

M

P_N

vM

-N

vM

Serv

ice:

--W

riteB

lock

NvM

_B

lock_

Co

un

terV

alu

e

Ke

ys: 0

..9

File

:E

ep_m

em

ory

.bin

SW

C_

Cyclic

Co

un

ter_

Co

un

terV

alu

e

pe

rsis

ten

t sto

rag

e o

f me

mo

ry b

locks

glo

ba

l va

riab

le:

Me

mIf

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 6

Tool -

overv

iew

Ap

plic

atio

n

Ab

stra

ctio

n

Layer

Serv

ice

Layer

EC

U

Ab

stra

ctio

n

Layer

µC

Ab

stra

ctio

n

Layer

De

t

Os

Ecu

MD

em

Bsw

M

Mcu

(stu

b)

Rte

(Bsw

Sch

ed

ule

r On

ly)

loa

d

ba

sic

tem

pla

te:

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 7

Tool -

overv

iew

Ove

rvie

w:

•T

his

exe

rcis

e s

tep

use

s a

ge

ne

ric te

mp

late

to s

et u

p a

ba

sic

co

nfig

ura

tion

pro

ject w

hic

h in

clu

de

s m

an

da

tory

mo

du

les fo

r all k

ind

of p

roje

cts

Ob

jectiv

es:

•W

ork

ing

with

wo

rkflo

ws

•G

et fa

milia

r with

the

too

l

Do

ing

(follo

w th

e d

eta

iled

hin

ts o

n th

e n

ext p

ag

es –

this

is a

n o

ve

rvie

w o

nly

)

•F

ollo

w th

e w

ork

flow

an

d fin

aliz

e th

e s

tep

:

“Cre

ate

yo

ur p

roje

ct”

Tool –

doin

g

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 8

Exe

cu

te w

ork

flow

un

til

„Cre

ate

ne

w p

roje

ct“ d

ialo

g

�N

ext s

lide

Tool -

doin

g

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 9

•S

ele

ct b

asic

Te

mp

late

•S

ele

ct „C

op

y p

roje

cts

into

wo

rksp

ace

•„F

inis

h“

Tool -

doin

g

•E

xe

cu

te w

ork

flow

ste

p „R

en

am

e p

roje

ct“ b

y fo

llow

ing

the

instru

ctio

ns o

f the

wo

rkflo

w d

escrip

tion

for th

is s

tep

–R

enam

e to

„Tra

inin

g“

•E

xe

cu

te w

ork

flow

ste

p „L

oa

d p

roje

ct“

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

0

•G

en

era

te P

roje

ct

•C

lose

EB

treso

s S

tud

io

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

1

Tool -

doin

g

Bu

ild p

roje

ct

•S

tart C

:\EB

\tresos_W

incore

\work

space\T

rain

ing\u

til\launch.b

at

–m

ake

de

pe

nd

–m

ake

–m

ake

de

bu

g

•V

iew

�fu

nctio

n b

row

se

r

–F

un

ctio

n F

ilter: O

S_

TA

SK

_

–S

ele

ct a

ll files

–S

ele

ct fu

nctio

n: O

S_

TA

SK

_S

chM

Dia

gS

tate

Task_

20m

s

–S

et B

P

•D

eb

ug th

rou

gh

ap

plic

atio

n

–R

un

–C

on

tinu

eO

S_

TA

SK

_S

ch

M* is

ca

lled

cyclic

ally

•don’t c

lose th

e c

om

mand lin

e w

indow

–it is

needed fo

r the fo

llow

ing

exerc

ises

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

2

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

3

Os -

overv

iew

Ove

rvie

w:

•T

his

exe

rcis

e s

tep

co

nfig

ure

s th

e O

s ta

ks fo

r ou

r Tra

inin

g p

roje

ct to

be

ab

le

to m

ap

ap

plic

atio

ns to

tasks la

ter o

n

Ob

jectiv

es:

•C

on

figu

ring

the

Os

Do

ing

(follo

w th

e d

eta

iled

hin

ts o

n th

e n

ext p

ag

es –

this

is a

n o

ve

rvie

w o

nly

)

•F

ollo

w th

e w

ork

flow

an

d fin

aliz

e th

e s

tep

:

“Co

nfig

ure

Os m

od

ule

Os -

doin

g

•E

xe

cu

te w

ork

flow

ste

p „C

on

figu

re O

s m

od

ule

–S

witc

h to

tap: „O

sT

ask“

–A

dd tw

o ta

sks:

•R

te_T

imeT

ask (p

riority

: 5, s

tack s

ize: 1

024)

•R

te_E

ventT

ask (p

riority

: 5, s

tack s

ize: 1

024)

•G

en

era

te p

roje

ct

•P

roje

ct n

ee

ds n

ot to

be

co

mp

iled

as th

e b

eh

avio

ur d

oe

s n

ot c

ha

ng

e

co

mp

are

d to

the

pre

vio

us e

xe

rcis

e

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

4

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

5

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

6

Rte

Contra

ct P

hase -

overv

iew

IoH

wA

b

Ru

nn

ab

le R

_G

etK

ey

#in

clu

de "R

te_Io

Hw

Ab

.h"

/*------------------------[run

nab

le e

ntity

skele

ton

s]------------------------*/

/* TA

G B

EG

IN_R

UN

NA

BL

E Io

Hw

Ab

_R

_G

etK

ey M

OD

IFIE

D=

FA

LS

E */

vo

id Io

Hw

Ab

_R

_G

etK

ey (v

oid

)

{

Std

_R

etu

rnT

yp

e s

tatu

s =

E_O

K;

uin

t8 C

ou

nte

rValu

e;

sta

tus =

Rte

_W

rite_P

_N

ew

Co

un

ter_

Co

un

terV

alu

e(C

ou

nte

rValu

e);

}

P_N

ew

Co

un

ter

Tim

ing

Even

t

SW

-Cdescrip

tion

Application header file

Template file

Co

ntra

ct

ph

ase

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

7

Rte

Contra

ct P

hase -

overv

iew

Ob

jectiv

es

•B

eco

me

acq

ua

inte

d w

ith

–R

te C

ontra

ct P

hase g

enera

tion

–A

pplic

atio

n H

eader F

iles

–S

oftw

are

Com

ponent S

ourc

e C

ode

–E

B tre

sos R

te E

dito

r

Ta

sk

–G

enera

te A

pplic

atio

n H

eader F

iles

–In

spect g

enera

ted A

pplic

atio

n H

eader F

iles

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

8

Rte

Contra

ct P

hase -

doin

g

Se

lect C

:\EB

\Ad

dS

tuff\*.a

rxm

l

Insp

ect g

en

era

ted

files

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 1

9

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit C

orp

ora

tion 2

011

ww

w.e

lektro

bit.c

om

, 13 S

epte

mber 2

012, S

lide 2

0

IoH

wA

b

Sw

c_

Cyclic

Co

un

ter

BSW Application

Sys

tem

De

sig

n,

To

po

log

y

EC

U A

pp

lica

tion

S

oftw

are

EB

tre

so

s S

tud

io

EB

tre

so

s A

uto

Co

re

Rte

Syste

m D

escrip

tion -

overv

iew

Ecu

Te

stN

ode

CanSystem

Imp

ort

syste

m d

escrip

tion

into

EB

treso

s S

tud

io

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

1

Rte

Syste

m D

escrip

tion -

overv

iew

Ob

jectiv

es:

•Im

po

rt Syste

mD

escrip

tion

–C

onfig

ure

Importe

r

•In

sp

ect im

po

rted

da

ta in

Rte

ed

itor

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

2

Rte

Syste

m D

escrip

tion –

doin

g

•In

“Pro

ject E

xp

lore

r”, righ

t clic

k o

n p

roje

ct “E

CU

(WIN

DO

WS

, WIN

32

X8

6)”

–S

ele

ct “Im

-and E

xporte

rs”

•A

dd

an

Imp

orte

r

•C

ho

ose

Syste

m D

escrip

tion

Imp

orte

r

an

d N

am

e it e

.g. “S

ysD

–�

Next

Rte

Syste

m D

escrip

tion –

doin

g

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

3

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

4

Rte

Syste

m D

escrip

tion -

doin

g

•�

Fin

ish

•�

Ap

ply

•�

Ru

n Im

po

rter

•U

pd

ate

se

rvic

e C

om

po

ne

nt

an

d B

SW

M D

escrip

tion

s

•S

tart “R

te E

dito

r”

–In

tab G

enera

l set “R

te G

enera

tor O

utp

ut” to

“Full”

–N

ow

inspect th

e ta

ps

•“Im

ple

menta

tion S

ele

ctio

n”

•“E

vent M

appin

g”

•“D

ata

Mappin

g”

•“S

erv

ice P

ort M

appin

g”

Rte

Syste

m D

escrip

tion -

doin

g

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

5

3.

2.

1.

•clo

se

Rte

ed

itor

•sta

rt co

mp

ositio

n e

dito

r

–in

spect s

yste

m

•clo

se

co

mp

ositio

n e

dito

r

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

6

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

7

Rte

Event M

appin

g -

overv

iew

To

pL

eve

lCo

mp

os

ition

SW

C_

Cyc

licC

ou

nte

rD

ata

Receiv

ed

E

ven

t

Runnable

R_SetCounter

Runnable

R_Cyclic

P_S

etC

ou

nte

r

Tim

ing

Even

t

IoH

wA

bRunnable

R_GetKey

P_N

ew

Co

un

ter

Tim

ing

Even

t

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

8

Rte

Event M

appin

g -

overv

iew

•M

ap B

SW

Events

to T

asks

•M

ap R

te E

vents

to T

asks

•C

alc

ula

te S

erv

ice N

eeds

•B

uild

pro

ject

•D

ebug p

roje

ct

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 2

9

Rte

Event M

appin

g -

doin

g

•O

pen R

teE

dito

r

•S

witc

h to

tab “E

vent M

appin

g”

–M

ap

BS

We

ve

nts

–M

ap

all “T

imin

gE

ve

nts

” toR

te_

Tim

e_T

ask

–M

ap

no

n c

yclic

eve

nts

toR

te_

Eve

nt_

Task

•C

lose R

teE

dito

r

2.

3.

4.

1.

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

0

Rte

Event M

appin

g -

doin

g

•C

alc

ula

te S

erv

ice N

eeds

-in

spect re

sults

•A

dd D

iom

odule

into

pro

ject

–rig

ht c

lick o

nto

pro

ject:

–A

dd D

iostu

b P

lugIn

into

module

config

ura

tion (re

com

mended c

onfig

ura

tion: D

ioR

ecC

onfig

ura

tion)

•G

enera

te p

roje

ct

•A

dd a

pplic

atio

n–

Copy th

e a

pplic

atio

n file

s fro

m “C

:\EB

\AddS

tuff\s

wc” to

“C

:\EB

\tresos_W

inC

ore

\work

space\T

rain

ing\s

ourc

e\a

pplic

atio

n”

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

1

Rte

Event M

appin

g -

doin

g

On c

om

mand lin

e w

indow

:•

ma

ke

cle

an

ma

ke

de

pe

nd

•m

ake

•m

ake

de

bu

g

Ve

rify c

yclic

exe

cu

tion

of c

yclic

run

na

ble

:

•V

iew

�F

un

ctio

n B

row

se

r•

Fu

nctio

n F

ilter: S

WC

_

•S

ele

ct a

ll files

•S

ele

ct fu

nctio

n: S

WC

_C

yclic

Co

unte

r__R

_C

yclic

•S

et B

P

•R

un

•C

on

tinu

e

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

2

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

3

Exerc

ise -

overv

iew

SW

C_

Cyc

licC

ou

nte

r

P_S

etC

ou

nte

rP

_D

et

Ap

plic

atio

n

Ab

stra

ctio

n

Layer

Serv

ice

Layer

EC

U

Ab

stra

ctio

n

Layer

µC

Ab

stra

ctio

n

Layer

De

tC

om

Pd

uR

P_C

ou

nte

rOu

t

SG

db

c_

Cou

nte

rOu

t_27

2T

SG

db

c_

Cou

nte

rIn_25

6R

PD

db

c_

Pdu_R

x_

256R

PD

db

c_

Pdu_T

x_

27

2T

Ca

nIf

Ca

nD

io

IoH

wA

b

P_N

ew

Co

un

ter

EB

treso

s In

sp

ecto

r

Ca

nId

: 25

6 (0

x1

00

)C

an

Id: 2

72

(0x11

0)

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

4

Rte

Serv

ice P

ort M

appin

g -

overv

iew

•D

et

–E

nable

RT

E u

sage

–C

onfig

ure

a D

ET

Serv

ice P

ort w

ith M

odule

ID 2

56

(Add o

ne “D

et A

ccessin

g S

oftw

are

Com

ponents

)

–C

onfig

ure

user c

allb

ack fu

nctio

n M

y_D

etC

allb

ack

•R

te–G

enera

te S

erv

ice P

ort

–C

onnect S

erv

ice P

ort

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

5

Rte

Serv

ice P

ort M

appin

g -

doin

g

•O

pen D

et m

odule

–In

tab

“Ge

ne

ral”

•se

lect “E

na

ble

Rte

Usa

ge

•E

na

ble

“De

tNo

tifica

tion”

–In

tab

“De

t Acce

ssin

g S

oftw

are

Co

mp

onents

”, ad

d o

ne

Co

mp

on

ent

–In

tab

“De

tErro

rHo

ok” a

dd

“My_

De

tCa

llba

ck”

–In

tab

“De

tHe

ad

erF

ile” a

dd

“My_

De

tCa

llba

ck.h

•U

pd

ate

se

rvic

e C

om

po

ne

nt a

nd

BS

WM

De

scrip

tion

s

Rte

Serv

ice P

ort M

appin

g -

doin

g

Op

en

Rte

ed

itor:

•S

witc

h to

tab

„Se

rvic

e P

ort M

ap

pin

g“

•C

on

ne

ct D

et s

erv

ice

po

rt toS

WC

_C

yclic

Co

un

ter

•S

witc

h to

tab

„Eve

nt m

ap

pin

g“ a

nd

au

tom

ap

BS

W e

ve

nts

•C

lose

Rte

Ed

itor

•U

pd

ate

se

rvic

en

ee

ds

•G

en

era

te p

roje

ct

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

6

1.

2.

3.

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

7

Rte

Serv

ice P

ort M

appin

g -

doin

g

•A

dd D

et u

ser c

allb

ack im

ple

menta

tion

–C

opy th

e c

allb

ack file

s fro

m “C

:\EB

\AddS

tuff\D

etC

allb

ack” to

“C

:\EB

\tresos_W

inC

ore

\work

space\T

rain

ing\s

ourc

e\a

pplic

atio

n”

•O

n c

om

mand lin

e w

indow

–m

ake

cle

an

–m

ake

de

pe

nd

–m

ake

•E

xe

cu

te

–C

:\EB

\treso

s_W

inC

ore

\wo

rksp

ace\T

rain

ing\o

utp

ut\b

in\

WIN

DO

WS

_W

IN32

X8

6_T

rain

ing.e

xe

•V

erify

De

t se

rvic

e p

ort is

ca

lled

:

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

8

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 3

9

Com

Sta

ck -

overv

iew

SW

C_

Cyc

licC

ou

nte

r

P_S

etC

ou

nte

r

Ap

plic

atio

n

Ab

stra

ctio

n

Layer

Serv

ice

Layer

EC

U

Ab

stra

ctio

n

Layer

µC

Ab

stra

ctio

n

Layer

Co

m

Pd

uR

P_C

ou

nte

rOu

t

SG

db

c_

Cou

nte

rOu

t_27

2T

SG

db

c_

Cou

nte

rIn_25

6R

PD

db

c_

Pdu_R

x_

256R

PD

db

c_

Pdu_T

x_

27

2T

Ca

nIf

Ca

n

Ca

nId

: 25

6 (0

x1

00

)C

an

Id: 2

72

(0x11

0)

1.

•a

dd

co

m s

tack m

od

ule

s

•u

se

imp

orte

r

2.

•co

nn

ect d

ata

ele

me

nts

from

ap

plic

atio

n to

sig

na

ls o

f ba

sic

SW

Ecu

C

Ca

nT

rcv

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

0

Com

Sta

ck -

overv

iew

•A

dd

Co

mm

un

ica

tion

mo

du

les

Ca

n, C

an

Trc

v, C

an

If, Pd

uR

(Pd

uR

Re

cC

on

figu

ratio

nC

an

Ecu

), Co

m, E

cu

C

•C

on

figu

re Im

po

rter fo

r co

mm

un

ica

tion

sta

ck

re-u

se

exis

ting

imp

orte

r, dis

ab

le s

yste

m m

od

el im

po

rt, en

ab

le E

cu

co

nfig

ura

tion

imp

ort

•E

xe

cu

te w

izza

rds to

co

mp

lete

co

nfig

ura

tion

Com

Sta

ck -

doin

g

•A

dd

co

mm

un

ica

tion

sta

ck m

od

ule

s:

–E

cuC

, Can, C

anIf, C

om

–P

duR

(sele

ct re

com

mended c

onfig

ura

tion (P

duR

RecC

onfig

ura

tionC

anE

cu)

–C

anT

rcv (s

tub)

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

1

Com

Sta

ck -

doin

g

•Im

po

rter: re

co

nfig

ure

alre

ad

y e

xis

ting

SysD

imp

orte

r:

–T

ab „S

yste

m M

odel Im

port“: D

isable

syste

m m

odel im

port

–T

ab „E

CU

config

ura

tion im

port“: E

nable

EC

U c

onfig

ura

tion im

port fo

r EcuC

, Com

, PduR

, C

anIf, C

an

–�

apply

, �R

un Im

porte

r

•C

alc

ula

te h

an

dle

Ids

•U

pd

ate

se

rvic

e C

om

po

ne

nt a

nd

BS

WM

De

scrip

tion

s

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

2

Com

Sta

ck -

doin

g

•M

ap

RT

E d

ata

ele

me

nts

to C

om

sig

na

ls: S

tart R

te e

dito

r, sw

itch

to ta

b

„Da

ta M

ap

pin

g“

–M

ap <

pre

fix>

Counte

rIn_256R

to S

WC

_C

yclic

Counte

r/P_S

etC

ounte

r/Counte

rValu

e

–M

ap <

pre

fix>

Counte

rOut_

272T

to S

WC

_C

yclic

Counte

r/P_C

ounte

rOut/C

ounte

rValu

e

•S

witc

h to

tab

„Eve

nt M

ap

pin

g“

•M

ap n

ew

Bsw

events

•C

lose

Rte

ed

itor

•C

alc

ula

te s

erv

ice

ne

ed

s

•G

en

era

te c

od

e w

itho

ut e

rror/w

arn

ing

(do

no

t co

mp

ile)

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

3

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

4

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

5

Mode m

anagem

ent -

overv

iew

Serv

ice

Layer

EC

U

Ab

stra

ctio

n

Layer

µC

Ab

stra

ctio

n

Layer

Co

mM

co

mm

unic

atio

n

sta

ck

EB

treso

s In

sp

ecto

r

Ca

nId

: 25

6 (0

x1

00

)C

an

Id: 2

72

(0x11

0)

•a

dd

Co

mM

, Ca

nS

M

•u

pd

ate

Bsw

M

Ca

nS

M

use

r

ne

two

rk

Bsw

M

co

ntro

ls

co

mm

unic

atio

n s

tack

co

ntro

ls

sta

te m

an

agem

ent

Mode m

anagem

ent -

overv

iew

•A

dd

mo

de

ma

na

ge

me

nt m

od

ule

s

•R

eco

nfig

ure

Bsw

M

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

6

Mode m

anagem

ent -

doin

g

•A

dd

mo

de

ma

na

ge

me

nt m

od

ule

s: C

an

SM

, Co

mM

•C

on

figu

re C

om

M:

–add u

ser

–add n

etw

ork

channel

•S

et „N

etw

ork

Managem

ent V

aria

nt“ to

„NO

NE

•add u

ser p

er c

hannel

•C

an

If:

–add C

anIfT

rcvD

rvC

fg

–add C

anIfT

rcvC

fg

•C

on

figu

re C

an

SM

:

–T

ry to

follo

w h

ints

in p

roble

ms v

iew

win

dow

two w

arn

ings a

re re

main

ing

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

7

Mode m

anagem

ent -

doin

g

•u

pd

ate

Bsw

M c

on

figu

ratio

n

–A

dd Im

porte

r: „Auto

sar Im

-/Exporte

r:

–F

inis

h, A

pply

, Run Im

porte

r

•S

olv

e d

ep

en

de

ncie

s

–U

pdate

serv

ice c

om

ponent a

nd

BS

WM

descrip

tion

–M

ap B

sw

events

in R

te e

dito

r

–C

alc

ula

te s

erv

ice n

eeds

–G

enera

te p

roje

ct

•M

ake

cle

an

, ma

ke

de

pe

nd

, ma

ke

Do

_n

ot_

sta

rt the

pro

gra

m, b

eca

use E

B tre

so

s In

sp

ecto

r ne

ed

s to

be

sta

rted

first. S

ee

ne

xt s

lide

s.

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

8

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 4

9

Mode m

anagem

ent -

doin

g

•S

tart E

B tre

so

s in

sp

ecto

r

–O

pen p

roje

ct C

:\EB

\tresos_In

specto

r\Tra

inin

g.ip

f

–C

onnect to

hard

ware

–S

tart re

cord

ing

•D

eb

ug

ge

r:

–R

un p

rogra

m

–C

ontin

ue

•T

he

co

un

ter v

alu

e is

als

o m

ea

su

red

with

insp

ecto

r via

virtu

al C

AN

fram

es

Mode m

anagem

ent -

doin

g

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

0

To

be

ab

le to

se

nt C

AN

fram

es fro

m in

sp

ecto

r, the

tran

sm

issio

n m

ust b

e e

na

ble

d:

No

w a

tran

sm

issio

n c

ou

ld b

e is

su

ed

by p

ressin

g th

e S

en

d b

utto

n.

Th

e C

ou

nte

rIn v

alu

e is

no

w tra

nsm

itted

ove

r virtu

al C

AN

bu

s a

nd

rese

ts th

e C

ou

nte

rVa

lue

.

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

1

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

2

•a

dd

me

mo

ry s

tack m

od

ule

s

•u

se

„Ed

it me

mo

ry s

tack“ e

dito

r

for c

on

figu

ratio

n

•co

nn

ect s

erv

ice

po

rt

Serv

ice

Layer

NvM

Ap

plic

atio

n

Ab

stra

ctio

n

Layer

SW

C_

Cyc

licC

ou

nte

r

EC

U

Ab

stra

ctio

n

Layer

µC

Ab

stra

ctio

n

Layer

Ee

p

Ea

NV

MB

lock_

Co

nfig

ID

NV

M_

BL

OC

K_

DE

M

P_N

vM

-N

vM

Serv

ice:

--W

riteB

lock

NvM

_B

lock_

Co

un

terV

alu

e

File

:E

ep_m

em

ory

.bin

SW

C_

Cyclic

Co

un

ter_

Co

un

terV

alu

e

pe

rsis

ten

t sto

rag

e o

f me

mo

ry b

locks

Me

mIf

Mem

ory

-overv

iew

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

3

Mem

ory

-overv

iew

•A

dd

me

mo

ry s

tack m

od

ule

s

•W

ork

with

me

msta

ck w

izza

rd

•C

om

ple

te c

on

figu

ratio

n

Mem

ory

-doin

g

•A

dd

me

mo

ry s

tack m

od

ule

s

–N

vM

, Crc

. Mem

If, Ea, E

ep

•C

alc

ula

te s

erv

ice

ne

ed

s (D

em

blo

ck w

ill be

ad

de

d to

me

mo

ry s

tack)

•C

all m

em

ory

sta

ck e

dito

r

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

4

1.

Mem

ory

-doin

g

•A

dd

blo

ck fo

r ap

plic

atio

n:

–N

am

e:

NvM

_B

lock_C

ounte

r

–R

AM

Blo

ck A

ddre

ss:

&S

WC

_C

yclic

Counte

r_C

ounte

rValu

e

–R

OM

Blo

ck A

ddre

ss:

&S

WC

_C

yclic

Counte

r_C

ounte

rValu

e_D

efa

ult

–R

eadA

ll: tru

e

•S

tart A

uto

co

nfig

ura

tion

an

d c

lose

me

mo

ry s

tack e

dito

r

•C

on

figu

re s

erv

ice

po

rt (Rte

inte

rface

): ed

it NvM

co

nfig

ura

tion

:

–T

ab G

enera

l: enable

„Enable

Use o

f Rte

–B

lock C

onfig

ura

tion fo

r NvM

_B

lock_C

ounte

r: in ta

b „R

te P

ort C

onfig

ura

tion“,

enable

„Enable

Rte

Serv

ice P

ort“

•U

pd

ate

se

rvic

e c

om

po

ne

nts

an

d B

SW

M d

escrip

tion

s

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

5

Mem

ory

-doin

g

•O

pe

n R

te e

dito

r

–„E

vent M

appin

g“: m

ap B

sw

events

–„S

erv

ice P

ort M

appin

g“: m

ap N

vM

port

•C

alc

ula

te s

erv

ice

ne

ed

s

•G

en

era

te p

roje

ct

•B

uild

pro

ject

–m

ake c

lean, m

ake d

epend, m

ake

•m

ake

de

bu

g, s

et b

rea

kp

oin

t to D

et_

Re

po

rtErro

r an

d re

sta

rt ap

plic

atio

n

(co

un

ter v

alu

e is

no

w s

tore

d)

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

6

Mem

ory

-A

ppendix

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

7

Ad

r.11

AA

00

BA

EF

11

FF

10

AA

00

BA

EF

10

FF

01

00

00h:

11

AA

00

BA

EF

11

FF

10

AA

00

BA

EF

10

FF

01

00

…90h:

FA

A8

C2

01

FF

16

00

16

FF

VLEC

VLEC

user data

CRC16

IF

VLEC

VLEC

user data

CRC16

IF

VLEC

VLEC

user data

IF

Co

nfig

IDC

on

figID

red

un

da

nt

Co

un

terV

alu

e

De

m

De

m

•V

LE

C:

virtu

al life

time

exte

nsio

n c

ou

nte

r

•IF

:

Inva

lida

tion

flag

VLEC

VLEC

CRC32

IF

user data

Ee

pco

nte

ntis

sto

red

in: C

:\EB

\treso

s_W

incore

\wo

rksp

ace\T

rain

ing\u

til\Eep

_m

em

ory.b

in

Op

en

filein

He

x m

od

us

with

no

tep

ad+

+ (P

lugin

s�

HE

X-E

dito

r �V

iew

in H

ex)

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

8

•To

ol

•O

s

•R

te C

on

tract P

ha

se

•R

te S

yste

m D

escrip

tion

•R

te E

ve

nt M

ap

pin

g

•R

te S

erv

ice

Po

rt Ma

pp

ing

•C

om

Sta

ck

•M

od

e m

an

ag

em

en

t

•M

em

ory

Sta

ck

•Io

Hw

Ab

Exe

rcis

e

EB

tresos

®

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 5

9

Exerc

ise -

overv

iew

SW

C_

Cyc

licC

ou

nte

r

P_S

etC

ou

nte

rP

_D

et

Ap

plic

atio

n

Ab

stra

ctio

n

Layer

Serv

ice

Layer

EC

U

Ab

stra

ctio

n

Layer

µC

Ab

stra

ctio

n

Layer

De

tC

om

Pd

uR

P_C

ou

nte

rOu

t

SG

db

c_

Cou

nte

rOu

t_27

2T

SG

db

c_

Cou

nte

rIn_25

6R

PD

db

c_

Pdu_R

x_

256R

PD

db

c_

Pdu_T

x_

27

2T

Ca

nIf

Ca

nD

io

IoH

wA

b

P_N

ew

Co

un

ter

EB

treso

s In

sp

ecto

r

Ca

nId

: 25

6 (0

x1

00

)C

an

Id: 2

72

(0x11

0)

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 6

0

IoH

wA

b

•C

he

ck g

en

era

ted

tem

pla

te file

from

co

ntra

ct p

ha

se

:

C:\E

B\tre

so

s_

Win

co

re\w

ork

sp

ace

\Tra

inin

g\C

on

tractP

ha

se

\IoH

wA

b_

Te

mp

late

.c

•C

op

y R

te c

all fro

m te

mp

late

file in

to:

C:\E

B\tre

so

s_

Win

co

re\w

ork

sp

ace

\Tra

inin

g\s

ou

rce

\ap

plic

atio

n\s

wc\Io

Hw

Ab

.c

•B

uild

pro

ject

–m

ake

–ru

n p

rogra

m, p

ress k

eys (0

..9) a

nd c

heck C

ounte

r valu

e

Copyrig

ht E

lektro

bit (E

B) 2

012, C

om

pany c

onfid

entia

l

ww

w.e

lektro

bit.c

om

, Slid

e 6

1C

om

pany c

onfid

entia

l / Copyrig

ht E

lektro

bit C

orp

ora

tion 2

012

Recommended