请教,关于STVP_CmdLine的使用方法

2019-07-19 20:27发布

诸位大侠,公司量产需要烧录程序,芯片型号是STM8S105C6T6,
烧录器型号:ST_LINK/V2
安装STVP win7-64,点击STVP visual programme,进入烧录界面,操作正常

由于需要,拟使用STVP_CmdLine进行烧录,主要是方便将这个命令模式编写进入vb程序,以前烧录stm32使用J-LINK也是这样做的


在dos环境下,下达命令:STVP_CmdLine -port=USB -BoardName=ST-LINK -Device=stm8s105c6 -ProgMode=SWIM -no_warn_protect -no_loop -FileProg=p.hex -FileData=d.hex -FileOption=o.hex
得到错误提示如下:
STVP_CmdLine version 1.6

Verbose ON
Log activity ON
Display Progress OFF
Message box warning if protect option byte OFF
Loop mode OFF
Erase device OFF
Blank check device OFF
Verify device ON

(API) ERROR : Device STM8S105C6 not found in DBCFILE.CNF file


请问DBCFILE.CNF是什么文件,怎么没有发现STM8S105C6,应该如何处理?求助,谢谢!

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
5条回答
kuheye
1楼-- · 2019-07-20 00:54
 精彩回答 2  元偷偷看……
kuheye
2楼-- · 2019-07-20 01:44
将型号更改为STM8S105x6,可以找到这个器件,但仍然错误,提示如下:
STVP_CmdLine version 1.6

Verbose ON
Log activity ON
Display Progress OFF
Message box warning if protect option byte OFF
Loop mode OFF
Erase device OFF
Blank check device OFF
Verify device ON

Configuration:
BoardName=ST-LINK ST-LINK_ID=0 Device=STM8S105x6 Port=USB ProgMode=SWIM

>>> Filling PROGRAM MEMORY image in computer with Blank Value
<<< Filling PROGRAM MEMORY image in computer succeeds

>>> Loading file p.hex in PROGRAM MEMORY image in computer
<<< Loading file succeeds

>>> Filling DATA MEMORY image in computer with Blank Value
<<< Filling DATA MEMORY image in computer succeeds

>>> Loading file d.hex in DATA MEMORY image in computer
<<< Loading file succeeds

>>> Loading file o.hex in OPTION BYTE image in computer
(API) WARNING : FILE : line 1: Address 0x4802 is out of range and is ignored!
(API) WARNING : FILE : line 1: Address 0x4804 is out of range and is ignored!
(API) WARNING : FILE : line 1: Address 0x4806 is out of range and is ignored!
(API) WARNING : FILE : line 1: Address 0x4808 is out of range and is ignored!
<<< Loading file succeeds

Hit 'Esc' key to abort during communication.

>>> Programming PROGRAM MEMORY
(API) ERROR : Cannot communicate with the device !
Check the SWIM cable connection and check all the needed pin connections on the SWIM connector.

If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider:
Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low.

<<< Programming PROGRAM MEMORY fails
kuheye
3楼-- · 2019-07-20 02:27
粗心大意,没有插上SWIM杜邦线,重新来,错误信息如下:
STVP_CmdLine version 1.6

Verbose ON
Log activity ON
Display Progress OFF
Message box warning if protect option byte OFF
Loop mode OFF
Erase device OFF
Blank check device OFF
Verify device ON

Configuration:
BoardName=ST-LINK ST-LINK_ID=0 Device=STM8S105x6 Port=USB ProgMode=SWIM

>>> Filling PROGRAM MEMORY image in computer with Blank Value
<<< Filling PROGRAM MEMORY image in computer succeeds

>>> Loading file p.hex in PROGRAM MEMORY image in computer
<<< Loading file succeeds

>>> Filling DATA MEMORY image in computer with Blank Value
<<< Filling DATA MEMORY image in computer succeeds

>>> Loading file d.hex in DATA MEMORY image in computer
<<< Loading file succeeds

>>> Loading file o.hex in OPTION BYTE image in computer
(API) WARNING : FILE : line 1: Address 0x4802 is out of range and is ignored!
(API) WARNING : FILE : line 1: Address 0x4804 is out of range and is ignored!
(API) WARNING : FILE : line 1: Address 0x4806 is out of range and is ignored!
(API) WARNING : FILE : line 1: Address 0x4808 is out of range and is ignored!
<<< Loading file succeeds

Hit 'Esc' key to abort during communication.

>>> Programming PROGRAM MEMORY
(API) ERROR : The device is protected
(API) WARNING : Operation aborted
<<< Programming PROGRAM MEMORY fails


Address 0x4802~0x4808是保护代码的,o.hex这个文件是在STVP Visual Programme中导出的,
继续努力看看
kuheye
4楼-- · 2019-07-20 05:58
 精彩回答 2  元偷偷看……
cwl436
5楼-- · 2019-07-20 06:13
想请教以下,使用stvp_cmdline时,总是出现
>>>Erasing PROGRAM MEMORY
<API>ERROR : Erase is not available on PROGRAM MEMORY for STM8S207C8
<<< Erase PROGRAM MEMORY fails

一周热门 更多>