ARMmbed / ble-x-nucleo-idb0xa1

port of BLE_API to ST BLE shield
14 stars 5 forks source link

RESET problem #21

Open ponty opened 7 years ago

ponty commented 7 years ago

After reset EddystoneObserver sometimes works sometimes not . If I replace wait_us() with wait_ms() in reset() function then it always works.

sed -i -e 's/wait_us/wait_ms/' ./shields/TARGET_ST_BLUENRG/source/BlueNRGDevice.cpp

Output with DEBUG set:

btleInit>>
GATT_Init failed.
GAP_Init failed.
Auth Req set failed.

Hardware:

IDB0XA1_D13_PATCH is set

Demo: https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_EddystoneObserver LED1 is removed

pan- commented 7 years ago

@ponty This issue should be fixed by #23. Could you verify and update this ticket ?

ponty commented 7 years ago

It works!

The comment is not correct: "1500ms"

    /* Reset BlueNRG SPI interface. Hold reset line to 0 for 1500ms */
    rst_ = 0;
    wait_us(1500);