ST意法半导体
直播中

王博

7年用户 199经验值
私信 关注
[问答]

STVP编程工具包如何解锁芯片?

我查看了UM0151并且迄今为止已经成功开发了可以使用发现板编程器对STM8芯片进行编程的python代码,并修改了图像。


我正在努力为开发中的产品制造快速开发编程/测试套件。我发现UM0151非常模糊。没有提到任何芯片解锁。我已经阅读了使用MASS执行此操作的方法,但我不确定如何使用STVP Dll将其转换为API调用。

关于STVP dll的另一个烦恼是他们的无证功能和专有数据库系统。在我了解数据库包含的内容之前,为什么要浪费下午编写代码?结束咆哮。

我很感激一些帮助。

芯片; STM8S005







#stm8s005#st-link #stvp #icp

以上来自于谷歌翻译


以下为原文




I've looked over UM0151 and have thus far successfully developed python code that can program STM8 chips using the discovery board programmer, and modify the image.


I am trying to rapidly develop a programming/test suite for manufacturing of a product in development. I have found UM0151 to be very vague. There is no mention of chip-unlocking whatsoever. I have read of ways to do this with MASS, but I am not sure how to translate this into API calls using the STVP Dlls.

Another annoyance about the STVP dlls is their undocumented functions and proprietary database system. Why should I waste an afternoon writing code before I even understand what the database contains? End rant.

I'd appreciate some help.

Chip; STM8S005






  
#stm8s005 #st-link #stvp #icp

回帖(2)

卢颖萍

2019-3-20 10:54:05
你好,
 
 
 首先,要解锁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
举报

王燕

2019-3-20 11:10:09
是否有任何引脚必须接地以删除rop并再次编码

以上来自于谷歌翻译


以下为原文





is there any pin that must b ground to remove rop and code it again
举报

更多回帖

发帖
×
20
完善资料,
赚取积分