4 posts / 0 new
Last post
wpc
Offline
Last seen: 12 months 2 days ago
Joined: 2020-11-26 01:35
DA14531 disconnect error

Hi dialog:

  I use DA14531 as peripheral device and found that my program would usually enter 

//We are not in Connected State
ASSERT_ERROR(0);

in gapc_disconnect_ind_handler at app_task.c when the central disconnects. I checked the state of app task and it's APP_DISABLED. I searched the project and didn't found where the code set the state. So what should I do to locate the problem?

Device: 
Martin.Ge
Offline
Last seen: 1 year 2 months ago
Staff
Joined: 2020-01-06 06:51
HI wpc,

HI wpc,

Which BLE project are you useing to develop your application? 

Br

Martin

wpc
Offline
Last seen: 12 months 2 days ago
Joined: 2020-11-26 01:35
My project are based on empty

My project are based on empty_peripheral_template.

wpc
Offline
Last seen: 12 months 2 days ago
Joined: 2020-11-26 01:35
An update: I checked app

An update: I checked app state after connected and it's already APP_DISABLED, even if I set the state to APP_CONNECTED manually in user_app_on_connection.