数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4240 数据表(PDF) 13 Page - STMicroelectronics

部件名 AN4240
功能描述  This application note provides an easy introduction to the usage
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4240 数据表(HTML) 13 Page - STMicroelectronics

Back Button AN4240 Datasheet HTML 9Page - STMicroelectronics AN4240 Datasheet HTML 10Page - STMicroelectronics AN4240 Datasheet HTML 11Page - STMicroelectronics AN4240 Datasheet HTML 12Page - STMicroelectronics AN4240 Datasheet HTML 13Page - STMicroelectronics AN4240 Datasheet HTML 14Page - STMicroelectronics AN4240 Datasheet HTML 15Page - STMicroelectronics AN4240 Datasheet HTML 16Page - STMicroelectronics AN4240 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 30 page
background image
Doc ID024209 Rev 2
13/30
AN4240
Application code structure
5
Application code structure
This section gives an overview of the application code implemented to test some CSE
features as the encryption/decryption using ECB and CBC cipher modes and an example
code in order to release a Secure Boot loading some cryptographic keys in the secure slots.
5.1
Peripherals and tools used
•
Device: SPC564xB/C
•
Compiler: GHS v6.1
•
Debugger: Lauterbach
•
System clock: 120 MHz by PLL initialization
•
CGM (Clock Generation Module): PLL is configured as system clock
•
CSE module
•
ME: Mode entry in order to configure the Magic Carpet
•
SWT: Software Watchdog in order to disable the periodic reset
5.2
Code Implementation
In order to load the cryptographic keys in the secure flash of the device, to release a secure
boot and then start the demo application, three different GHS projects are implemented.
First project is needed to load the cryptographic keys obtained off line, using an executable
file precompiled in order to obtain all the five “M” parameters and the 2 K parameters to
generate 10 user Crypto Keys, BOOT_MAC_KEY and MASTER_ECU_KEY. For more
information read the Appendix A at the end of this document.
Second project is used to release a Secure Boot OK, adding in the start up file and in the
locator file, few lines of code and implementing the Secure Boot Procedure as describe in
Figure 5.
Third project is the demo application code which shows the main differences between the
ECB and CBC cipher mode, as described in the previous paragraph.
The first application code configures the device in order to have the following:
•
Basic configuration procedure:
–
Disable Software Watchdog
–
Initialize Magic Carpet
–
initialize PLL to 120 MHz from 40 MHz of the external oscillator
•
Initialization of the CSE module
•
Updating a blank sample and loading the cryptographic keys into the secure flash
–
Issue a Get UID command
–
Issue a LOAD KEY command



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com