没有合适的资源?快使用搜索试试~ 我知道了~
MSP430 UART bootloader
4星 · 超过85%的资源 需积分: 15 138 下载量 112 浏览量
2011-03-07
09:13:35
上传
评论
收藏 321KB PDF 举报
温馨提示
试读
48页
MSP430 Programming Via the Bootstrap Loader
资源推荐
资源详情
资源评论
MSP430 Programming Via the Bootstrap Loader
User's Guide
Literature Number: SLAU319A
July 2010–Revised August 2010
2
SLAU319A–July 2010–Revised August 2010
Copyright © 2010, Texas Instruments Incorporated
Contents
1 Programming Via the Bootstrap Loader ................................................................................. 7
1.1 Supplementary Online Information ....................................................................................... 7
1.2 Introduction .................................................................................................................. 7
1.3 Standard RESET and BSL Entry Sequence ............................................................................ 8
1.3.1 MSP430 Devices With Shared JTAG Pins ..................................................................... 8
1.3.2 MSP430 Flash Devices With Dedicated JTAG Pins .......................................................... 9
1.3.3 Devices With USB ................................................................................................. 9
1.4 UART Protocol .............................................................................................................. 9
1.5 USB Protocol ................................................................................................................ 9
2 ROM-Based Bootstrap Loader Protocol ................................................................................ 11
2.1 Synchronization Sequence ............................................................................................... 11
2.2 Commands ................................................................................................................. 11
2.2.1 Unprotected Commands ......................................................................................... 11
2.2.2 Password Protected Commands ............................................................................... 11
2.3 Programming Flow ........................................................................................................ 12
2.4 Data Frame ................................................................................................................. 13
2.4.1 Data-Stream Structure ........................................................................................... 13
2.4.2 Checksum ......................................................................................................... 14
2.4.3 Example Sequence ............................................................................................... 14
2.4.4 Commands – Detailed Description ............................................................................. 14
2.5 Loadable BSL .............................................................................................................. 18
2.6 Exiting the BSL ............................................................................................................ 19
2.7 Password Protection ...................................................................................................... 19
2.8 Code Protection Fuse ..................................................................................................... 20
2.9 BSL Internal Settings and Resources .................................................................................. 20
2.9.1 Chip Identification and BSL Version ........................................................................... 20
2.9.2 Vectors to Call the BSL Externally ............................................................................. 20
2.9.3 Initialization Status ............................................................................................... 21
2.9.4 Memory Allocation and Resources ............................................................................. 22
3 Flash-Based Bootstrap Loader Protocol ............................................................................... 23
3.1 BSL Data Packet .......................................................................................................... 23
3.2 UART Peripheral Interface (PI) .......................................................................................... 23
3.2.1 Wrapper ............................................................................................................ 23
3.2.2 Abbreviations ...................................................................................................... 23
3.2.3 Messages .......................................................................................................... 24
3.2.4 Interface Specific Commands ................................................................................... 24
3.3 USB Peripheral Interface ................................................................................................. 24
3.3.1 Wrapper ............................................................................................................ 24
3.3.2 Hardware Requirements ......................................................................................... 25
3.4 BSL Core Command Structure .......................................................................................... 25
3.4.1 Abbreviations ...................................................................................................... 25
3.4.2 Command Descriptions .......................................................................................... 26
3.5 BSL Security ............................................................................................................... 27
3.5.1 Protected Commands ............................................................................................ 27
3.5.2 RAM Erase ........................................................................................................ 27
3
SLAU319A–July 2010–Revised August 2010 Contents
Copyright © 2010, Texas Instruments Incorporated
www.ti.com
3.6 BSL Core Responses ..................................................................................................... 28
3.6.1 Abbreviations ...................................................................................................... 28
3.6.2 BSL Core Messages ............................................................................................. 29
3.6.3 BSL Version Number ............................................................................................. 29
3.6.4 Example Sequences for UART BSL ........................................................................... 30
3.7 BSL Public Functions and Z-Area ....................................................................................... 30
3.7.1 Starting the BSL From an External Application ............................................................... 30
3.7.2 Function Description ............................................................................................. 30
4 Bootstrap Loader Hardware ................................................................................................ 31
4.1 Hardware Description ..................................................................................................... 31
4.1.1 Power Supply ..................................................................................................... 31
4.1.2 Serial Interface .................................................................................................... 32
4.1.3 Target Connector ................................................................................................. 33
4.1.4 Parts List ........................................................................................................... 34
5 Differences Between Devices and Bootstrap Loader Versions ................................................ 35
5.1 5xx/6xx BSL Versions ..................................................................................................... 35
5.2 Special Consideration for ROM BSL Version 1.10 .................................................................... 36
5.3 ROM BSL Known Issues ................................................................................................. 36
5.4 Special Note on the MSP430F14x Device Family BSL .............................................................. 44
6 Bootstrap Loader PCB Layout Suggestion ........................................................................... 45
4
Contents SLAU319A–July 2010–Revised August 2010
Copyright © 2010, Texas Instruments Incorporated
www.ti.com
List of Figures
1-1. Standard RESET Sequence............................................................................................... 8
1-2. BSL Entry Sequence at Shared JTAG Pins ............................................................................. 8
1-3. BSL Entry Sequence at Dedicated JTAG Pins.......................................................................... 9
4-1. Bootstrap Loader Interface Schematic ................................................................................. 31
6-1. Universal BSL Interface PCB Layout, Top ............................................................................. 45
6-2. Universal BSL Interface PCB Layout, Bottom ......................................................................... 45
6-3. Universal BSL Interface Component Placement ...................................................................... 46
6-4. Universal BSL Interface Component Placement ...................................................................... 47
List of Tables
2-1. Data Frame of BSL Commands ........................................................................................ 13
2-2. Recommendations for MSP430F149 ['F449] (T
A
= 25°C, V
CC
= 3.0 V, f
max
= 6.7 MHz) .......................... 17
2-3. Recommendations for MSP430F2131 (T
A
= 25°C, V
CC
= 3.0 V, f
max
= 6.7 MHz) .................................. 17
3-1. UART Protocol Interface.................................................................................................. 23
3-2. UART Error Messages.................................................................................................... 24
3-3. USB Peripheral Interface ................................................................................................. 24
3-4. BSL Core Commands..................................................................................................... 25
3-5. BSL Core Responses..................................................................................................... 28
3-6. BSL Core Messages ...................................................................................................... 29
4-1. Serial-Port Signals and Pin Assignments .............................................................................. 32
4-2. RS-232 Levels ............................................................................................................. 32
4-3. Pin Assignment of Target Connector .................................................................................. 33
4-4. Universal BSL Interface Parts List ...................................................................................... 34
5-1. BSL Version 1.10 on 'F13x, 'F14x(1) (excluding Rev AA), 'F11x, and 'F11x1 .................................... 37
5-2. BSL Version 1.30 on 'F41x, 'F11x, and 'F11x1........................................................................ 38
5-3. BSL Version 1.40 on 'F12x............................................................................................... 39
5-4. BSL Version 1.60 on 'F11x2, 'F12x2, 'F43x, 'F44x, 'FE42x, 'FW42x, 'F(G)43x, 'F415, 'F417................... 40
5-5. BSL Version 1.61 on 'F16x, 'F161x, 'F42x0, 'F13x rev AA, 'F14x(1) rev AA ...................................... 41
5-6. BSL Version 2.02 on 'F21xx, 'F22xx, 'F24x, 'F23x.................................................................... 42
5-7. BSL Version 2.12/2.13 on 'FG46xx, 'F261x, 'F471xx ................................................................ 43
5
SLAU319A–July 2010–Revised August 2010 List of Figures
Copyright © 2010, Texas Instruments Incorporated
剩余47页未读,继续阅读
congma
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页