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.

Error debugging

Other Parts Discussed in Thread: CC2540

Hi everyone,

I'm trying to debug my software on cc2540 with the cc debugger. In my project I've excluded the defined symbol HALNODEBUG (replaced with xHALNODEBUG) in preprocessor menu. But when I compile the project it gives me the error:

Error[e46]: Undefined external "halAssertHandler::?relay" referred in OSAL_Memory (C:\Texas Instruments\BLE-CC2540-1.1a\Projects\ble\SimpleBLEPeripheral\CC2540DB\CC2540DK-MINI Keyfob Slave\Obj\OSAL_Memory.r51)

I think it happen because the halAssertHandler() function, that is declared in hal_assert.h, is not defined (because in the project there isn't  the hal_assert.c file). What I can do?

  • Hi Giacomantonio,

    What is it you want to debug? You should be able to debug with HALNODEBUG defined. Although note that you cannot debug during connection and still keep the connection since you will loose low level timing when stopping the device, causing a disconnect.

    Br