|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2011-12-8 08:19:16
|
显示全部楼层
回复【6楼】tiancaigao7 天才杨威利
看看sd卡部分电路和程序是不是有问题。
-----------------------------------------------------------------------
我去掉SD卡,如下图
SystemInit......
CPU SN: 31FF75873152323729682343
\ | /
- RT - Thread Operating System
/ | \ 0.4.0 build Dec 7 2011
2006 - 2011 Copyright by rt-thread team
sdcard init failed
SD0 File System init failed!
finsh />
如果没有去掉
SystemInit......
CPU SN: 31FF75873152323729682343
\ | /
- RT - Thread Operating System
/ | \ 0.4.0 build Dec 7 2011
2006 - 2011 Copyright by rt-thread team
sdcard init success
感觉好像SD文件找不到。
int rt_application_init()
{
rt_thread_t init_thread;
#if (RT_THREAD_PRIORITY_MAX == 32)
init_thread = rt_thread_create("init",
rt_init_thread_entry, RT_NULL,
2048*2, 8, 20);
#else
init_thread = rt_thread_create("init",
rt_init_thread_entry, RT_NULL,
2048, 80, 20);
#endif
if (init_thread != RT_NULL) rt_thread_startup(init_thread);
rt_kprintf("SD0 has problem!\n") ; //这上一句也能出现 。就是启动不了相应的线程。返回后开始启动线程,开始调度,然后就死掉
return 0;
如果SD卡没有文件与有文件一样,死机。感谢.应该是SD问题,但我只调用 了一个函数,还是自带的。别的都没有动的。 |
|