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 Debug

HI,

I am working with two boards, the have CC540.

on the first I'm running the SimpleBLECentral code and on the second I'm running the SimpleBLEPeripheral.

Without debugging, it works well, I see the connection packets by "Packet Sniffer).

but when I'm trying to debug in any of them, after establishing the connection and during Service Discovery or later after some more few packets I see in the Packet Sniffer, there are no packets!!

some times if I want to put breakpoint to see byte was received (read) to the Central (Client), the application stop in other line and stops the running, and if I try to continue it does not work!

can I debug my application while there is connection? I need this to check my code Please!

Thanks.

  • Hello,

    Once you hit breakpoint the connection will drop since BLE is timing based. Up until that point it will work. If break-point is acting funny, try building that file or section with optimization set to none in compiler settings.

    Br,

    Greg