加入printf语句后出现如下错误.求教如何解决
Error: L6406E: No space in execution regions with .ANY selector matching ddl.o(i.ddl_memclr).
代码里面已经重定位了
- //取消ARM的半主机工作模式
- #pragma import(__use_no_semihosting)
- struct __FILE {
- int handle;
- };
- FILE __stdout;
- _sys_exit(int x)
- {
- x = x;
- }
- int fputc(int ch, FILE *f){
- while((USART1->SR&0X40)==0);
- USART1->DR = (u8) ch;
- return ch;
- }
|