I am using BLE for NUS template example to create my app , and when I Compile my code with Keil 5.23.0.0 with optimization Level 0, It behaves good with the following operations:
1. Download app to chip, connect with APP on mobilephone
2. disconnet the ble connection on the phone
3. connect with APP on the mobile phone, OK
But:
when I compile the code with optimization Level 3 , re-do the operation 1.2.3 , I cannot find the device when step 3
It seems than the chip stop advertiing when I disconnect the first time!
Any one met this case?