Hello Support,
I am trying to add uart functionality to aid in debugging a design that is based of the ble_app_periheral project. I thought I would reference the included uart example project, but the source file comments say they are legacy and to not use them. I've looked through UM-B-051 and it looks like I've done everything I need to as far as configuring the uart. But I'm not sure how to get printf() working. Any help would be greatly appreciated, thanks.
Device:
Hi Dave,
Please check the following post in order to use the UART with SDK5,
http://support.dialog-semiconductor.com/ble-app-uart-debug-messages
Thanks MT_dialog
我跟着post和get多个步骤inclusion linker errors. I am defining CFG_PRINTF and calling uart2_write() to get the functionality that I need. I had to add uart2.c to my project to get it to work.
Why is common_uart.c not recommended for use? It appears to just make some calls to functions defined in uart2.c?
Hi Dave,
Yes you have to add the uart2.c driver in order to get it to work, missed to mention that in the previous post. Thanks for indicating. I guess that the common_uart.c uart driver isn't fully tested thats why we recommend the customers not to use it for their designs.
Best Regards MT_dialog
That makes sense, thanks for the feedback.