Cypress技术论坛
直播中

周颖雯

8年用户 153经验值
私信 关注
[问答]

在编译时构建版本控制闪存中有什么东西可以参考吗

我想把一些类型的参考代码我编程版板,这样我就可以很容易地分辨什么是在现场生产。我现在只是硬编码这与变量如int版本= 2;有东西在闪光我可以参考,会有一些基于构建独特?

以上来自于百度翻译


     以下为原文
  I would like to store some type of reference to the version of code im programming to boards so I can easily tell what is out in the field in production.  I am currently just hardcoding this in with a variable like int version = 2;  Is there something in the flash I can reference that would have something unique based on the build?

回帖(1)

傅琦

2018-9-18 14:38:53
我使用String宏、Sy-DaTeeSyz和SyTimeType嵌入伪版本。
对我来说,这个信息更好,可以发送一个UART或一个消息。

以上来自于百度翻译


     以下为原文
  I use the string macros __DATE__ and __TIME__ to embed a pseudo version.
 
For me this info is better and can be sent out a uart or in a message
举报

更多回帖

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