5 Replies Latest reply on Jun 30, 2020 6:56 AM by DheerajK_81

    BLE error in debug - CY8CPROTO-062-4343W

    RuHe_1008296

      When using MBED with the  CY8CPROTO-062-4343W we found that when debugger is attached (no breakpoints set) the BLE does not call the ble init callback.

      everything seems to work fine without the debugger attached.

       

      Bluetooth will never start advertising when a debugger is connected and execution is run via the debugger. If the debugger session is stopped and the target is reset, the bluetooth will start advertising.  This weird behavior can be seen in the “Mbed-os-example-wifi-provisioning-via-bl” example project.

       

      Everything seems to work fine up to MBED 5.14.1. But when using anything newer the BLE does not work while debugging.

       

      Wierd debugging Behavior verified on the following mbed-os tags:

      • 5.15.1
      • 5.15.3
      • 5.14.2

      Everything seems to work correctly on

      • 5.13.1
      • 5.14.0
      • 5.14.1

       

      This can be reproduced taking the Mbed-os-example-wifi-provisioning-via-bl” example project and upgrading mbed from 5.13.1 to 5.14.2 or higher.

       

      We would like to use the newest released version of MBED but, without debugging functionality it is unfeasible.