Ai-Thinker-Open / Telink_825X_SDK

Telink TLS825X 蓝牙芯片SDK
167 stars 72 forks source link

printf("xxx")编辑报错 #9

Open 1003657663 opened 2 years ago

1003657663 commented 2 years ago

背景: 编译 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项目的时候找不到这个方法 注释这两行代码后就可以编译通过

sxyandapp commented 2 years ago

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