英飞凌XC2000系列 CAN BOOTLADER 资料


-
详细介绍了如何开发 CAN BootLoader 程序 汽车电子目前都需要CAN BOOTLOADER 开发
infineon AP16164 Flash Progamming via CAN BSL (Bootstrap Loader) Device 1 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 ipdcc@infineon.cc Application Note V1.0,2009-10 infineon AP16164 Flash Progamming via CAN BSL (Bootstrap Loader) Table of contents Table of contents Introduction and Requirements Hardware Requirements 画 CAN BSL Bootstrap Loader) in the XC2000/XE166 Entering the CAn bsl 55678 2.2 Loading the User Code 2.3 Exiting CAN BSL 8 General System Description 3.1 Master board 3.1.1 Transmitter Program (Project File: CAN_ BSLMaster 12 3.1.2 Receiver Program(Project File: CAN Loader) 13 Application Software(Project File: MainApplication XE16x) 13 3.2 Slave board 14 XC2000/XE166 Internal Flash Programming 15 4.1 The Internal Flash Memory 15 4.2 Flash driver 16 Communication Protocol 17 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.14 Application Reset for the CAN BSL Mode 18 5.1.5 Download an Application EXample Code ····· 18 Using this Application Note Running this Application Note without HiTOP5 21 Appendix 23 8.1 Hardware Bugs 8.2 Hex Code 24 8.3 XC2000/XE166 Easy Board v1. 24 8.4 XC2000/XE166 Easy board v2.0 and v3.0 25 85 Script File: AppNote16164 CAN BSL.scm 25 Application Note V1.0,2009-10 infineon AP16164 Flash Progamming via CAN BSL (Bootstrap Loader) Introduction and Requirements 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 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 XC2786×,XC2785X PG-LQFP-144 XC2766×,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) 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/XE 16x 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 XE167 FM 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) Application Note V1.0,2009-10 infineon AP16164 Flash Progamming via CAN BSL (Bootstrap Loader) CAN BSL (Bootstrap Loader) in the XC2000/XE166 2 CAN BSL Bootstrap Loader)in the XC2000/XE166 a built-in CAN Bootstrap Loader(BsL)is implemented in the Infineon XC2000/XE 166 family of devices CAN BSL provides a mechanism to load program code or data via the multican module into the Psram of a device, and to start executing the loaded code from address E0 0000H(address of the first transmitted byte) The CAN BSL is an integrated mechanism that can be selected via port configuration during a system start after a Power-on Reset, or through write configuration registers and trigger then a software reset. For more details please see Chapter 2.1 The Can BSL uses a CAn node 0 interface and configures the MultcAN module to the baud rate of the host device Once communication has been established, the BSL receives a defined number of messages(the number defined in the host) for downloading the code or data. the received code or data is sequentially written to the Psram Once the download has finished the program code that has been loaded is executed and the BsL is terminated The complete load sequence is based on the following three Can standard frames Initialization frame sent by the external host to XC2000/XE166 Acknowledge frame sent by the XC2000/XE166 to the external host Data frames sent by the external host to the XC2000/XE166 The initialization frame is used in the xc 2000/XE 166 device for baud rate detection After successful baud rate detection, the XC2000/XE166 reports to the external host via the acknowledge frame Data frames can then be transmitted from the host to the Xc2000/XE166 device. Data frames are always transmitted in 8 bytes Table 2 CAN Bootstrap Loader Frames Frame Type Parameter Description Initialization Frame ldentifier 1 1-bit. don 't care DLC=8 Data byte 0-1 0×5555 Data byte 2-3 acknowledge message identifier AcK ID use bits [13: 0], bit 13=IDE) Data byte 4-5 Data Message Count MSG CNT Must be <=1 FEOH for 64KBytes SPRAM, see Chapter 2.2 For example; MSG CNT=0x200 for 0000H-OFFFH (4KBytes) Data byte 6-7 Data Message Identifier MsG ID Acknowledge Identifier ACK ID as received bytes [3: 2]of the Initialization Frame Frame DLC=4 Data byte 0-1 BTR register value in XC2000 Data byte 0-1 Data bytes [3.2]of the Initialization Frame Data frame Identifier Data Message Identifier MsG ID as sent by data bytes [7: 6]of the Initialization frame DLC=8 Data byte 0-7 Data Bytes, assigned to increasing destination(PSRAM) addresses Application Note V1.0,2009-10 infineon AP16164 Flash Progamming via CAN BSL (Bootstrap Loader) CAN BSL (Bootstrap Loader) in the XC2000/XE166 2.1 Entering the CAN BSL The XC2000/XE166 enters CAN BSL mode, when the CAN BSL mode is selected within the startup configuration upon a reset signal Bit field HWCFG=XXX 101b in register STSTAT indicates the CAN BSL mode Bit field HWcfG is updated either by: Hardware: with a pull-up/down resistor when the configuration pins P102-0 has the value 101 at Power-On or after an Internal Application Reset Software: when 000xX101b is written into bit field SWRSTCON SWCFG and an Application Reset is triggered with SWRSTCON SWBOOT=1 Software Boot configuration selection) Note: To directly generate a software reset request trigger, either use the instruction SRST, or set bit SWRSTCON. SWRSTREQ =1 Notes 1. Because of a hardware bug(see Chapter 8.1 RESET_ X.002 )the bit field HWCFG in the register STSTAT is unable to indicate the actual start-up mode selected in early XC2000/XE166 devices. This bug is fixed in the M, N-, 5, H- series of devices (see Table 1) 2. The type of software reset should be configured first (RSTCONO. SW=1xb 3. The type of instruction (SRST) is defined via bit field RSTCONO CPU 4. 01 is reserved. It can not be configured for RSTCoNo CPU or RSTCONO Sw 5. For example code, please see Chapter 8.2 The CaN BSL initializes the multican as follows: can node o of the multican module is used Message Object 0(Mo0) is configured as Receive Object to receive the initialization and data frame Message Object 1(MO1) is configured as Transmit object to transmit the acknowledge frame CAN input/output pins P2 6=RXDCO and P2.5=TXDC0 RXSEL=0X0003 In CAn Bsl the system clock is provided by osc HP circuitry(supplied by a external oscillator or an external clock source). fsys: =fosc is selected by SYSCONO CLKSEL=01b During the initialization phase The Bit Timing Mode is used for baud rate detection and analysis of the bit timing The Analyzer Mode is used to monitor the can frame without active participation All Acceptance Mask bits of the receive object MOO are OFF After the initialization phase The Analyzer Mode is switched off. The bit timing mode for Can node0 does not change BTR is set with the calculated value and SJw=01b All Acceptance Mask bits of the receive object MO0 are ON: CAN_MOAMRO=01FFF, FFFFH Application Note V1.0,2009-10 infineon AP16164 Flash Progamming via CAN BSL (Bootstrap Loader) CAN BSL (Bootstrap Loader) in the XC2000/XE166 22 Loading the User Code The sequence for loading the user code is as follows The code is downloaded starting at address 0E0, 0000H Consecutive data bytes are stored at incrementing After receipt of the last CAN data frame, the Bootstrap Loader sequence is finished and executes a jump to address 0e0, 0000 XC2000/XE166 has 64K PSRAM(OEO,0000H-OEO, FFFFH), but the last 255 bytes are dedicated to the on chip firmware; i.e. If code or data is downloaded to that area it will be overwritten afterwards by the on-chip firmware. Therefore the maximum CAN message count(MSG_cNt)in the initialization frame is 8192-32 2.3 Exiting CAn bsl After the Bootstrap Loader has been activated, the Watchdog Timer and the Debug system are disabled The Debug system and Watchdog Timer are released automatically when the BSL terminates after having received a set number of messages from the host(the number of messages is defined via a variable in the host) The CAN BSL is also aborted after a Power On Reset, if the non-BSL port configuration has been used(see Chapter 2. 1) Application Note V1.0,2009-10 infineon AP16164 Flash Progamming via CAN BSL (Bootstrap Loader) General System Descriptio General System Description as host device. the UConnect-CAN XE164 is connected to a pc via a jtag/Uart interface. The xe164 should be in Standard Start mode As slave device, the XE167FM Easy Kit is connected to the host via a Can interface. The XE167FM should be in active can bsl mode This application note describes software for the host board. the host device takes control of the slave device via the Can bus, while commands are received and process status changes are reported via the JTAG/UART interface to the PC COM port CAN BUS CAN node 0 CAN node o Receive upgrade Transmit upgrade Uconnect XE164 application Sw via Host board Easy Kit XE167M application SW from can bus in CAN the can bus in (standard start Slave board CAN BSL mode BSL mode and standard start mode mode) program then into the internal flash JTAG ASC Download hex files and report status information via jTAG心UART Figure 1 System Overview There are three different pieces of code(three Tasking projects for the host device associated with this application Transmitter Program: cAn BSLMaster Initializes the MulticaN module in the host device(including the Can transmit pins and configuring the initialization frame) to establish the communication with the slave Defines a port pin to signal the process of starting, data transmission, and termination of the download sequence Initializes the Usic module and configures loco as the asc interface to communicate with the pc com pr Code should be compiled for the location of the internal flash at address oC1, 0000H Receiver program CAN Loader Must first be downloaded to the slave device in active can bsl mode After a successful download this code will be executed It contains commands for a 'handshake between the host and slave devices Defines a port pin to signal the process status on the slave board Code should be compiled for the location of the internal PSRAM, at address 0E0,0000- Application Note V1.0,2009-10 infineon AP16164 Flash Progamming via CAN BSL (Bootstrap Loader) General System Description Application Software: Main Application XE16x This is the upgrade software In this application note we create a MulticaN module application. Can objects are configured in order that the slave can receive messages from the host and also execute commands Code should be compiled for the location of the internal flash, at address 0Co,0000 Uconnect XE164 XE167M Easy Kit CAN Loader xE0.0000 0×E0,0000 CAN BSLMaster' 0xC1,0000 New Application code to be downloaded Old Application code to MMainApplication XE16X e upgraded 0xC0.0000 0xC00000 Figure 2 Memory Map Application Note 10 V1.0,2009-10

218KB
CANbootloader
2018-06-29介绍了英飞凌单片的如何实现CANBOOTLOADER. 对使用英飞凌单片机的工程人员有一定的知道作用
1.62MB
英飞凌 XC2000系列CAN BOOTLOADER 开发实例代码
2019-02-16本资源包括文档 开发实例源代码 主要是针对英飞凌XC2000系列单片机的 CAN BOOTLADER 开发
271KB
XC2000 CAN bootload.pdf
2019-06-13Infineon XC2000 CAN bootload .
9.17MB
英飞凌单片机XC2000系列的所有模块的经典例程源代码.rar
2020-07-30超级全面的英飞凌xc2000系列单片机的所有模块的驱动代码,每个模块包含完整的工程文件,编译运行正常,包含ADC/ASC/SSC/CAP/COMP/CCU/CAN/VECTOR等等
1.50MB
英飞凌XC2000系列单片机CAN_BSL实现例程源代码及使用手册(官方).rar
2019-09-06英飞凌XC2000系列单片机用CAN传输实现BootLoader的官方例程代码,以及其CAN_BSL功能使用手册,手册内含CAN BSL实现机制介绍、具体实现方法和代码功能介绍。
9.3MB
英飞凌xe166m和XC2000系列中文说明书(用户手册)
2018-03-10英飞凌xe166m和XC2000系列中文说明书(用户手册) 英飞凌xe166m和XC2000系列中文说明书(用户手册)
10.8MB
英飞凌XC2000中文用户手册
2020-11-28英飞凌XC2000中文用户手册
1.29MB
英飞凌XC2000单片机原理图
2016-03-31英飞凌XC2000单片机原理图
9.3MB
英飞凌16位单片机XC2000中文手册
2014-05-04英飞凌16位单片机XC2000系列和Xe166m系列中文手册
2.74MB
XC2000系列单片机用户手册中文版
2018-03-27本手册为中文版,非常难得。以XC2785单片机为案例介绍了XC2000系列单片机的使用与功能,其他XC2000 系列的单片机,其功能为XC2785 的部分模块的增减(XC22xx 系列单片机,其SCU
9.64MB
英飞凌xc2300系列的用户手册user_manul
2020-07-30英飞凌xc2300系列的用户手册user_manul,全面详细的介绍英飞凌单片机XC2000系列的各个模块的应用以及各个寄存器的设置方法和应用详解
2.79MB
英飞凌C16X系列、飞思卡尔MC9S12系列,CCP协议驱动程序(源码、说明文档)
2019-12-21CCP协议驱动、文档、范例,适用于Infineon C16x 系列、飞思卡尔MC9S12系列等。含CCP驱动及说明文档、CCP范例等源码和文档
2.36MB
英飞凌【Infineon】推出XC2000系列MCU——专用于汽车电子
2009-02-062000系列MCU分成三大家族:XC2200,XC2300,XC2700。分别用于车身控制,安全系统和动力系统控制。
298KB
英飞凌XE166系列
2012-04-15英飞凌XE162FL最小系统的说明书,介绍了minikit上一些资源
1.61MB
xc2000-adc配置说明
2016-08-16详细讲解单片机XC2000系列的ADC配置 主要用于学习XC2000的ADC功能 英飞凌的芯片 可以直接使用DAVE2配置
8.90MB
英飞凌单片机烧写软件
2014-10-06DAS Version: DAS v3.0.0 Date: 2010-04-12 Customers: Internal, tool partners and customers Changes: 1
211KB
基于Infineon单片机的CAN网关研究
2020-10-26采用Infineon XC2000系列单片机实现CAN网关模块,利用MFC编写PC端网关配置软件。该系列单片机MultiCAN模块可实现不同速率的独立CAN网络之间的数据接收、存储、转发;能够过滤不需
155KB
cc2530输入捕获(占空比计算)
2015-07-22基于现在主流ZigBee芯片cc2530的输入捕获功能,功能代码已经写好,可以直接试用
21.89MB
Keil_Example_XC2287.zip
2020-03-17本压缩包内包含清乾开发板XC2287 各个外设的例程及例程介绍手册。同时包含DAVE工具的使用方法。
82.2MB
微信小程序源码-合集6.rar
2020-09-04微信小程序源码,包含:图片展示、外卖点餐、小工具类、小游戏类、演绎博览、新闻资讯、医疗保健、艺术生活等源码。
133KB
python 京东预约抢购茅台脚本插件 一键运行
2021-02-26python 京东预约抢购茅台脚本插件 一键运行,按照readme介绍的步骤即可。 已经测试可以抢购得到。 注意:本资源仅用于用来学习,严禁用于任何商业目的,下载之后应当在24小时之内删除。
28KB
各显卡算力对照表!
2018-01-11挖矿必备算力对照!看看你的机器是否达到标准!看完自己想想办法刷机!
Python自动化爬虫实战与高级架构技巧
2020-07-22讲解基于Python Selenium 的自动化数据采集,自动化框架设计,SEO搜索收录引擎与接口对接等实战项目
103KB
七夕情人节表白HTML源码(两款)
2016-08-23七夕节、情人节表白用的HTML源码(两款)
-
下载
成都理工大学《数据库原理与应用》期末考试试卷(含答案).pdf
成都理工大学《数据库原理与应用》期末考试试卷(含答案).pdf
-
博客
delphi BUGs
delphi BUGs
-
博客
剑指 Offer 06. 从尾到头打印链表
剑指 Offer 06. 从尾到头打印链表
-
下载
JavaGuide.zip
JavaGuide.zip
-
下载
成都理工大学《保险精算学》两套测试卷.pdf
成都理工大学《保险精算学》两套测试卷.pdf
-
博客
执行tyarn add umi-plugin-react --dev 报错
执行tyarn add umi-plugin-react --dev 报错
-
下载
成都理工大学《大学物理》题库(含答案).pdf
成都理工大学《大学物理》题库(含答案).pdf
-
下载
成都理工大学《工程力学》多套期末考试试卷(含答案).pdf
成都理工大学《工程力学》多套期末考试试卷(含答案).pdf
-
学院
SpringBoot2集成Quartz+Vue动态定时任务(前后分离)
SpringBoot2集成Quartz+Vue动态定时任务(前后分离)
-
学院
stm32+4G从零开始连接阿里云IOT
stm32+4G从零开始连接阿里云IOT
-
下载
成都理工大学《材料物理化学》期末复习资料.pdf
成都理工大学《材料物理化学》期末复习资料.pdf
-
下载
成都理工大学《数字电子技术基础》历年多套期末考试试卷(含答案 ).pdf
成都理工大学《数字电子技术基础》历年多套期末考试试卷(含答案 ).pdf
-
博客
clickhouse 分布式数据库 简介
clickhouse 分布式数据库 简介
-
下载
ehmatthes-pcc-v1.0.0-12-gf555082.zip
ehmatthes-pcc-v1.0.0-12-gf555082.zip
-
下载
成都理工大学《VF》期末考和上机题库(含答案).pdf
成都理工大学《VF》期末考和上机题库(含答案).pdf
-
博客
php常用的7大框架
php常用的7大框架
-
下载
2020年电子设计竞赛G题 非接触物体尺寸形态测量 代码报告链接
2020年电子设计竞赛G题 非接触物体尺寸形态测量 代码报告链接
-
下载
成都理工大学《软件测试技术》期末考试试卷(含答案).pdf
成都理工大学《软件测试技术》期末考试试卷(含答案).pdf
-
学院
CCNA_CCNP 思科网络认证 《 站点间 NNN 与 远程访问 V
CCNA_CCNP 思科网络认证 《 站点间 NNN 与 远程访问 V
-
学院
MySQL 触发器
MySQL 触发器
-
下载
成都理工大学《地球科学概论》期末考试试卷(含答案).pdf
成都理工大学《地球科学概论》期末考试试卷(含答案).pdf
-
学院
用Go语言来写区块链(一)
用Go语言来写区块链(一)
-
学院
2021年软考系统规划与管理师-上午历年真题解析视频课程
2021年软考系统规划与管理师-上午历年真题解析视频课程
-
博客
访问消费者的Tomcat显示无法连接http://192.168.73.131:2181/houser/resources
访问消费者的Tomcat显示无法连接http://192.168.73.131:2181/houser/resources
-
学院
Python函数库深度详解(1)
Python函数库深度详解(1)
-
博客
Patent Writing and cultivation of innovation thinking
Patent Writing and cultivation of innovation thinking
-
博客
【ACWing】1064. 小国王
【ACWing】1064. 小国王
-
学院
CCNA_CCNP 思科网络认证 动态路由 EIGRP 和 OSPF
CCNA_CCNP 思科网络认证 动态路由 EIGRP 和 OSPF
-
学院
MySQL 事务和锁
MySQL 事务和锁
-
学院
P1Python100练从入门到入土系列
P1Python100练从入门到入土系列