TI中文支持网
TI专业的中文技术问题搜集分享网站

cc254x 编译报错 Range error

Building configuration: SimpleBLEPeripheral – CC2541LinkingError[e18]: Range error, Number out of range File: C:\Texas Instruments\BLE-CC254x-1.4.1\Projects\ble\New BLE_Bridge\Source\BLE_Bridge.c, Line: 694 Source: LJMP ??simpleProfileChangeCB_3 Where $ = simpleProfileChangeCB + 0x2C63C [0x2C63C] in module "BLE_Bridge" (C:\Texas Instruments\BLE-CC254x-1.4.1\Projects\ble\New BLE_Bridge\CC2541DB\CC2541\Obj\BLE_Bridge.r51), offset 0x61 in segment part 42, segment BANKED_CODE What: (simpleProfileChangeCB + 0x114) [0x2C6EF] Allowed range: 0xFFFF8000 – 0xFFFF Operand: simpleProfileChangeCB [0x2c6ef] in module BLE_Bridge (C:\Texas Instruments\BLE-CC254x-1.4.1\Projects\ble\New BLE_Bridge\CC2541DB\CC2541\Obj\BLE_Bridge.r51), Offset 0x114 in segment part 42, segment BANKED_CODEError while running LinkerTotal number of errors: 1Total number of warnings: 0

看起来是空间不够,如果把simpleProfileChangeCB中的GAP_SetParamValue和osal_snv_write函数注释了就编译通过???在option-general options-target中更改后同样报错,请高手指导,谢谢!!

ABC ABC3:

没人能回答吗?

Barbara Wu:

您的路径不要包含有空格再试试

New BLE_Bridge把空格去掉或者用符号代替

cedar_xuesong:

貌似是CB函数过长,超出了跳转范围了,你试试稍微优化下

赞(0)
未经允许不得转载:TI中文支持网 » cc254x 编译报错 Range error
分享到: 更多 (0)