<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Problem with adding uart to print</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24921/problem-with-adding-uart-to-print</link><description>Hello,
I am using sdk12.2.2 and pca10040. I want to add uart drivers in ble_app_template code so that I can use printf to get my data on terminal. Unfortunately I am not getting anything on uart. I added app_fifo.c and app_uart_fifo .c and I have also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Sep 2017 12:33:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24921/problem-with-adding-uart-to-print" /><item><title>RE: Problem with adding uart to print</title><link>https://devzone.nordicsemi.com/thread/98141?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 12:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eda69cb-fe99-4494-8192-6643ea18866e</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hi Joakim,
That helped.
Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with adding uart to print</title><link>https://devzone.nordicsemi.com/thread/98140?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 10:47:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af2e7c01-a477-4ffc-ad12-ed0885938689</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Newbie!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for the delayed response.&lt;br /&gt;
I made some modifications to the the ble_app_template in SDK 12.2, to show you how I have done it. I will also add my sdk_config file. In the config file, make sure the following is added and enabled;&lt;br /&gt;
Drivers: UART_ENABLED. Libraries: APP_FIFO_ENABLED, APP_UART_ENABLED and RETARGET_ENABLED.&lt;br /&gt;
Make sure that you have the app_uart_fifo.c, app_fifo.c and retarget.c files added under nRF_Libraries in your project.&lt;/p&gt;
&lt;p&gt;I hope that helps, and make sure to let me know if you have any questions.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6840.main.c"&gt;main.c&lt;/a&gt;&lt;br /&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2313.sdk_5F00_config.h"&gt;sdk_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with adding uart to print</title><link>https://devzone.nordicsemi.com/thread/98139?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 09:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3211c003-3936-49f6-835a-cb972d45e295</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hi Joakim,
I am waiting for your solution.
Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with adding uart to print</title><link>https://devzone.nordicsemi.com/thread/98137?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 04:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:404af70b-fff2-4680-be53-f927f51ed4c0</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hi Joakim,
I am sorry for the carelessness. I have uploaded the modified sdk.config and main file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with adding uart to print</title><link>https://devzone.nordicsemi.com/thread/98138?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 12:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c288e45b-058f-42a3-9daf-b690474274fe</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Newbie! I will start working on a solution for you. However, your &lt;code&gt;sdk_confing.txt&lt;/code&gt; file appears to be empty. Also, you do not need to copy the content to a text file, you can just upload the .c or .h files directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>