没有合适的资源?快使用搜索试试~ 我知道了~
MSP430 Memory Programming.pdf
需积分: 10 12 下载量 200 浏览量
2009-11-25
18:47:59
上传
评论
收藏 1.29MB PDF 举报
温馨提示
试读
112页
MSP430 Memory Programming.pdf MSP430 Memory Programming.pdf MSP430 Memory Programming.pdf
资源推荐
资源详情
资源评论
MSP430 Memory Programming
User's Guide
Literature Number: SLAU265C
February 2009 – Revised July 2009
Contents
1 Overview of MSP430 Programming .............................................................................. 9
2 MSP430 Programming Via the Bootstrap Loader .......................................................... 11
2.1 Introduction .................................................................................................................. 11
2.2 Standard RESET and BSL Entry Sequence ............................................................................ 12
2.2.1 MSP430 20-Pin and 28-Pin Flash Devices With Shared JTAG Pins ....................................... 12
2.2.2 MSP430 Flash Devices With Dedicated JTAG Pins .......................................................... 13
2.3 UART Protocol .............................................................................................................. 13
3 ROM-Based Bootstrap Loader Protocol ....................................................................... 15
3.1 Synchronization Sequence ................................................................................................ 15
3.2 Commands .................................................................................................................. 15
3.2.1 Unprotected Commands ......................................................................................... 15
3.2.2 Password Protected Commands ................................................................................ 15
3.3 Programming Flow ......................................................................................................... 16
3.4 Data Frame ................................................................................................................. 17
3.4.1 Data-Stream Structure ............................................................................................ 17
3.4.2 Checksum .......................................................................................................... 18
3.4.3 Example Sequence ............................................................................................... 18
3.4.4 Commands – Detailed Description .............................................................................. 18
3.5 Loadable BSL ............................................................................................................... 22
3.6 Exiting the BSL ............................................................................................................. 23
3.7 Password Protection ....................................................................................................... 23
3.8 Code Protection Fuse ...................................................................................................... 23
3.9 BSL Internal Settings and Resources ................................................................................... 24
3.9.1 Chip Identification and BSL Version ............................................................................ 24
3.9.2 Vectors to Call the BSL Externally .............................................................................. 24
3.9.3 Initialization Status ................................................................................................ 25
3.9.4 Memory Allocation and Resources.............................................................................. 26
4 Flash-Based Bootstrap Loader Protocol ...................................................................... 27
4.1 BSL Data Packet ........................................................................................................... 27
4.2 Timer_A UART Peripheral Interface (PI) ................................................................................ 27
4.2.1 Wrapper ............................................................................................................ 27
4.2.2 Abbreviations ...................................................................................................... 27
4.2.3 Messages .......................................................................................................... 28
4.2.4 Interface Specific Commands ................................................................................... 28
4.3 BSL Core Command Structure ........................................................................................... 29
4.3.1 Abbreviations ...................................................................................................... 29
4.3.2 Command Descriptions ........................................................................................... 29
4.4 BSL Security ................................................................................................................ 30
4.5 BSL Core Responses ...................................................................................................... 31
4.5.1 Abbreviations ...................................................................................................... 31
SLAU265C – February 2009 – Revised July 2009 Contents 3
Submit Documentation Feedback
www.ti.com
4.5.2 BSL Core Messages .............................................................................................. 31
4.5.3 BSL Version Number ............................................................................................. 32
4.5.4 Example Sequences .............................................................................................. 32
5 Bootstrap Loader Hardware ....................................................................................... 33
5.1 Hardware Description ...................................................................................................... 33
5.1.1 Power Supply ...................................................................................................... 33
5.1.2 Serial Interface ..................................................................................................... 34
5.1.3 Target Connector .................................................................................................. 35
5.1.4 Parts List ........................................................................................................... 36
6 Differences Between Devices and Bootstrap Loader Versions ....................................... 37
6.1 Special Consideration for the MSP430F543x and MSP430F541x BSL ............................................ 37
6.2 Special Consideration for ROM BSL Version 1.10 .................................................................... 37
6.3 BSL Known issues ......................................................................................................... 38
7 Bootstrap Loader PCB Layout Suggestion .................................................................. 47
8 MSP430 Programming Via the JTAG Interface .............................................................. 51
8.1 Introduction .................................................................................................................. 51
8.2 Interface and Instructions ................................................................................................. 52
8.2.1 JTAG Interface Signals ........................................................................................... 52
8.2.2 JTAG Access Macros ............................................................................................. 54
8.2.3 Spy-Bi-Wire (SBW) Timing and Control ....................................................................... 57
8.2.4 JTAG Communication Instructions .............................................................................. 61
8.3 Memory Programming Control Sequences ............................................................................. 66
8.3.1 Start-Up ............................................................................................................. 66
8.3.2 General Device (CPU) Control Functions ...................................................................... 69
8.3.3 Accessing Non-Flash Memory Locations With JTAG ........................................................ 77
8.3.4 Programming the Flash Memory (Using the Onboard Flash Controller) ................................... 81
8.3.5 Erasing the Flash Memory (Using the Onboard Flash Controller) .......................................... 86
8.3.6 Reading From Flash Memory .................................................................................... 90
8.3.7 Verifying the Flash Memory ...................................................................................... 90
8.4 JTAG Access Protection .................................................................................................. 90
8.4.1 Burning the JTAG Fuse - Function Reference for 1xx/2xx/4xx Families ................................... 90
8.4.2 Programming the JTAG Lock Key - Function Reference for 5xx Family................................... 92
8.4.3 Testing for a Successfully Protected Device .................................................................. 93
8.5 JTAG Function Prototypes ................................................................................................ 93
8.5.1 Low-Level JTAG Functions ...................................................................................... 93
8.5.2 High-Level JTAG Routines ....................................................................................... 95
8.6 References .................................................................................................................. 99
9 JTAG Programming Hardware and Software Implementation ....................................... 101
9.1 Implementation History ................................................................................................... 101
9.2 Implementation Overview ................................................................................................ 101
9.3 Software Operation ....................................................................................................... 102
9.4 Software Structure ........................................................................................................ 103
9.5 Programmer Operation ................................................................................................... 105
9.6 Hardware Setup ........................................................................................................... 105
9.6.1 Host Controller ................................................................................................... 105
9.6.2 Target Connection ............................................................................................... 105
9.6.3 Host Controller/Programmer Power Supply .................................................................. 107
4 Contents SLAU265C – February 2009 – Revised July 2009
Submit Documentation Feedback
www.ti.com
10 Internal MSP430 JTAG Implementation ...................................................................... 109
10.1 TAP Controller State Machine .......................................................................................... 109
10.2 MSP430 JTAG Restrictions (Non-Compliance With IEEE Std 1149.1) ............................................ 109
A Errata and Revision Information ............................................................................... 111
SLAU265C – February 2009 – Revised July 2009 Contents 5
Submit Documentation Feedback
剩余111页未读,继续阅读
资源评论
liujianssdut
- 粉丝: 7
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功