问题解决了,把OS_TICKS_PER_SEC由原来的200改为100就可以了,但我又改回200仍然可以,晕。之后又遇到了新问题,加入fatfs文件系统后,只要调用exfuns_init();//为FATFS相关变量申请内存,就会运行空间不足。原子的综合程序里跑了那么多东西都没问题,我就跑个USB,一个文件系统就不行了,这个怎么破?
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching diskio.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching ff.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching key.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching usbd_storage_msd.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching usbd_usr.o(.data).
{
if(delay_osrunning&&delay_osintnesting==0)//èç1ûOSòѾ-ÔúÅüáË,2¢Çò2»êÇÔúÖD¶ÏàïÃæ(ÖD¶ÏàïÃæ2»ÄüèÎÎñμ÷¶è)
{
if(nms>=fac_ms) //Ñóê±μÄê±¼ä′óóúOSμÄ×îéùê±¼äÖüÆú
{
delay_ostimedly(nms/fac_ms); //OSÑóê±
}
nms%=fac_ms; //OSòѾ-ÎT·¨ìá1©ÕaÃ′D¡μÄÑóê±áË,2éóÃÆÕí¨·½ê½Ñóê±
}
delay_us((u32)(nms*1000)); //ÆÕí¨·½ê½Ñóê±
}
比如说延时函数,没有进调用ucos系统的条件。
问题解决了,把OS_TICKS_PER_SEC由原来的200改为100就可以了,但我又改回200仍然可以,晕。之后又遇到了新问题,加入fatfs文件系统后,只要调用exfuns_init();//为FATFS相关变量申请内存,就会运行空间不足。原子的综合程序里跑了那么多东西都没问题,我就跑个USB,一个文件系统就不行了,这个怎么破?
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching diskio.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching ff.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching key.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching usbd_storage_msd.o(.data).
..OBJUCOS-1.axf: Error: L6406E: No space in execution regions with .ANY selector matching usbd_usr.o(.data).
一周热门 更多>