没有合适的资源?快使用搜索试试~ 我知道了~
首页英飞凌XC2000系列 CAN BOOTLADER 资料
资源详情
资源评论
资源推荐
XC2000/XE166 Family
16-bit Microcontrollers
AP16164
Flash Progamming via CAN BSL (Bootstrap Loader)
Microcontrollers
Application Note
V1.0, 2009-10
Edition 2009-10
Published by
Infineon Technologies AG
81726 Munich, Germany
© 2009 Infineon Technologies AG
All Rights Reserved.
LEGAL DISCLAIMER
THE INFORMATION GIVEN IN THIS APPLICATION NOTE IS GIVEN AS A HINT FOR THE IMPLEMENTATION
OF THE INFINEON TECHNOLOGIES COMPONENT ONLY AND SHALL NOT BE REGARDED AS ANY
DESCRIPTION OR WARRANTY OF A CERTAIN FUNCTIONALITY, CONDITION OR QUALITY OF THE
INFINEON TECHNOLOGIES COMPONENT. THE RECIPIENT OF THIS APPLICATION NOTE MUST VERIFY
ANY FUNCTION DESCRIBED HEREIN IN THE REAL APPLICATION. INFINEON TECHNOLOGIES HEREBY
DISCLAIMS ANY AND ALL WARRANTIES AND LIABILITIES OF ANY KIND (INCLUDING WITHOUT
LIMITATION WARRANTIES OF NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OF ANY
THIRD PARTY) WITH RESPECT TO ANY AND ALL INFORMATION GIVEN IN THIS APPLICATION NOTE.
Information
For further information on technology, delivery terms and conditions and prices, please contact the nearest
Infineon Technologies Office (www.infineon.com).
Warnings
Due to technical requirements, components may contain dangerous substances. For information on the types in
question, please contact the nearest Infineon Technologies Office.
Infineon Technologies components may be used in life-support devices or systems only with the express written
approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure
of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support
devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain
and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may
be endangered.
Application Note 3 V1.0, 2009-10
AP16164
Flash Progamming via CAN BSL (Bootstrap Loader)
Device1
Revision History: V1.0 2009-10
Previous Version(s):
Page Subjects (major changes since last revision)
– This is the first release …
We Listen to Your Comments
Is there any information in this document that you feel is wrong, unclear or missing? Your feedback will help us to
continuously improve the quality of this document. Please send your proposal (including a reference to this document) to:
ipdoc@infineon.com
AP16164
Flash Progamming via CAN BSL (Bootstrap Loader)
Table of Contents
Application Note 4 V1.0, 2009-10
Table of Contents
1 Introduction and Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1 Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 CAN BSL (Bootstrap Loader) in the XC2000/XE166 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 Entering the CAN BSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Loading the User Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3 Exiting CAN BSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 General System Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1 Master Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1.1 Transmitter Program (Project File: CAN_BSLMaster) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.1.2 Receiver Program (Project File: CAN_Loader) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1.3 Application Software (Project File: MainApplication_XE16x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2 Slave Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4 XC2000/XE166 Internal Flash Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.1 The Internal Flash Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.2 Flash Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5 Communication Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1 Process Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1.1 Sector Erasing Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1.2 Flash Page Programming Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1.3 Application Reset for the Standard Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.1.4 Application Reset for the CAN BSL Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.1.5 Download an Application Example Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6 Using this Application Note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7 Running this Application Note without HiTOP5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
8 Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.1 Hardware Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.2 Hex Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8.3 XC2000/XE166 Easy Board V1.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8.4 XC2000/XE166 Easy Board V2.0 and V3.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
8.5 Script File: AppNote16164_CAN_BSL.scm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
AP16164
Flash Progamming via CAN BSL (Bootstrap Loader)
Introduction and Requirements
Application Note 5 V1.0, 2009-10
1 Introduction and Requirements
The Infineon XC2000/XE166 Family of devices (Table 1) include a built-in CAN Bootstrap Loader (CAN BSL).
Using the CAN BSL, it is possible to load code or data into the internal PSRAM of the device via the MultiCAN
interface. What is not available however, is a built-in mechanism for internal flash programming.
This application note will demonstrate how to program the internal flash of XC2000/XE166 devices via the CAN
BSL.
The example described makes use of the Tasking compiler tool. However to debug and download readable Hex
files, it is possible to directly use the Hitex tool (HiTOP53) included in the Infineon UConnect-CAN XE164 kit.
1.1 Hardware Requirements
The following hardware is required for the example described in this application note:
• Two XC2000/XE16x boards
– If a compiler and debug tool are already installed, the application software can run in any two Infineon Easy
Kit boards equipped with a target device listed in Table 1. The Infineon UConnect-CAN XE164 comes with
a free compiler and debug tool development suite (a size limited evaluation version). In the example
described in this document, the UConnect-CAN XE164 is the ’host’ board, while the XE167FM EasyKit with
active CAN BSL, acts as the ’slave’ board.
• Terminal program; MTTTY for example.
– This is used to give commands to the host and to display actual states and error messages.
• CAN bus cable
• CAN Analyzer tool (optional)
Table 1 XC2000/XE166XE166 Derivative with CAN BSL
Derivative Package
XC228x, XC228xM PG-LQFP-144
XC226x, XC226xM, XC226xN PG-LQFP-100
XC238x, XC238xA PG-LQFP-144
XC236x, XC236xA, XC236xB PG-LQFP-100
XC233xA, XC233xB PG-LQFP-64
XC2786X, XC2785X PG-LQFP-144
XC2766X, XC2765X, XC2764X PG-LQFP-100
XE167, XE167M PG-LQFP-144
XE164, XE164M, XE164N PG-LQFP-100
XE162M, XE162N PG-LQFP-64
XE169H, XC229xH PG-LQFP-176 (coming soon)
XE167H, XC228xH PG-LQFP-144 (coming soon)
剩余25页未读,继续阅读
l070151902
- 粉丝: 4
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0