I want to create task and retrieve the handle, but when I call the xTaskCreate, the handle parameter get corrupted or is not passed correctly.
static unsigned char ucParamTrap;
/* Start trap demo task */
result = xTaskCreate(vSendTrapTaskDemo,
when in vTDT_Init() function, handle as a valid address. When pass to xTaskCreate, the address is change and become invalid.
Any idea why I get this behavior? This task is created in the main, so I doubt its a freeRTOS stack size problem…