Telink_825X_SDK icon indicating copy to clipboard operation
Telink_825X_SDK copied to clipboard

printf("xxx")编辑报错

Open 1003657663 opened this issue 3 years ago • 2 comments

背景: 编译 example/8258_driver_test

报错: undefined reference to `puts'

经查证: u_printf.c 212行 有一句 extern void puts(char* s); 217行有 puts(my_printf_buff); 这个方法的实现在 example/at/app_uart.c 编译 非at项目的时候找不到这个方法 注释这两行代码后就可以编译通过

1003657663 avatar Aug 19 '21 08:08 1003657663

+1 这个puts函数其实就是调用at_print函数打印结果到uart

sxyandapp avatar Apr 14 '22 14:04 sxyandapp