BLE Warnings on IDF 2.0

gregstewart90
Posts: 59
Joined: Thu Jan 19, 2017 5:17 pm

BLE Warnings on IDF 2.0

Postby gregstewart90 » Fri Apr 28, 2017 12:20 am

I've upgraded to the new IDF (2.0), and my BLE code is having a few issues.

When the board is reset, I get the following:

Code: Select all

BTDM CONTROLLER VERSION: 010101
btip start
copy .data from 4000d890 to 3ffae6e0, len 00001830
set .bss 0x0 from 3ffb8000 to 3ffbff70, len 00007f70
BTDM ROM VERSION 0101
BD_ADDR: 24:0A:C4:04:A7:DA
sNVDS MAGIC FAILED
tRF Init OK with coex
Enable Classic BT
Enable Low Energy
E (533) BT: Startup BTU

E (533) BT: GATTS_CreateService:  handle of service handle1
E (553) BT: bta_dm_co_ble_load_local_keys: func not ported

I (563) GATTS_DEMO: REGISTER_APP_EVT, status 0, app_id 0

E (563) BT: Partial data write into ADV
I (573) GATTS_DEMO: CREATE_SERVICE_EVT, status 0,  service_handle 40

I (573) GATTS_DEMO: SERVICE_START_EVT, status 0, service_handle 40

I (583) GATTS_DEMO: ADD_CHAR_EVT, status 0,  attr_handle 42, service_handle 40

I (593) GATTS_DEMO: the gatts demo char length = 3

I (593) GATTS_DEMO: prf_char[0] =11

I (603) GATTS_DEMO: prf_char[1] =22

I (603) GATTS_DEMO: prf_char[2] =33

I (603) GATTS_DEMO: ADD_DESCR_EVT, status 0, attr_handle 43, service_handle 40
When I connect with the app, I get

Code: Select all

E (64033) BT: btm_ble_resolve_random_addr_on_conn_cmpl unable to match and resolve random address
E (64263) BT: smp_br_connect_callback is called on unexpected transport 2

I (64263) GATTS_DEMO: SERVICE_START_EVT, conn_id 0, remote 6b:94:11:00:65:51:, is_conn 1
When I first uploaded the code, it reset several times, and then was okay. I tried reflashing it with the same image, and it constantly reset. I erased the flash, reflashed, and we start the process back over. It doesn't respond to anything from my TCP socket or allow me to connect via BLE. After about 20 seconds, it reset and everything works. I reflash it again and it constantly reboots.

I updated the the IDF using git submodule update --init --recursive.

Ideas?

Who is online

Users browsing this forum: No registered users and 81 guests