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.

CC2540 reset looping when using oad feature

Other Parts Discussed in Thread: CC2540

Hi,

I'm using a custom CC2540 board, and my project is based on the KeyFobDemo project.

Here are the preprocessor defined symbols of my project (without oad define) :

INT_HEAP_LEN=3072
HALNODEBUG
OSAL_CBTIMER_NUM_TASKS=1
HAL_AES_DMA=TRUE
POWER_SAVING
xPLUS_BROADCASTER
HAL_LCD=FALSE
HAL_LED=FALSE
GATT_TI_UUID_128_BIT

Then, here is my probem : the project with the oad feature (oad service, BIM, etc...) keeps resetting every almost 500ms (so i can't keep a ble connection with it),  while the project without works fine.


I found that with "HAL_LED=TRUE", there's no more resetting and i can connect to it, but then, the led pins are disturbed (by the led driver i guess).

Since i need to free the led pins that i'm interested in (P1_0, P1_1), i would like to keep HAL_LED=FALSE.

Any idea about the "reset loop"?

Best regards,

Gui

  • How is it resetting? Do you hit a breakpoint in main()? Is the reset line going low?

    Is this custom hardware or a TI reference platform?
  • It's custom hardware.  Here is the reset command line :

    Mainly, it jumps between 2.2V and 2.6V.

    For now, the only way i found is too keep HAL_LED=TRUE and redirect the LEDs on unused pins, in hal_board_cfg.h :

    #define LED1_SBIT                    P1_7

    #define LED2_SBIT                    P1_6

    So I'm sure my issue is somehow linked with the led management but I still don't know why the LED pins are disturbed while HAL_LED=FALSE (preprocessor define).

    Best regards,

    Gui

  • I don't see how writing to an LED would cause a reset. I would recommend having your schematic reviewed by our hardware team. If you send me a PM with your schematic, I can forward it to them.