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.

New Situation: Connection unstable when using TPS62730 with SimpleBLEPeripheral example, but good when using KeyFob example.

Other Parts Discussed in Thread: TPS62730

There was some hardware problem with my board in this post https://e2e.ti.com/support/wireless_connectivity/f/538/p/440554/1613735#1613735 

I tried the SimpleBLEPeripheral and KeyFob example program in TI BLE1.4.0 stack. I change the P0_7 to P1_5 because I use P1_5 in my board.

For test, I removed all the pheripheral circuits that connected to the IOs. And the remaing circuit is just as follows:

The problem is in 2.

With KeyFob exmaple: 

1. With POWER_SAVING and HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN5 ); both enable

    Connection is always stable, everything is alright.

With SimpleBLEPeripheral exmaple:

2. With POWER_SAVING and HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN5 ); both enable

    Connection is unstable, it's hard to connection estabilishment oftern failed and even if estabilished, it will disconnect in seconds or tens of seconds. 

    The waveform of Vout of TPS62730 in is shown in the following photo, which is allright.

3. With POWER_SAVING disable and HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN5 ); enable

    The VCC is keeping 2.1V. Connection is always stable, everything is alright.

4. With POWER_SAVING enable and HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN5 ); disable

    The VCC is keeping 3.3V. Connection is always stable, everything is alright.

    Of cause, I also did the same experiment in 3. and 4. with Keyfob example. Connection is always stable, everything is alright.

    And I also tried these experiments in other 2 boards, get the same result.

    Compare 1. and 2., I don't know why the SimpleBLEPeripherial example cannot work well with TPS62730 controlled with BLE stack, but good in KeyFob example. I think, considering 1., 3. and 4., it's unlikely a haredware problem.

    What's the possible cause? Is there any other software things to do when let the BLE stack to control TPS62730?

    Please help!

Frank

  • Hi Frank,

    Just to confirm, are you running SimpleBLEPeripheral (SBP) and keyfob projects on your same HW? Have you tried using BLE 1.4.1?
    I agree, it's likely a SW issue. Using the debugger, can you check the port IO config? Maybe there is a difference in IO config that is contributing to the problem.

    Best wishes
  • Hi Frank,

    Are the control signals for the bypass/on signal identical for both the Keyfob- and your custom SW?

    Cheers,
    Fredrik
  • Hi guys,

            I think I've found the cause of the problem.

            I found the JTAG wire is not very stable. When I used the SmartRF Flash Programmer to program the chip, I always choosed "Erase and program".

            This time, I change to choose "Erase, program and verify".

    1. I found sometime althrough "Erase and program" is successful, but "Verify" is not successful. When this happens, the BLE device can be found and even can be connected, but the connection is not stable.

        I think when  "Erase and program" is successful but "Verify" is not successful, some bits were written wrong into the Flash, which makes the program not work normally.

    2. When "Erase and program" and "Verify" are all successful, the connection is always stable.

    3. I change another JTAG cable, and the "Verify" is always successful.

           So I think for the SBP example and the keyfob example. Maybe when I program the keyfob example, it was lucky the cable is stable every time...

          Whatever, the connection is stable now with both of the examples.

          Thank you very much for your help!

          B.R.

    Frank