[求助]IAR for ARM 链接时出现的奇怪错误
使用的MCU是AT91SAM3U4E编译器是IAR for ARM 6.40.1
原来程序好好的,但是多加一个printf函数就会在链接阶段出现下面的错误:Error: compressed initializers for "P2 s0" too large to fit. 0x14e bytes needed, but only 0x10c allocated
printf语句的内容是:printf("-I- Using file \"%s\" upgrate success\r\n",FileList.FileName);只要把这一句屏蔽就没问题。工程设定printf的格式是full,其他地方也有用printf语句,而且格式更加复杂都没事。
有人遇到过这种错误不?帮帮忙,thanks 可能分配的栈容量小了,加大试试
页:
[1]