请问一下,如何通过STVP_CmdLine接口读取MCU的OTP数据
目前,STVP_CmdLine的使用帮助支持以下功能.
- Usage:STVP_CmdLine [-BoardName=STxxx] [-Port=xxx] [-ProgMode=xxx] [-Device=STxxx]
- [-Tool_ID=x]|[-NbTools=x] [-version] [-verbose]|[-no_verbose] [-log]|[-no_log] [-loop]|[-no_loop]
- [-help] [-no_progProg] [-no_progData] [-no_progOption] [-progress]|[-no_progress]
- [-warn_protect]|[-no_warn_protect] [-readProg] [-readData] [-readOption]
- [-erase]|[-no_erase] [-blank]|[-no_blank] [-verif]|[-no_verif]
- [-FileProg=fname.hex/s19] [-FileData=fname.hex/s19] [-FileOption=fname.hex/s19]
- With:
- [-BoardName=STxxx] ==========> Programming Tool name (ST-LINK, RLINK, STICE, ...)
- [-Tool_ID=x] ================> ST-LINK Programming Tool ID (0, 1, 2...)
- [-NbTools=x] ================> Number of ST-LINK Tools with same device connected (Tool_ID is automatically incremented)
- [-Port=xxx] =================> Communication Port (USB, LPT1)
- [-ProgMode=xxx] =============> Programming mode or protocol (SWIM, JTAG, SWD)
- [-Device=STxxx] =============> Device name (exact same name as in STVP)
- [-version] ==================> Display version of this application
- [-verbose] ==================> Display messages, warnings, errors
- [-log] ======================> Generate or append Result.log log file
- [-loop] =====================> Loop on actions until 'Space' key hit
- [-progress] =================> Display progress of each action
- [-warn_protect] =============> Message Box if programming Option Byte protection
- [-no_progProg] ==============> Do not program PROGRAM MEMORY (used to verify device from a file)
- [-no_progData] ==============> Do not program DATA MEMORY (used to verify device from a file)
- [-no_progOption] ============> Do not program OPTION BYTE (used to verify device from a file)
- [-readProg] =================> Read PROGRAM MEMORY
- [-readData] =================> Read DATA MEMORY
- [-readOption] ===============> Read OPTION BYTE
- [-erase] ====================> Erase the device (before programming)
- [-blank] ====================> Blank Check the device (before programming)
- [-verif] ====================> Verify the device after programming
- [-FileProg=fname.hex/s19] ===> File name to program PROGRAM MEMORY area (hex or s19)
- [-FileData=fname.hex/s19] ===> File name to program DATA MEMORY area (hex or s19)
- [-FileOption=fname.hex/s19] => File name to program OPTION BYTE area (hex or s19)
可以对PROGRAM MEMORY与OPTION BYTE进行读取,依OPTION读取为示例
- STVP_CmdLine.exe -BoardName=ST-LINK -ProgMode=SWD -Tool_ID=0 -Device=STM32F205xG -progress -readOPTION
- STVP_CmdLine version 1.6
- Verbose ON
- Log activity ON
- Display Progress ON
- Message box warning if protect option byte ON
- Loop mode ON
- Erase device OFF
- Blank check device OFF
- Verify device ON
- Configuration:
- BoardName=ST-LINK ST-LINK_ID=0 Device=STM32F205xG Port=USB ProgMode=SWD
- Hit 'Esc' key to abort during communication.
- >>> Reading OPTION BYTE
- 25 50 75 100 <<< Reading OPTION BYTE succeeds
由于其没有支持OTP数据参数,所以不知道如何读取OTP的数据。
如果传参使用-readData,命令行返回
- >>> Reading DATA MEMORY
- (API) ERROR : Unknown memory Area name
- <<< Reading DATA MEMORY fails
|