Dears,
I am working on a project based on the SimpleBLEPeripheral project inside BLE1.3.2
The IAR version is 8.20.2. the hardware is CC2541F128.
I followed the step from link http://processors.wiki.ti.com/index.php/128kproject and created the project.
The defined symbols in the IAR setting are as following:
"INT_HEAP_LEN=3072
HALNODEBUG
OSAL_CBTIMER_NUM_TASKS=1
HAL_AES_DMA=TRUE
HAL_DMA=TRUE
POWER_SAVING
xPLUS_BROADCASTER
HAL_LCD=FALSE
HAL_LED=FALSE
CC2540_MINIDK
HAL_BOARD_128K"
And i changed DEFAULT_DISCOVERABLE_MODE definition to GAP_ADTYPE_FLAGS_GENERAL and initial_advertising_enable to TRUE as following:
"#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL //GAP_ADTYPE_FLAGS_LIMITED"
"uint8 initial_advertising_enable = TRUE; //FALSE"
When i do debugging with IAR via CC Debugger, i can see the adv packets continuously with one Packet Sniffer. But when i disconnect the cc debugger and power off/on the dev kit again, i can only see one (to three adv) packet(s).
With the same project with CC2540F256, i can see the adv packets continuously as i expected.
Do you know where i missed something for CC2541F128 to let it work?
You are highly appreciated for any comment and help.
BR,
Sun