Hy,
I have a simple PCB, holding the CC2640 and a 24MHz Quarz (And a LED, Capacitors etc.). That's about it. No 32,768kHz Quarz. Everything looks fine, I can download and debug using CCS. But the device does no advertising. I use the same code without any issues for another board that is pretty much the same, but this has a 32.768kHz.
I found the switch SET_CCFG_MODE_CONF_SCLK_LF_OPTION in ccfg.c. I used a different setting by adding the following lines to ccfg_appBLE.c
#include <startup_files/ccfg.c> #undef SET_CCFG_MODE_CONF_SCLK_LF_OPTION //************************************************** / / SCLK LF option //************************************************** #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x0 // Low frequency clock derived from High Frequency XOSC
What else could be the reason for my board not advertising? When stepping through the code and placing breakpoints, I see that the state GAPROLE_STARTED and GAPROLE_ADVERTISING is set when debugging processStateChangeEvt
Best regards
Harald