微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > cc254x 编译报错 Range error

cc254x 编译报错 Range error

时间:10-02 整理:3721RD 点击:

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函数过长,超出了跳转范围了,你试试稍微优化下

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top