初级会员

- 积分
- 72
- 金钱
- 72
- 注册时间
- 2015-9-22
- 在线时间
- 104 小时
|
1金钱
本帖最后由 sougasouga33 于 2020-10-9 14:13 编辑
加入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;
- }
复制代码
|
|