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.

按键主从一体程序,添加HAL_UART=TRUE后,出现Error[e104]: Failed to fit all segments into specified ranges.

Other Parts Discussed in Thread: CC2541, CC2540

在CC2541中,通过摇杆更改BLE主从一体程序中,原来没有串口,增加HAL_UART=TRUE后,出现了如下的错误问题

Error[e104]: Failed to fit all segments into specified ranges. Problem discovered in segment XDATA_N. Unable to place 2 block(s) (0xaf2 byte(s) total) in 0x9de byte(s) of memory. The problem occurred while processing the segment placement command "-P(XDATA)XDATA_N=_XDATA_START-_XDATA_END", where at the moment of placement the available memory ranges were "XDATA:1522-1eff"

但是同样的程序,在CC2540芯片中,进出现了一个警告,更改串口DMA后警告消除,但在CC2541中更改DMA后没有任何反应。

一下是CC2541中的配置

INT_HEAP_LEN=2800
HALNODEBUG
OSAL_CBTIMER_NUM_TASKS=1
HAL_AES_DMA=TRUE
HAL_DMA=TRUE
xPOWER_SAVING
HAL_LCD=TRUE
HAL_LED=TRUE
HAL_KEY=TRUE
HAL_UART=TRUE

采用的TI的ti_51ew_cc2540b.xcl配置文件。