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.

CC2530 options Target设置问题

Other Parts Discussed in Thread: CC2530

硬件:SMARTRF05

工程options设置

Target:选择为CC2530F256,选择ROM mapped as data

发现代码:uint8 Hello[] = "Hello,World!";的Hello总是0xff。

已经指定-DCONST="const __code"或者-DCONST="const __xdata_rom"都不行。求指导!!!

  • 应该用数组指针吧!用string可以吗?

  • Target:选择为CC2530F256,选择ROM mapped as data,这个直接改为设置为RAM就可以了。但是我必须把const的数据放到rom里面去啊?怎么搞?

  • 你好,我也遇到类似的问题,请问你解决了吗?我的问题大概如下: CC2530跑协议栈作为协调器的时候,数组还没终端的多,但是协调器在加 上:jdaddr = strtol(endaddr[i].addr,NULL,16) //将16进制字符串转为整型时出错,程序跑飞了 但是这条语句我在选择ram memory时没有出错的, endaddr 结构体原型如下 typedef struct END { uint8 type[3]; uint8 addr[4]; }ENDBUF;