完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我们使用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个回答
|
|
你好,
序列号功能仅在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 |
|
|
|
感谢您及时的回复。我已经使用了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 |
|
|
|
你好,
不,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 |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2632 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3607 浏览 6 评论
5987 浏览 21 评论
939浏览 4评论
1315浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
582浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1302浏览 3评论
1357浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 05:33 , Processed in 1.016163 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号