一种CC2530 IEEE自增的量产方法
来源:互联网 发布:网络手游下载 编辑:程序博客网 时间:2024/05/16 11:03
最近CC2530准备量产,由于采用IEEE来防止终端加入其它协调器,因此要求每个IEEE是不一致的。
直接采用SmartRF Flash Programmer一个个修改的话,工作量大,而且很容易出错。
TI并未提供类似的工具,去某宝找,寥寥几家,而且还死贵的。
无意中进入SmartRF Flash Programmer安装目录,竟然发现TI提供了一个命令行的exe:
SmartRFProgConsole.exe!
试着运行一下:
Texas Instruments SmartRF Flash Programmer v1.13.7-no-mfc
---------------------------------------------------------
SmartRFProgConsole [Target][Actions][File][Interface Slow][Change / IEEE address][Flash lock][Bootloader ID]
The order of the parameters is irrelevant.
Target: [S][AU][AS][B]
S System-on-Chip (programmed via USB)
Type S(n), where n is the board ID number, to select a specific EB.
Otherwise, if there are multiple boards, the one to be programmed will be
selected at random.
AU EB application (programmed via USB)
Type AU(n), where n is the board ID number, to select a specific EB.
Otherwise, if there are multiple boards, the one to be programmed will be
selected at random.
AS(n) EB application (programmed via the EC2 adapter on serial port COMn).
(only SmartRF04EB)
B(n) EB bootloader (programmed via the EC2 adapter on serial port COMn).
(only SmartRF04EB)
Actions to perform: [P][EP][EPV][EPVC][PV][PVC][V][R][RP][EP][WP][CE]
P Program (all targets)
EP Erase and program (all targets)
EPV Erase, program and verify (all targets)
EPVC Erase, program and verify (CRC each page=>faster) (only target S)
PV Program (append) and verify (only target S)
PVC Program and verify (CRC each page=>faster) (only target S)
V Verify against hex or hem file (targets S, AS, B)
VC Verify against hex or hem file (CRC each page=>faster) (targets S, AS, B)
R Read into hex file (only target S)
RP= Read flash page into binary file (only target S)
EP= Erase flash page (only target S)
WP= Write flash page from binary file (only target S)
EWP= Erase and Write flash page from binary file (only target S)
CE Full chip erase (only target S)
File: F="f"
"f" Flash image file name (intel hex file (*.hex), or hex merge file (*.hem))
A merge file can contain one or more file/change specifications.
See "example.hem" for how to create one.
Interface Slow(Target = S): [IS]
IS Program SoC (System on chip) with reduced speed on the debug interface.
Change hex file before programming (e.g. for serial number): [A=a,D=d][EKF="f"]
A=a,D=d Change one or more bytes in the hex file before downloading it.
a Hexadecimal address (e.g. 2C03, 01BC25)
d One or more bytes to be changed, in hexadecimal format, separated with
dots (e.g. 4B, 1.2.3.A.B.C, 12.34.56.AB.CD.EF or 12.3.AB)
EKF Patch hex file with Encryption Key data.
"f" Certificate file from Certicom with encryption key data.
IEEE MAC address related options [KI(F=f)] [RI(F=f,[PRI][SEC])] [WI(F=f,I=i)]
(only CC243x, CC253x and CC254x)
KI(F=f) Keep the IEEE MAC address currently on the chip when programming it
RI(F=f,[PRI][SEC]) Read out the IEEE MAC address currently on the chip
For devices with both a primary and a secondary address, the option "PRI" or "SEC" can be used to specify which to read. "PRI" is default.
WI(F=f,I=i) Write the given IEEE MAC address to the chip when programming it
f The chip's flash size in kB (only used for CC243x)
CC243x: 32, 64, or 128 (determines the location of the IEEE address)
CC253x, CC254x: set to 0 (not used)
i IEEE MAC address to write in hexadecimal format, separated
with dots (e.g. 00.12.4B.00.00.00.00.01).
8 bytes for CC243x and CC253x, and 6 bytes for CC254x.
Flash lock (Target = S): [L(c)][LB(c)][LD(c)][LA(c)][LP(x-y)][LD][LPD(x-y)]
"L(c), LB(c), LD(c), LA(c)" only CC243x, cc111x and CC251x. "LP(x-y), LD, LPD(x-y)" only CC253x and CC254x
c Code for write protection of the upper section of the flash:
CC111x, CC251x: 0=All, 1=24 kB, 16 kB, 8 kB, 4 kB, 2 kB, 1 kB, 7=None
CC2430, CC2431: 0=All, 1=64 kB, 32 kB, 16 kB, 8 kB, 4 kB, 2 kB, 7=None
L(c) Write protect section only (L(7) is equal to omitting this parameter)
LB(c) Write protect section + boot block
LD(c) Write protect section, and block debug commands
LA(c) Write protect section + boot block, and block debug commands
LP(x-y) Write protect flash pages from page x to page y.
Several ranges can be given separated with a comma:
E.g. LP(0-26,48-126), LP(0,1,2,8-10).
LD Block debug commands
LPD(x-y) Write protect flash pages and block debug commands.
Bootloader ID (Target = B): I=i
i Becomes the EB ID number when programming new bootloader. Use 1-4 digits
(e.g. 0123, 3, or 45). Important: EBs that are used on the same computer
must have unique ID numbers!
只要写个简单程序,调用SmartRFProgConsole.exe,IEEE想怎么增就怎么增!
以下是运行效果:
- 一种CC2530 IEEE自增的量产方法
- CC2530的IEEE地址
- VS2005 GridView中增加自增列的一种方法
- GridView中增加自增列的一种方法
- 一种分布式系统下的自增主键实现方法
- 文件自销毁的一种方法
- SQLServer 数据去重的一种处理方法(增加一个自增字段,利用自增,删除重复数据)
- 关于cc2530的ADC使用的方法
- 一种IEEE 1588硬件的设计和实现
- Json解析的两种方法:一种Android自带的,一种第三方Gson
- IEEE浮点数表示法 选择自 fireseed 的 Blog
- IEEE浮点数表示法 选择自 fireseed 的 Blog
- CC2530中断处理方法
- 自定义id自增的一种方式-辅助表
- 一个简单的,纯jdbc的自增流水号生成,一种类型一种流水号
- android中RadioButton中的自带的圆圈如何去掉,两种方法,一种.xml、一种代码中
- 一种有效的关系数据库压缩方法 选择自 l1t 的 Blog
- 一种较方便在Android中添加开机自启动的守护进程的方法
- idea 打包包含依赖的JAR文件
- mysql 修改表中 value的一部分值
- Application的Theme与Activity的Theme 摘要
- 电商平台分布式存储系统的搭建01
- PopUpWindow使用详解(一)——基本使用
- 一种CC2530 IEEE自增的量产方法
- Python 时间戳及本地时间处理
- U3D开发学习之路--问题
- EPOLL反应堆代码和说明注释
- Singleton 设计模式
- 技术世界开通了
- spring框架核心思想以及注入方式(一)
- 【Linux网络编程】浅谈 TCP 三次握手和四次挥手
- React 入门实例教程