我們一起去逛動物園 - dges.tc.edu.t · •動物的運動方式 •動物的食性 •動物的保育 •動物的一舉一動 拍照 記錄速描 觀察比對 閱讀簡介
CODE BLUE 2014 :...
-
Upload
code-blue -
Category
Technology
-
view
173 -
download
5
Transcript of CODE BLUE 2014 :...
! ECU ! Infineon ◦
! TriCore ECU ◦ Bosch EDC17 & MED17, Siemens
! TriCore ECU ◦ Audi, BMW, Citroen, Ford, Honda, Hyundai,
Mercedes-Benz, Nissan, Opel, Peugeot, Porsche, Renault, Seat, Toyota, Volkswagen, Volvo
! Web ◦ User’s Manual ! ! !
! security, protection, password
◦ TriCore Architecture Overview ! User’s Manual
! ◦ TriCore ! QEMU TriCore ◦ Linux Kernel TriCore
! ECU ◦ TASKING VX-toolset for TriCore ! IDE ◦ Infineon Starter Kit TC1797 ◦ FlexECU development platform
! ◦ IDA Pro !
ELF for Siemens TriCore
failure() { ... }
success() { .... }
compare() { ... }
receive() { // receive input value input = … char buffer[10]; strcpy( buffer, input );
}
check( f_ptr ) { // call receive() to receive incoming value receive(); // call compare() using function pointer f_ptr(); }
main () { function_ptr = &compare; … check( function_ptr );
}
!
!
Address
0x8000 010C
0x8000 013C
0x8000 0170
0x8000 017C
0x8000 0188
…
0xD000 8FC8
0xD000 8FE0
Variable
check()
receive()
compare()
success()
failure()
…
buffer[]
function_ptr
!
◦ CSA (Context Save Area) TriCore
!
◦ Upper context Lower context 2
◦ Upper context
! call
◦ Lower context !
: Tricore Architeture Overview http://www.infineon-ecosystem.org/download/schedule.php?act=detail&item=44
: Tricore Architeture Overview http://www.infineon-ecosystem.org/download/schedule.php?act=detail&item=44
! CSA ◦ CSA (PCX) CSA (FCX) ◦ PCX, FCX !
: Tricore Architeture Overview http://www.infineon-ecosystem.org/download/schedule.php?act=detail&item=44
! func1func2func3
! func2 CSA (*ret) func3 (0x80000360)
! func1 return A11 func3 (0x80000360)
! func1 return func3
!
IVT (PIPN)
ISR
! IVT ◦ BIV (Begin Interrupt
Vector)
! ISR ◦ BIV | (ICR.PIPN << 5)
! ICR (Interrupt Control Register)
: Tricore Architeture Overview http://www.infineon-ecosystem.org/download/schedule.php?act=detail&item=44
ISR PIPN 0~255
!
◦ !
!
TVT(TCN)
TSR
: Tricore Architeture Overview http://www.infineon-ecosystem.org/download/schedule.php?act=detail&item=44
! BIV 0xa00f0000
! __interrupt(3) hoge_isr() ISR
0xa00f0060 (0xa00f00+ 32*3) hoge_isr()
! ◦
◦ 0xA Flash
! TVT
! HP EliteBook 2530p, Win7, Centrino2 ◦ HIGHTEC Free TriCore Entry Tool Chain ◦ BUSMASTER
! Infineon TriBoard TC1797 V5.0
! ETAS ES592.1
: Tricore Architeture Overview http://www.infineon-ecosystem.org/download/schedule.php?act=detail&item=44
! CSA ◦ CSA (FCX: Free Context List ) ◦ CSA (PCX: Previous Context List ) ◦ FCX, PCX
!
: Tricore Architeture Overview http://www.infineon-ecosystem.org/download/schedule.php?act=detail&item=44
! ISR EntryPoint (JLA) ! JLA 24bit ◦
24bit 32bit
: Tricore Architeture Overview http://www.infineon-ecosystem.org/download/schedule.php?act=detail&item=44