摘要
嵌入式产品进入生产过程以后,需要一款将机器码文件下载到目标芯片中的软件。下载软件通常使用USB接口与调试器通信,调试器使用JTAG或BDM接口与目标芯片通信。飞思卡尔S08系列芯片的机器码文件是S19记录,是一种基于字符形式的可执行文件记录格式。使用飞思卡尔开源的BDM调试器,设计并实现了S19记录的下载软件。文中分析了开源调试器的接口,分析了下载流程并设计了参数可配置的Flash下载程序。此外,文中详细阐述了下载过程中对目标芯片RAM的划分。该设计的下载软件利用XML配置文件实现了对飞思卡尔S08系列所有芯片的下载支持。
A kind of software is needed to download the machine code to target chip when the embedded product is put into production process.The download software usually communicates with the debugger through USB interface,while the debugger communicates with the target chip through JTAG or BDM interface.S19 record,which is the machine code file of chips of S08 family of Freescale,is a kind of character-based executable file record format.In this paper we designed and implemented a S19 record download software using open source BDM debugger of Freescale.In the paper we analysed the interface of the open source debugger and the downloading processes,and devised a Flash download program with configurable parameters.In addition,we expounded the partition of the target chip RAM during downloading process.The download software designed in this paper supports the download of all MCUs in S08 family of Freescale by using an XML configuration file.
出处
《计算机应用与软件》
CSCD
2011年第12期256-258,共3页
Computer Applications and Software