The Research of the SWD Agreement and the Design of Program Downloader Based on ARM
- Author
- HuangYaPing
- Advisor
- PanYongCai
- School
- Hubei University
- Major
- Microelectronics and Solid State Electronics
- Classification
- TP368.1 Microprocessor
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 56
- Citations
- 0
Abstract
Along with the advantages of the high performance, high code density and small wafer area which designed by ARM Inc, Cortex-M3has become the ideal platform for low cost single chip microcomputer, automobile electronic, data communication, industrial control and consumer products. The ARM processor generally uses JTAG debugging interface, because the debugging tool is cheap and convenient for development. But JTAG debugging interface takes up at least5or6pins of the chip, this is inconvenient for most single chips. But Cortex-M3also supports serial debugging based on original JTAG debugging. The SWD only takes two pins of the chip and can be carried out all of the simulation and debugging, it can save the debugging with pins.Now in the market, JLINK from SEGGER Inc, ULINK from KEIL Inc and STLINK from ST Inc all support SWD interface, but the foreign companies are not fully open the material of SWD agreement. So, there exist difficulties to develop SWD agreement in the domestic. This article focuses on the overall structure of Cortex-M3, SPI interface and communicating protocols, SWD agreement and STM32flxx chips on embedded platform. Through the four modules realize the SWD writing system:SWD agreement realizing module, target board bootloader module, SPI communication module. Finally, the article realizes the development’s integrity and reliability through the alignment and validation test system.
Table of contents
Summary 5-6
Abstract 6-9
first chapter 9-15
1.1 Background and Significance 9 - 11
1.2 status and development trend of domestic 11-13
1.3 the design of the main work 13-15
1.3.1 dissertation research 13-14
1.3.2 key issues will be addressed 14
1.3.3 articles chapters arranged 14-15
Chapter II CPU and programming tools introduced 15-26
2.1 STM32F103 microcontroller series 32 15-21
2.1.1 STM32F103xx family of microcontrollers 15-17
2.1.2 STM32F103xx overall structure 17-18
2.1.3 STM32F103xx system functions 18-19
2.1.4 STM32F103xx on -chip peripherals 19-21
2.2 application development tool Keil uVision4 21-25
Summary principle study 25-26
Chapter III SWD protocol 26-42
3.1 SW-DP debug port 26-28
3.2 SWD protocol operations outlined 28-32
3.2.1 Key Description 28-29
3.2.2 writes 29-30
3.2.3 read 30-32
3.2.4 access Port write buffer 32 <br / > 3.3 serial Wire debug Port (SW-DP) programming model 32-37
3.3.1 SW-DP register 32-37
3.4 SWD protocol specific methods of operation 37-41
3.4.1 SWD reset and initialization process 38-40
3.4.2 SWD write data flow 40-41
3.4. 3 SWD interfaces when an I / O port lines using 41
Summary 41-42
Chapter IV of SWD downloader based STM32f103 system design 42-54
overall block diagram of a 4.1 system 42
4.2 SWD download hardware design 42-44
4.2.1 clock circuit 43-44
4.2.2 ISO7816 interface circuit 44
4.2.3 SWD interface circuit 44
4.3 SWD Downloader software design 44-51 <br / > 4.3.1 for the basic framework 45-46
4.3.2 SWD reset and initialization process 46-47
4.3.3 SWD write bootloader process 47 -49
4.3.4 SWD for ordinary GPIO lines of communication 49-51
4.4 bootloader programming 51-53
4.5 test section 53
summary 53-54
fifth chapter summarizes 54-56
5.1 summarizes topics 54
5.2 topics outlook 54-56
References 56-58
pursue a master's degree in published papers during participate during the 58
graduate research 58-59
Thanks 59
Related dissertations
- The FPGA Design&Implementation of High-speed DAC Based on the PCIE Bus
- Based on the Dspic30F6011A of Trajectory Recording System
- Study on Fully Digital High Power Square Wave Welding Power Source Based on ARM Cortex-M3
- The Research and Design of New Electric Energy Monitoring System
- Based on the Dspic30F6011A of Welding Current and Voltage Acquisition and Storage System
- The Distributed Transformer Terminal Unit with Multifunction Base on Two CPUs of Msp430
- Development of the Automobile Door System Based on Technology of LIN Bus
- Design and Implementation of Rearview Mirror Control System Based on LIN2.0 Sub-bus
- Research on Waveform Correction for UPS Inverter and Monitor Control Technique for UPS
- Design and Implementation of Dust-removing Control System
- Based on the design of multi-function meter MAXQ3180 GPRS meter reading and research
- Research on Structure and Control System of FDM Material Transmission Mechanism
- The Research and Application of EPA Network Access Technology