加入printf语句后出现如下错误.求教如何解决 Error: L6406E: No space in execution regions with .ANY selector matching ddl.o(i.ddl_memclr) 代码里面已经重定位了。
|
正常应该用下面的代码实现printf函数功能的 #ifdef __GNUC_ #define PUTCHAR_PROTOTYPE int __io_putchar(int ch) #else #define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f) #endif PUTCHAR_PROTOTYPE { HAL_UART_Transmit(&huart2, (uint8_t *)&ch, 1, 0xFFFF); return ch; } 复制代码