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