Adding uart functionality to ble_app_peripheral project SDK5

6 posts / 0 new
Last post
Dave.Renzo
Offline
Last seen:2 years 6 months ago
Joined:2015-10-08 13:21
Adding uart functionality to ble_app_peripheral project SDK5

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:
MT_dialog
Offline
Last seen:1 month 4 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Dave,

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

Dave.Renzo
Offline
Last seen:2 years 6 months ago
Joined:2015-10-08 13:21
I followed the steps in that

我跟着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.

Dave.Renzo
Offline
Last seen:2 years 6 months ago
Joined:2015-10-08 13:21
Why is common_uart.c not

Why is common_uart.c not recommended for use? It appears to just make some calls to functions defined in uart2.c?

MT_dialog
Offline
Last seen:1 month 4 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Dave,

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

Dave.Renzo
Offline
Last seen:2 years 6 months ago
Joined:2015-10-08 13:21
That makes sense, thanks for

That makes sense, thanks for the feedback.

Topic locked