当前位置:主页 > 科技论文 > 计算机论文 >

SWD协议的研究及ARM程序下载器的设计

发布时间:2018-09-15 19:23
【摘要】:如今ARM公司设计的Cortex-M3处理器因具有高性能、高代码密度和小硅片面积的优点,已大面积地成为了低成本单片机、汽车电子、数据通信、工业控制和消费类产品理想的处理平台。ARM处理器一般都使用JTAG调试接口,使得仿真、调试工具统一而廉价,方便用户的开发。但JTAG调试接口至少要占用芯片的5-6个引脚,这对于一些引脚较少的MCU来说非常不便。但Cortex-M3在保持原来JTAG调试的基础上还支持串行调试(SWD)。使用SWD(Serial wire debugger)只占用2个引脚即可进行所有的仿真和调试,节省了调试用引脚。 现在市场上使用的支持SWD模式的程序调试下载器有SEGGER公司的JLINK、KEIL公司的ULINK和ST公司的STLINK,但国内在此方面存在一定的开发难度,主要原因在于外国公司并没有完全开放SWD协议的相关资料说明。本文针对公司的需求量身订做了一个支持SWD协议的程序调试下载器,具有非常现实的意义。本文重点研究了Cortex-M3的整体架构、嵌入式平台的SPI接口及通信协议、SWD协议和STM32flxx芯片。并通过三个模块实现基于SWD协议的烧写系统,三个模块分别是:SWD协议实现模块;目标板bootloader模块;SPI通信模块。文章的最后通过系统的联调和多次反复的测试对SWD程序烧写器进行了验证,保证其功能的完整性和使用的可靠性。
[Abstract]:Today, the Cortex-M3 processor designed by ARM Company has become a low-cost single-chip computer, automotive electronics and data communication because of its advantages of high performance, high code density and small silicon chip area. The ideal processing platform for industrial control and consumer products .arm processor generally uses JTAG debugging interface which makes the simulation and debugging tools unified and cheap and convenient for the development of users. But the JTAG debug interface requires at least 5-6 pins, which is inconvenient for some MCU with fewer pins. However, Cortex-M3 also supports serial debugging (SWD). On the basis of keeping the original JTAG debugging. Only 2 pins can be used to simulate and debug with SWD (Serial wire debugger), which saves the pin for debugging. At present, the program debugging and downloading devices that support SWD mode used in the market include ULINK of JLINK,KEIL Company of SEGGER Company and STLINK, of ST Company, but there are some difficulties in developing this aspect in our country. The main reason is that foreign companies are not fully open to the SWD protocol related information. According to the demand of the company, this paper makes a program debug download which supports SWD protocol, which has very practical significance. This paper focuses on the whole architecture of Cortex-M3, SPI interface of embedded platform, communication protocol and STM32flxx chip. The burn writing system based on SWD protocol is implemented by three modules. The three modules are respectively the implementation module of the SWD protocol and the bootloader module of the target board. At the end of the paper, the SWD program burner is verified by the combination of the system and repeated tests to ensure the integrity of its function and the reliability of its use.
【学位授予单位】:湖北大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP368.1;TP332

【参考文献】

相关期刊论文 前1条

1 赵海舰,甘萌;嵌入式系统中的Flash编程技术研究[J];计算机工程与设计;2005年11期

相关硕士学位论文 前1条

1 左敏江;嵌入式生产测试工具Product Assistant的设计与实现[D];电子科技大学;2006年



本文编号:2244261

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2244261.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户7c9aa***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com