why custs1_init of ble_app_peripheral entered twice?

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
seacracker
Offline
Last seen:3 years 1 week ago
Joined:2018-04-04 02:33
why custs1_init of ble_app_peripheral entered twice?

I'm testing ble_app_peripheral. And I add some debug info to uart2 use arch_printf as flows.
+++add a printf count++
static int count=0;
void custs1_init(void)
{
// Reset environment
memset(&custs1_env, 0, sizeof(custs1_env));

// Create CUSTS1 task
ke_task_create(TASK_CUSTS1, &TASK_DESC_CUSTS1);

// Set task in disabled state
ke_state_set(TASK_CUSTS1, CUSTS1_DISABLED);

//+++printf count++
arch_printf(“[% d] custs1_init…\ n”,计数+ +);
}
Then the output is:
[0]custs1_init...
[1]custs1_init...

why? It meas system call custs1_init twice? and alloc memory twice?

attachment file is a serial display window.

Attachment:
Device:
LC_Dialog
Offline
Last seen:1 day 9 hours ago
Staff
Joined:2016-09-19 23:20
Hi seacracker,

Hi seacracker,

We are currently looking into this issue and will get back to you with a response soon.

Best,
LC_Dialog