- rt_thread_t tid1 = RT_NULL;
- void thread1_entry(void* parameter)
- {
- LOG_E("thread1 success");
- }
- int main(void)
- {
- tid1 = rt_thread_create("thread1", thread1_entry, RT_NULL, 256, 25, 5);
- if(tid1 != RT_NULL)
- {
- rt_thread_startup(tid1);
- }
- else
- {
- LOG_E("start error");
- }
- return 0;
- }
这个栈堆大小我设置256就是start error 设置128一会start success 一会start error是什么情况