诸位大侠,公司量产需要烧录程序,芯片型号是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,应该如何处理?求助,谢谢!
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
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
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中导出的,
继续努力看看
>>>Erasing PROGRAM MEMORY
<API>ERROR : Erase is not available on PROGRAM MEMORY for STM8S207C8
<<< Erase PROGRAM MEMORY fails
一周热门 更多>