回复【4楼】正点原子:
---------------------------------
原子您好,我现在准备把客户经典案例中的MP3播放器加上UC/OS ii 操作系统,操作系统已移植好,在创建的任务中添加MP3播放程序编译会出错,代码如下:
void TaskLed(void *pdata)
{
while(1)
{
/*u8 key=0;
while(1) {
key=KEY_Scan();
if(key==1)
{
Load_Adjust_Panel();
}
else if(key==2)
{
}
else if(key==3)
{
}
} */
Music();
OSTimeDlyHMSM(0,0,0,50);
}
}
编译出错信息如下:
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .bss(main.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section STACK(startup_stm32f10x_md.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .bss(ff.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .bss(lrcpro.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .bss(mp3player.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(os_core.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(fontupd.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(lrcpro.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .bss(touch.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(mp3player.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(stm32f10x_rcc.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .bss(rtc.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .bss(spi.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(vs10xx.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(lcd.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(os_cpu_c.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(stdout.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(errno.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(rtc.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(touch.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(key.o).
.\Obj\MP3.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .data(mmc_sd.o).
.\Obj\MP3.axf: Error: L6407W: Sections of aggregate size 0x1b8c bytes could not fit into .ANY selector(s).
我改堆栈的大小也不行。但如果把任务中的Music();换成其他的LED闪烁,按键屏幕校正(任务中注释掉的代码)等程序,都可以编译通过,并可以在板子上成功运行。麻烦您可以解答一下吗?
|