在实现了 mx_usart1_uart_init 函数后,重新编译你的项目。 检查编译输出,确认是否还存在 undefined symbol mx_usart1_uart_init 的错误。 如果错误解决,继续你的项目开发。如果仍然存在问题,可能需要检查其他配置或代码问题。 通过以上步骤,你应该能够解决编译时出现的 undefined symbol mx_usart1_uart_init 错误。