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.
Device:
Hi seacracker,
We are currently looking into this issue and will get back to you with a response soon.
Best,
LC_Dialog