Hi,
I ported the
void ble_peripheral_task(void *params)
{
printf("\n*** Custom BLE Service Demonstration ***\n\n\r");
// in case services which do not use svc are all disabled, just suppress -Wunused-variable
// /* register ble_peripheral task to be monitored by watchdog */
// wdog_id = sys_watchdog_register(false);
/* Get task's handler */
//ble_task_handle = OS_GET_CURRENT_TASK();
srand(time(NULL));
//
ble_peripheral_start(); //crashes
ble_register_app ();
ble_gap_device_name_set("Custom BLE Service", ATT_PERM_READ);
user_sev_init();
void ble_peripheral_task_init(void)
{
/* Initialize BLE Manager */
ble_mgr_init();
/* Start the BLE Peripheral application task. */
OS_TASK_CREATE("BLE Peripheral", /* The text name assigned to the task, for
debug only; not used by the kernel. */
ble_peripheral_task, /* The function that implements the task. */
NULL, /* The parameter passed to the task. */
1024, /* The number of bytes to allocate to the
stack of the task. */
BLE_PERIPHERAL_TASK_PRIORITY,/* The priority assigned to the task. */
ble_task_handle); /* The task handle. */
OS_ASSERT(ble_task_handle);
}
Hi There,
Not sure how you did the merging, but can you please run your code in debug mode and indicate where it gets stuck?
Thanks, PM_DIalog
The problem has been solved, thank you.
Hi There,
Glad that you figured you issue.
Thanks, PM_Dialog