Hi All,
I am using the CC2540 and my firmware is based on the SimpleBLEPeripheral (I have added new characteristics with 128bit UUIDs).
If I start my hardware from a power-cycle, it works OK.
If I start my hardware with / without debugger, it works OK.
However, if I reflash and restart via the debugger (in IAR), it might work, it might not. Generally, the firmware suggests it's advertisting (debug output in peripheralStateNotificationCB() ). But BTool doesn't see it. I know it hasn't crashed because I have a periodic task running (every 500ms) which toggles an LED. And I know BTool is working as it sees other BLE stuff in range.
I am wondering if the binary only stack isn't being reset properly, or the other embedded core doing the software radio magic has got into a strange state because the 8051 has been stopped / started with the debugger.
Can anybody confirm that using the debugger to reset the 8051 will also perform a full hardware reset on the radio?
If not, is there a way to guarantee the radio is in it's power-on state? Or to perform a full reset?
Thanks,
Chris.