终于解决了这个问题,请先看cc2430在IAR开发环境中配置文件的一段代码:
目录:C:\Program Files\IAR Systems\Embedded Workbench 4.0 Evaluation version\8051\config
“lnk51ew_cc2430.xcl”---底层配置文件
// IXDATA
//
-D_IXDATA_START=0xF000 // The internal xdata is 4k.
// The end limit is 4 bytes lower on CC2430/31 for rev. D, compared to rev. A, B and C
// -D_IXDATA_END=0xFD57 // Revision A, B and C
-D_IXDATA_END=0xFD53 // Revison D (this setting is safe for all revisions)
// FD54 (FD58) to FEFF used for reg savings
// FF00 to FFFF mapped to IDATA
//
//
// XDATA
//
// The internal XDATA is used as XDATA.
-D_XDATA_START=_IXDATA_START
-D_XDATA_END=_IXDATA_END