RT-thread任务栈溢出,调整堆栈大小
static void ota_thread(void *parameter)
{
EXAMPLE_TRACE("hello main func");
IOT_SetLogLevel(IOT_LOG_DEBUG);
_ota_mqtt_client();
IOT_DumpMemoryStats(IOT_LOG_DEBUG);
EXAMPLE_TRACE("out of sample!");
}
static int ota_example_main(int argc, char *argv[])
{
tid = rt_thread_create("ota", ota_thread, RT_NULL, 8240, 24, 4);
if (tid != RT_NULL)
rt_thread_startup(tid);
return 0;
}