cc254x 编译报错 Range error
Building configuration: SimpleBLEPeripheral - CC2541
Linking
Error[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_CODE
Error while running Linker
Total number of errors: 1
Total number of warnings: 0
看起来是空间不够,如果把simpleProfileChangeCB中的GAP_SetParamValue和osal_snv_write函数注释了就编译通过?在option-general options-target中更改后同样报错,请高手指导,谢谢!
没人能回答吗?
您的路径不要包含有空格再试试
New BLE_Bridge把空格去掉或者用符号代替
貌似是CB函数过长,超出了跳转范围了,你试试稍微优化下