<?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>case about ble_app_hrs example add nus services  caused printf function error:  printf(&amp;quot;\r\nUART started.\r\n&amp;quot;);</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106004/case-about-ble_app_hrs-example-add-nus-services-caused-printf-function-error-printf-r-nuart-started-r-n</link><description>Hi 
 1.Please help me resolve this code exception： main.c line 856 printf(&amp;quot;\r\nUART started.\r\n&amp;quot;); 
 Error causes program to not run without log 
 The code is as follows: 
 
 
 2. Error symptom: 
 1) : Add code in main.c line 856 printf(&amp;quot;\r\nUART started</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Nov 2023 01:07:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106004/case-about-ble_app_hrs-example-add-nus-services-caused-printf-function-error-printf-r-nuart-started-r-n" /><item><title>RE: case about ble_app_hrs example add nus services  caused printf function error:  printf("\r\nUART started.\r\n");</title><link>https://devzone.nordicsemi.com/thread/457250?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 01:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6379d5-ebf7-46ee-9af6-c607d5034677</guid><dc:creator>peter.min</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Hung Bui,&lt;/p&gt;
&lt;p&gt;I have re-uploaded the code and tested it for download.&amp;nbsp; &amp;nbsp;This code is working&lt;/p&gt;
&lt;p&gt;The cause of the error was a missing file during the porting of the code:&amp;nbsp; retarget.c&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700797227452v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thank&amp;ensp;you&amp;ensp;for&amp;ensp;all&amp;ensp;your&amp;ensp;assistance.&lt;br /&gt;Kind regards,&lt;br /&gt;Peter.Min&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: case about ble_app_hrs example add nus services  caused printf function error:  printf("\r\nUART started.\r\n");</title><link>https://devzone.nordicsemi.com/thread/457199?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 14:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49ffdb49-c018-4e78-a818-f2ddccf6f053</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;br /&gt;You may want to upload the .zip file again.&amp;nbsp;&lt;br /&gt;There seems to be an issue when click on the link.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume that you are not connecting the device to UART port on PC ?&amp;nbsp;&lt;br /&gt;Most likely that you may have&amp;nbsp;APP_UART_COMMUNICATION_ERROR or&amp;nbsp;APP_UART_FIFO_ERROR because it was not connected to UART port. Then it will assert. Check&amp;nbsp;uart_event_handle().&lt;br /&gt;&lt;br /&gt;What you can do is to ignore these errors so that it would work without UART connection.&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4846.pastedimage1700749952041v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you actually connected UART, then you need to check if you can run the ble_app_uart example. Please double check if you set&amp;nbsp;NRFX_UARTE_ENABLED 1 in sdk_config.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>