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 使用ROM mapped as data选项程序没法运行正确

Other Parts Discussed in Thread: Z-STACK, CC2530

我使用CC2530芯片,跑一段简单的串口输出代码(非TI z-stack代码),在iar中选择RAM memory就可以正确的输出串口信息,选择ROM mapped as data选项则没法正确输出信息,选择ROM mapped as data时已经选择了正确的f8w2530.xcl文件,f8w2530.xcl文件里把 Xdata 映射内容如下:

-P(CONST)XDATA_ROM_C=0x8000-0xFFFF

跟踪调试发现 char buf[]="hello" ,的指针的确是指向了 0x8000-0xFFFF这一段地址上,但是buf所指向的0x80xx地址确没有看到字符串"hello"的内容。

出现这样的问题要如何去解决呢?