Hey guys,
We're seeing a random GAP_LINK_TERMINATED_EVENT anywhere from 20sec to 2min after connecting to the BLE iOS example app. The reason code was 0x3F, but we also saw 0xEE and 0xEF.
Our hardware setup -- really simple. Just a CC2541 design, based exactly on the CC2541Keyfob_SCHEMATIC.pdf, rev. 1.4.0. EXCEPT, no DCDC Regulator (just two AAs), and no accelerometer (we removed it). No buttons or buzzer, either.
Our software setup -- also really simple. It's just the default keyFob app example from the BLE Stack v.1.3. We commented out everything in the init and ReadAcc functions in the accelerometer drivers, and just increment new_x, y, z in accelRead to simulate data. We also set initial_advertising_enable = TRUE (since no buttons).
Our test -- we just connect with the BLE iOS example app and let it run. We see the hardcoded X,Y,Z values coming in. On our HW board, it just stops after a small (random) period of time and we get that GAP_LINK_TERMINATED_EVENT. BUT, if we run on the TI eval board for the CC2540 with the CC2540 build, it works just fine and goes forever.
We're stumped. Any suggestions out there?
Thanks!
Brian