Design and Implementation of Programmer & Debugger Based on S12 Series MCU

Author
ShenXiaoHui
Advisor
ZhuQiaoMing
School
Suzhou University
Major
Applied Computer Technology
Classification
TP368.1 Microprocessor
Degree
Master's thesis
Year
2009
Downloads
71
Citations
3

Request the full text

Abstract

Freescale semiconductor is one of the world’s largest semiconductor companies.And S12 series microcontroller is its main products,which are widely used in automotive electronics,intelligent home electrical appliance and industrial automation etc.This series of microcontroller have built-in background debug module.It can realize powerful on-chip debugging mode which is very convenient to research embedded system product.This debugging mode is of great benefit to accelerate development progress and shorten the development cycle.However,the research and development on S12 background debug mode(BDM) is less in domestic and the support to the new high performance microcontrollers is not enough.So the domestic designer is mainly used foreign development system.After further research on BDM interface,this paper designs and implements the programmer & debugger system based on S12 series microcontroller.Firstly,this paper compares debugging modes and concludes the corresponding characteristics of them.On the base of analyzing the operation principles of S12 BDM debugging mode,this paper designs the implementation scheme of S12 programmer& debugger.Then,this paper illustrates the development process from the aspects of microcontroller software design and PC software design,and gives the concrete realization of communication flow,programming and debugging function.Using the high performance chip to implement data interaction between PC and target microcontroller,and on the consideration that some operations can be done in parallel,this paper improves the communication flow and increases the communication rate of programmer&debugger.This paper accomplishes the frequency detection of different target chips and completes the universal design of erasing & writing module to enhance the adaptability and universality of target chips.This paper implements the efficient code loading and perfect debugging functions.The technical schemes of this research provide a reference for the development of programmer&debugger based on other types of microcontroller and for the similar embedded products.

Table of contents

Chinese Abstract 3-4 Abstract 4-7 Chapter 1 Introduction 7-15 1.1 S12 series microcontroller 7-8 1.2 Embedded commonly used debugging method analysis 8-11 1.3 research status 1.4 subject to achieve the objectives and significance 11-12 1.5 of this paper work and structure 12-15 1.5.1 This article topics sources 12-13 1.5.2 this paper work 13 1.5.3 This article structure 13-15 Chapter 2 programming and debugging system technology research 15-25 2.1 BDM debug mode technology research 15-21 2.1.1 BDM module structure 15-16 2.1.2 BDM communication timing 16-18 2.1.3 BDM command 18-19 2.1.4 BDM activation 19-20 2.1.5 BDM breakpoint mechanism 20-21 2.2 FLASH memory programming technology 21-24 The basic characteristics of the 2.2.1 FLASH memory 21 2.2.2 FLASH memory programming concepts 21-22 2.2.3 FLASH register 22-24 2.3 This chapter Summary 24-25 Chapter 3 programming and debugging system implementations and hardware design 25-31 3.1 programming and debugging system implementations 25-26 3.2 programming debugger chip selection 26-27 3.3 base system circuit design 27-30 3.3.1 power circuit 27-28 3.3.2 crystal oscillator circuit The 28 3.3.3 reset circuit 28 3.3.4 USB interface circuit 28-29 3.3.5 BDM interface circuit 29-30 3.4 This chapter Summary 30-31 Chapter 4 the BDM programming and debugging software design 31-51 4.1 programming and debugging software design process 31-32 4.2 USB module design 32-35 4.2.1 USB initialization 32 4.2.2 USB device enumeration 32-34 4.2.3 USB data transfer 34-35 4.3 BDM function module design 35-50 4.3.1 target chip frequency test 35-37 4.3.2 BDM byte communication realization 37-41 4.3.3 BDM bytes transceiver subroutine select 41 4.3.4 BDM command implementation 41-43 4.3.5 target chip the FLASH erase function realization 43-45 4.3.6 target chip FLASH write functions to achieve 45-48 4.3.7 debugging features to achieve 48-50 4.4 This chapter Summary 50-51 Chapter 5, the high-end programming and debugging system software design and realization 51-73 5.1 USB communication to achieve 51-52 5.2 object code analysis 52-55 5.2.1 S1 format object code analysis 52-53 5.2.2 S2 format object code analysis 53-55 5.3 erase function 55-57 5.4 communication process improvements 57-59 5.5 erase to write modules versatility design 59-60 5.6 debugging features to achieve 60-72 5.6.1 list file analysis 60-62 5.6.2 breakpoint setting 62-63 5.6.3 Step debugging 63-64 5.6.4 Step debugging 64-65 5.6.5 \ 5.6.6 variable data acquisition and processing 66-72 5.7 This chapter Summary 72-73 Chapter 6 Summary and Outlook 73-76 6.1 Design Experience 73-74 6.2 summarizes 74-75 6.3 Looking 75-76 the References 76-78 to Appendix A UF32 chip USB module registers 78-79 studying for a master's degree in public during the papers 79-80 Acknowledgements 80-81 the detailed summary 81-83

Related dissertations

  1. Design and Implementation of Programmer and Debugger for Freescale HCS08/HCS12 Family MCUs
    MengZhongWei ·Suzhou University ·2009 ·Master's thesis
  2. Design and Implementation of S08 Family MCUs General-purpose Writing System
    HuaXia ·Suzhou University ·2009 ·Master's thesis
  3. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  4. The Study of Remote Video Monitor System Baced on ARM
    GuoZuo ·Hebei University of Technology ·2012 ·Master's thesis
  5. Research and Design of Intelligent Medical Infusion Monitoring System
  6. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  7. Video Surveillance System Based on Embedded Technology Research
  8. Design of Video Monitoring System Based on the Embedded
  9. The Design of Embedded Network Video Surveillance System Based on ARM9
  10. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  11. Design of Video Surveillance Software Based on Ti Dm6446Processor
    YuanWei ·Zhejiang University of Technology ·2013 ·Master's thesis
  12. Data Acquisition System of Cavern Based on Embedded Web Server
  13. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  14. Research of Permeability Testing System for Clay
  15. Research on the Indoor Air Monitoring System Based on Embedded Linux
  16. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  17. Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
  18. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  19. The Research of the Design and Application for Embedded Remote Terminal Unit
    XiaRui ·Northeastern University ·2013 ·Master's thesis
  20. Design and Implementation of Magnetic Card Detection System Based on Embedded System