Other Parts Discussed in Thread: CC2530, Z-STACK
IAR 环境 CC2530 如何把指定的字符串常量写到指定的程序地址空间 (通过编译和烧写 bin 文件实现)
我做BootLoader的版本号管理, 用的是IAR 编译环境,想把版本号做为一个字符串常量存到flash 的指定地址中, 我想通过编译设置就能实现 该字符串常量的指定地址分配,烧写bin文件即可。在应用程序中,对指定FLASH 地址读取 来获取BootLoader 的版本号,谢谢
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.
请问如何对该数字付初始值呢
#pragma location =0x1ff0
__root __no_init char
RELEASEDATE[16] = "V0.1";
我只要给他赋值就会出现下面的提示
Error[Be022]: location address not allowed for initialized variables (writable variables without the __no_init attribute) E:\work\IC_Video\code\zigbee_code\BootLoad_HV3\source\sb_main.c 185
我去掉前面的 __no_init 属性 也是同样提示这个错误