This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi,
我需要有二項功能.
1.在hex/bin中,提供 F.W 版本訊息,
2.同在hex/bin中,修改其它訊息
目前,遇到問題:
A.在程序中,所讀出的值不對.
ver_temp[0]=RELEASEVER[0];//read 06,but should be 00
ver_temp[1]=RELEASEVER[1];//read 0b ,but should be 01
B.必須要再轉成bin才可改值,(cc254x_sim2bin)
要如何把bin再轉回hex,或要如何在hex中修改.
我實作如下.
main.c
#pragma constseg=myccseg
__root const char RELEASEDATE[16] = __DATE__ ;
__root const char RELEASETIME[16] = __TIME__ ;
__root const char RELEASEVER[2] = {__MAJOR,__MINOR} ;
#pragma constseg=default
main.c
ver_temp[0]=RELEASEVER[0];
ver_temp[1]=RELEASEVER[1];
ti_51ew_cc2540f128b.xcl
//
// Setup for constants located in code memory:
//
-Z(CODE)myccseg=0x7FD0-0x7FFF
平台:
CC2540
SDK:
1.4.1
IDE:
IAR 9.20.2
ref: