请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:LP-CC2652R7 您好!
是否有如何使用 SmartRF Flash Programmer 2 CLI 的任何文档? 是否可以锁定 CLI 中的调试接口? 在 GUI 中、可以...
此致
塞巴斯
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!
是否有如何使用 SmartRF Flash Programmer 2 CLI 的任何文档? 是否可以锁定 CLI 中的调试接口? 在 GUI 中、可以...
此致
塞巴斯
您好、Sebastian、
Smart RF Flash Programmer 2文档可通过右上角的 GUI 问号单选按钮获取、然后单击"Brose Complete Help Document"。 有一个专门用于"命令行界面(CLI)"的部分

或者、您可以输入"srfprog -h"来获取以下信息:
Texas Instruments SmartRF Flash Programmer 2 v1.8.2-windows
-------------------------------------------------------------------------------
The following Command Line Options are supported by the Flash Programmer
>srfprog [Target] [Actions] [File] [Address]
The order of the parameters is irrelevant.
Description of a specific option can be obtained with:
>srfprog -h [target | actions | file | address | example | help]
Only the two first letters are required: E.g.: srfprog -h ta
Help notation:
[] Square brackets are used for optional parameters.
%% Percentage mark used for symbols to be replaced.
{} Curly brackets used where one of the options are required.
| Vertical bars for choice of items.
-------------------------------------------------------------------------------
Target: {-t | --target} [soc | lsidx]
soc(%device id%[, %chip id%]) SoC Device
%device id%: Device ID of connected EB. This parameter is case sensitive.
%chip id%: Chip ID. If not given for XDS emulator devices,
probing to determine the connected SoC will be
performed and this will take longer time.
Chip ID is mandatory in combination with COM devices.
lsidx(%index%) List index
%index%: Index of connected device returned from a list command.
-------------------------------------------------------------------------------
Actions: [-ls | --list] | [-e | --erase] | [-p | --program] |
[-v | --verify] | [-r | --read] | [-w | --write] |
[-k | --keep] | [-c | --change] | [-rs | --reset] |
[-j4 | --jtag4]
{-ls | --list} [min | all | auto]
min: List connected Cebal devices(Default).
all: List all connected devices.
auto: List all connected devices and automatically try to find the chip id
for ARM based devices.
{-e | --erase} [all | p | pif | epfw | ep | forced]
all: Erase all unprotected pages(Default).
p(%pages%): Erase given pages.
pif: Erase pages in source file.
forced: Forced Mass erase. Cannot be combined with
other actions.
{-p | --program} [all | epfw | ep]
all: Program all pages in source file(Default).
epfw(%value%): Exclude pages from source file filled with given value.
ep(%pages%): Exclude given pages from source file.
{-v | --verify} [crc | rb] [pif | all | epfw | ep]
crc: Verify pages using CRC checksum(Default).
rb: Verify pages using readback and bytewise comparison.
all: Verify all pages in source file (Default).
epfw(%value%): Exclude pages from source file filled with given value.
ep(%pages%): Exclude given pages.
{-r | --read} [all | p | addr | macpri | macpri154 | macprible |
macsec | macsec154 | macsecble]
all: Read all pages(Default). Output to file.
p(%pages%): Read given pages. Output to file.
addr(0x%address%,%length%):
Read from given address with given length.
macpri: Read Primary IEEE 802.15.4 MAC Address.
macpri154: Read Primary IEEE 802.15.4 MAC Address.
macprible: Read Primary BLE MAC Address.
macsec: Read Secondary IEEE 802.15.4 MAC Address.
macsec154: Read Secondary IEEE 802.15.4 MAC Address.
macsecble: Read Secondary BLE MAC Address.
{-w | --write} {macpri | macsec | macsec154 | macsecble | ccfg | addr | p}
macpri=01.02.03.04.05.06.07.08:
Program Primary IEEE 802.15.4 MAC address.
Write of primary address only supported for CC2538 and
only if information page is not locked.
macsec=01.02.03.04.05.06.07.08 or
macsec154=01.02.03.04.05.06.07.08:
Program Secondary IEEE 802.15.4 MAC Address.
macsecble=01.02.03.04.05.06:
Program Secondary BLE MAC Address.
ccfg({wpp(%pages%) | ldbg | disbl})
Combinations of the following options are possible and must be separated
by a ','
wpp=%pages%: Program CCFG area with page lock
bits for the given pages.
ldbg: Program CCFG area with bit for
locking debug interface
disbl: Program CCFG area with bit for
disabling the bootloader interface
addr(0x%address%,%length%)=0x%value%
Fill the an address range in flash with the given value.
The value must be given as a one byte hexadecimal number
p(%pages%)=0x%value%
Fill the a page range in flash with the given value.
The value must be given as a one byte hexadecimal number
{-k | --keep} {mac | macble | mac154&macble | ccfg}
mac: Keep(or Retain) IEEE Mac address from Target device.
macble: Keep(or Retain) Ble Mac address from Target device.
mac154&macble: Keep(or Retain) IEE and Ble Mac address from Target device.
ccfg: Keep(or Retain) Complete CCFG area from Target device.
{-c | --change} {mac | mac154 | macble | efk | ldbg | wpp | disbl}
Combinations of options are possible and must be separated
by a ','
mac=01.02.03.04.05.06.07.08 or
mac154=01.02.03.04.05.06.07.08:
Change(patch) flash image with IEEE 802.15.4 MAC address.
macble=01.02.03.04.05.06:
Change(patch) flash image with BLE MAC address.
mac154=01.02.03.04.05.06.07.08 macble=01.02.03.04.05.06:
Change(patch) flash image with both addresses.
ekf(%file%, %address%):
Change(patch) flash image with Encryption Key data.
A file with the encryption key certificate and the flash
address must be given.
wpp(%pages%):
Change(patch) CCFG area in flash image with page lock
bits for the given pages.
ldbg:
Change(patch) CCFG area in flash image with bit for
locking debug interface
disbl:
Change(patch) CCFG area in flash image with bit for
disabling the bootloader interface
{-rs | --reset} [normal | none | pin | pinHib]
Pin reset is default.
Please refer to the help documentation for a detailed
description of the different reset options.
The reset action must be combined with the erase or program action.
{-j4 | --jtag4}
Use 4-pin jtag. 2-pin cJTAG is default.
{-up | --updateEmulator}
Update firmware on emulator. Option is applicable for XDS110, and cannot be
combined with other actions. Do not unplug the debug probe during the update.
-------------------------------------------------------------------------------
File: {-f | --file} %file%
%file%: Full or relative path. E.g. C:\myfolder\test.bin.
Path name with spaces must be enclosed between quote characters.
E.g. "C:\myfolder\my test.bin"
or "C:\Program files\myfolder\test.bin"
-------------------------------------------------------------------------------
Address: {-a | --address} [0x]%address%
%address%: Flash address to start programming.
-------------------------------------------------------------------------------
Examples:
>srfprog -ls
>srfprog -ls all
>srfprog -ls auto
>srfprog -t lsidx(0) -e all
>srfprog -t lsidx(0) -r macsec
>srfprog -t lsidx(0) -r all -f C:\myfolder\readback.bin
>srfprog -t lsidx(0) -r p(0-4) -f C:\myfolder\readback.bin
>srfprog -t lsidx(0) -r addr(0x200000,8)
>srfprog -t lsidx(0) -w macsec=01.02.03.04.05.06.07.08
>srfprog -t lsidx(0) -e pif -p epfw(0) -f C:\myfolder\test.bin -a 0x200000
>srfprog -t lsidx(0) -e pif -p epfw(0) -v rb -f C:\myfolder\test.bin -a 0x200000
>srfprog -t lsidx(0) -e all -p -v rb epfw(0x55) -f C:\myfolder\test.bin -a 0x200000
>srfprog -t lsidx(0) -e all -p -v rb ep(0-1) -f C:\myfolder\test.bin -a 0x200000
>srfprog -t lsidx(0) -e pif -p epfw(0) -v crc -f C:\myfolder\test.bin -a 0x200000 -k mac
>srfprog -t lsidx(0) -e pif -p epfw(0) -v crc -f C:\myfolder\test.bin -a 0x200000 -c mac=01.02.03.04.05.06.07.08
>srfprog -t lsidx(0) -e pif -p epfw(0) -v crc -f C:\myfolder\test.hex -c ekf(C:\myfolder\certificate.txt, 0x27FF6C)
>srfprog -t soc(XDS-06EB12100300A,CC2538) -e -p -v -f c:\test.hex
>srfprog -t soc(COM1, CC2640) -e -p -v -f c:\test.hex
最终您要寻找"srfprog -t lsidx(0)-e forced"
此致、
瑞安