ST意法半导体
直播中

郭静

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

STVP用于超过序列号字符串

我们使用STVP(v3.3.1)来编程部件。我正在使用STVP中的该功能添加序列号。

但是我们有许多站点,因此每个站点都有唯一的识别信息。例如,如果来自站点2的站1,我想将以下字符串放在EEPROM中:''0102xxxx''其中xxxx是STVP生成的序列号。
对于站2,站点2:''0202xxxx'',其中XXXX是类似生成的独立序列号 - 站号和/或位置号使其唯一。

所以问题是:是否有一个命令行界面或脚本方法将站点和位置特定信息输入STVP以便编程到EEROM位置???
如果是这样,我该怎么做?

以上来自于谷歌翻译


以下为原文




We use STVP (v3.3.1) for programming parts.  I'm in the process of adding the Serial Number, using that feature in STVP.  

But we have a number of stations, and so each has unique identifying information.  For example, I want to put the following string in EEPROM if from station 1 at site 2: ''0102xxxx'' where xxxx is the serial number generated by STVP.  
For station 2, at site 2: ''0202xxxx'' where XXXX is a similarly generated independent serial number - the station number and/or location number makes it unique.

So the problem is: is there a command line interface or script method of getting station and location specific information into STVP for programming to an EEROM location???
If so, how do I do this?

回帖(3)

卢颖萍

2019-2-14 14:04:48
你好,
 
 序列号功能仅在STVP的“项目模式”中可用。
 您可以设置编程的地址(STM8L数据为0x1000),然后设置字节大小(例如4)。
 然后,您可以为将运行STVP项目的每个站设置不同的基本十六进制值。 (0101xxxx或0102xxxx)。
 然后,在每个prog之后应用此基值的增量。
 然后使用''编程所有选项卡''按钮或菜单来编程项目中的所有十六进制文件和SN。您可以在数据存储器选项卡中看到SN自动递增。
 
 您可以在每个工作站上执行不同的项目,指定所有配置(工具,设备,...),“程序存储器”的十六进制文件以及不同的序列号库。
 
 如果你想做一个脚本来改变0102基值,你可以做的是修改projet stp文件''project.stp''你会在哪里找到十进制的基值。
 它是一个文本文件,因此很容易修改或搞乱它,所以要小心。
 文件以最后编程的值保存。
 
 或者你可以像你所说的那样先编程站点和站点信息,然后对SN进行编程。
 您需要为每个工作站和站点生成一个DATA hex文件,并将其添加到项目中。
 
 其他选项可用于生产,例如“提示新的编程周期”。
 此外,选项''在下次项目加载时激活安全编程''将只保留''程序所有标签''按钮,所有其他按钮将显示为灰色。
 
 对于cmd行,STVP中安装了STVP_CmdLine.exe,它可以将EEPROM数据文件作为参数,但您需要在编程之前使用特殊的SN内部创建每个hex文件。
 
 RGDS,
 洛朗

以上来自于谷歌翻译


以下为原文





Hello,

Serial Number feature is only available in ''Project mode'' in STVP.
You can set the address where it will be programmed (0x1000 for STM8L Data) then the size in bytes (4 for exemple).
Then, you can set the base hex value different for each station on which the STVP project will run. (0101xxxx or 0102xxxx).
Then, the increment to apply after each prog on this base value.
Then use the ''Program all tabs'' button or menu to program all the hex files in the project and the SN. You can see in the data memory tab that the SN is incremented automatically.

You can do a different project on each station specifying all the config (tool, device,...), ''Program memory'' hex file and just the different serial number base.

If you want to do a script to change the 0102 base value, what you could do is to modify the projet stp file ''project.stp'' where you will find the base value in decimal.
It is a text file so it is easy to modify or mess with it so be careful.
The file is saved with the last value programmed.

Or you can do as you said by programming the station and site info first and program the SN just after.
You will need to generate a DATA hex file for each station and site and add it to the project.

Other options are available for production like ''prompt for a new programming cycle''.
Also the option ''activate secure programming on next project loading'' will leave only the ''Program all tabs'' button available and all other will be greyed out.

For cmd line, there is STVP_CmdLine.exe installed with STVP that can take the EEPROM Data file as argument but you would need to create each hex file with your special SN inside before programming.

Rgds,
Laurent
举报

郭静

2019-2-14 14:11:33
感谢您及时的回复。我已经使用了STVP的序列号功能,它通过STVP''Program |可以很好地处理特定数据所有标签''。
 
 
 我查看了命令行帮助。我的STVP v3.3.1显示了STVP-CmdLine.exe版本1.6,但它没有列出对序列号的支持。至少没有记录的命令,或者“加载前的清除内存”(与擦除不同)和project.stp文件中的其他几个参数。是否有更新版本的命令行工具?
 
 我的制造用途的目标是加载EEROM工作站和位置信息,然后让STVP序列号处理这样做,因为我似乎无法同时获得这两者。
 我将为数据存储器(EEPROM)存储设置一个hex文件,并希望在加载hex文件后运行序列号函数,这样我就可以一步完成所有需求。它确实意味着每个站点和位置的唯一数据存储器十六进制文件和STP文件,但这是可以接受的。
 
 再次感谢,
 迈克史蒂文斯

以上来自于谷歌翻译


以下为原文





Thanks for the quick response.  I have used the serial number feature of STVP, and it works well for that specific data via the STVP ''Program | All Tabs''.


I've looked at the command line help.  My STVP v3.3.1 shows STVP-CmdLine.exe version 1.6, but it doesn't list support for serial numbering.  At least there is no command documented for it, or for the ''clear memory before loading'' (which is not the same as erasing) and several other parameters that are in the project.stp file.  Is there a newer version of the command line tool?

My goal for this manufacturing use is to have the EEROM station and location information loaded, then have the STVP serial number process do it's thing since I can't seem to get both at one time.
I'll set up a hex file for the Data Memory (EEPROM) storage, and hope that the serial number functions run after loading the hex file so that I can accomplish all my needs in one step.  It does mean a unique data memory hex file and STP file for each station and location, but that is acceptable.

Thanks again,
Mike Stevens
举报

卢颖萍

2019-2-14 14:19:55
你好,
 
 
 不,STVP_CmdLine工具中没有序列号功能。
 所有这些都是在STVP中的GUI中完成的。
 ''stp''文件是STVP的项目文件,它不适用于STVP_CmdLine工具。
 
 RGDS,
 洛朗

以上来自于谷歌翻译


以下为原文





Hello,


No, there is no Serial Number feature in STVP_CmdLine tool.
All is done in the GUI in STVP.
The ''stp'' file is the project file for STVP, it doesn't work with STVP_CmdLine tool.

Rgds,



Laurent
举报

更多回帖

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