你好,
首先,要解锁STM8,必须重新编程选项字节(读出保护为OFF)。
这将在程序和数据存储器上产生质量擦除。
如果您尝试进行批量擦除,则无法正常工作(设备受到保护)。
换句话说,要解锁,请执行与STVP相同的操作,重新编程值为ROP OFF的选项字节。
为此,您需要继续使用STVP GUI并使用所需的新值保存Option字节文件(十六进制或s19)。
然后,您可以使用编程工具包和程序选项字节加载此文件。
查看示例STVP_CmdLine.exe的代码。
您不需要知道数据库内容,它包含设备的描述。
最简单的方法是使用示例(STVP_CmdLine.exe)代码并对其进行调整,甚至使用exe作为生产,它可以满足您的所有需求。
这个exe现在安装了STVP(在STVP目录中)。
您可以使用参数调用exe(prog工具,端口,设备,程序和数据和选项字节文件名...)。
问候,
洛朗
以上来自于谷歌翻译
以下为原文
Hello,
First, to Unlock the STM8, you must reprogram the option bytes (Read Out Protection to OFF).
This will induce a Mass Erase on the program and data memories.
If you try to do a mass erase, it won't work (device is protected).
In other words, to Unlock, do the same as you would do on STVP, reprogram option bytes with the value ROP OFF.
To do that, you need to go on STVP GUI and save an Option bytes file (hex or s19) with the new values you want.
Then, you can load this file with the programming toolkit and program option bytes.
Look the code of the example STVP_CmdLine.exe.
You don't need to know the database stuff, it contains the device's description.
The easiest way for you is to take the example (STVP_CmdLine.exe) code and either adapt it or even use the exe as is for your production, it does all you need normally.
This exe is installed with STVP now (in STVP directory).
You can call the exe with parameters (prog tool, port, device, program & data & option bytes filenames...).
Regards,
Laurent
你好,
首先,要解锁STM8,必须重新编程选项字节(读出保护为OFF)。
这将在程序和数据存储器上产生质量擦除。
如果您尝试进行批量擦除,则无法正常工作(设备受到保护)。
换句话说,要解锁,请执行与STVP相同的操作,重新编程值为ROP OFF的选项字节。
为此,您需要继续使用STVP GUI并使用所需的新值保存Option字节文件(十六进制或s19)。
然后,您可以使用编程工具包和程序选项字节加载此文件。
查看示例STVP_CmdLine.exe的代码。
您不需要知道数据库内容,它包含设备的描述。
最简单的方法是使用示例(STVP_CmdLine.exe)代码并对其进行调整,甚至使用exe作为生产,它可以满足您的所有需求。
这个exe现在安装了STVP(在STVP目录中)。
您可以使用参数调用exe(prog工具,端口,设备,程序和数据和选项字节文件名...)。
问候,
洛朗
以上来自于谷歌翻译
以下为原文
Hello,
First, to Unlock the STM8, you must reprogram the option bytes (Read Out Protection to OFF).
This will induce a Mass Erase on the program and data memories.
If you try to do a mass erase, it won't work (device is protected).
In other words, to Unlock, do the same as you would do on STVP, reprogram option bytes with the value ROP OFF.
To do that, you need to go on STVP GUI and save an Option bytes file (hex or s19) with the new values you want.
Then, you can load this file with the programming toolkit and program option bytes.
Look the code of the example STVP_CmdLine.exe.
You don't need to know the database stuff, it contains the device's description.
The easiest way for you is to take the example (STVP_CmdLine.exe) code and either adapt it or even use the exe as is for your production, it does all you need normally.
This exe is installed with STVP now (in STVP directory).
You can call the exe with parameters (prog tool, port, device, program & data & option bytes filenames...).
Regards,
Laurent
举报