<?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>Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27390/running-timesync-example-on-sparkfun-breakout</link><description>I would like to get the timesync example running on the Sparkfun nRF52832 Breakout board . 
 I can currently download it to the nRF52832 DK using Segger Studio (after making the changes suggested for the project to work with the Segger IDE ) and run</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Apr 2018 04:19:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27390/running-timesync-example-on-sparkfun-breakout" /><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/127519?ContentTypeID=1</link><pubDate>Tue, 10 Apr 2018 04:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d725123-e22d-4e26-9905-c0578c15bd49</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;I don&amp;#39;t think I ever did, sorry. I bought the official development boards and used those.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/127512?ContentTypeID=1</link><pubDate>Tue, 10 Apr 2018 00:48:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97fe604c-e411-4865-b92e-a0fb5e703a1f</guid><dc:creator>kian79</dc:creator><description>&lt;p&gt;I am having a similar problem with getting an infinite loop inside log_skip and its not going away. How did you solve this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108172?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 18:27:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b85113d5-f3ba-4eb3-95d7-6380a32f3111</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Thank you for the help on everything. I will stick to the development kits for now and revisit this. The information has been valuable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108171?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 13:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e6d5108-41ad-4cab-8c87-f223aeb001c3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;code&gt;APP_UART_TX_EMPTY&lt;/code&gt; indicates that UART has completed transmission of all available data in the TX FIFO.&lt;/p&gt;
&lt;p&gt;If you are not getting &lt;code&gt;APP_UART_DATA_READY&lt;/code&gt; , you are not receiving any data.&lt;/p&gt;
&lt;p&gt;A logic analyzer (e.g. Saleae) could help with further debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108174?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 05:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be69d185-0220-4325-838a-09a63bb049af</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;I see the APP_UART_TX_EMPTY event in &lt;a href="https://github.com/nordic-auko/nRF5-ble-timesync-demo/blob/master/nRF5_SDK_14.2.0_17b948a/examples/ble_peripheral/ble_app_uart/main.c#L577"&gt;the uart_event_handler&lt;/a&gt; when trying to send something from the UART app.&lt;/p&gt;
&lt;p&gt;I do not see the APP_UART_DATA_READY event when sending something via Termite to the board.&lt;/p&gt;
&lt;p&gt;I see both of these events with the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108168?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 05:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6565fe85-3695-490b-9ae0-076a0d83c935</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;I can use the Sparkfun board with the Beefy 3 for serial communication in an Arduino sketch. The leds come on when receiving and transmitting.&lt;/p&gt;
&lt;p&gt;When I try to use it with the time sync demo, I do get the rx led when sending from Termite, but I do not see it appear in the nRF Toolbox UART app. I do not get the tx led when trying to send from the nRF Toolbox UART app. The app works with the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108169?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 13:44:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3e92cfd-d0ac-43c7-94d2-b2ec7234a992</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you have the  Beefy 3 model with rx/tx leds? Do they light ?
Also double check your connections/pins. Maybe installing the &lt;a href="http://www.ftdichip.com/FTDrivers.htm"&gt;FTDI drivers&lt;/a&gt; helps ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108167?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 04:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51698be3-1982-4ec5-982d-269fa9e6ca0d</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;One interesting note is even though &lt;a href="https://github.com/nordic-auko/nRF5-ble-timesync-demo/blob/master/nRF5_SDK_14.2.0_17b948a/examples/ble_peripheral/ble_app_uart/main.c#L629"&gt;flow_control is set to APP_UART_FLOW_CONTROL_DISABLED in the project&lt;/a&gt;, I had to enable RTS/CTS in Termite in order to send messages to the DK. I could receive messages with or without flow control set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108166?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 04:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929e8cf0-3c1c-4e18-97c5-45cd9e3c08ff</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;You are right that the RX pin was not being pulled up. I added&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_gpio_cfg_input(RX_PIN_NUMBER, NRF_GPIO_PIN_PULLUP);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;after the call to &lt;a href="https://github.com/nordic-auko/nRF5-ble-timesync-demo/blob/master/nRF5_SDK_14.2.0_17b948a/examples/ble_peripheral/ble_app_uart/main.c#L634"&gt;APP_UART_FIFO_INIT()&lt;/a&gt;
This fixed the issue and I can now connect to the device via Bluetooth, thank you.&lt;/p&gt;
&lt;p&gt;However, I cannot communicate with the Sparkfun board over serial. I can use Termite with the DK for sending messages back and forth. Doing the same method with the Sparkfun board has nothing showing up. Lowering the baud rate and trying flow control didn&amp;#39;t change anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108173?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 10:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3993be3b-fa27-4a77-b208-fd99eec025d8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you using flow-control ? Maybe try to enable/disable it?
You could also try to reduce the baudrate, and see if that have any effect.&lt;/p&gt;
&lt;p&gt;Could it be that you have left the RX line floating? Here is a relevant thread: &lt;a href="https://devzone.nordicsemi.com/question/170387/uart-peripheral-dead/"&gt;UART Peripheral Dead?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108165?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 23:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9faf731-a32a-45b3-919b-0a3dd173f26f</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;I am using the &lt;a href="https://www.sparkfun.com/products/13746"&gt;Beefy 3 3.3v&lt;/a&gt;. I don&amp;#39;t have experience with using it for communications so I wouldn&amp;#39;t know how to diagnose or fix it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108164?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 08:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51d95d5-d806-49e6-9c44-3ad443a195c6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;So if the &lt;code&gt;APP_ERROR_HANDLER()&lt;/code&gt; is triggered on line 603, you have the event &lt;code&gt;APP_UART_COMMUNICATION_ERROR&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Looking at the  app_uart_evt_t::error_communication documentation
&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/structapp__uart__evt__t.html?cp=4_0_0_6_11_52_3_2#ae2f48256edd4052e8273d098bb8249c4"&gt;here&lt;/a&gt;, it stated that &lt;code&gt;This field contains the value in the ERRORSRC register for the UART peripheral&lt;/code&gt;. &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=2_1_0_34_9_4#register.ERRORSRC"&gt;This register&lt;/a&gt; tells us that the value 4 means that:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Framing error occurred&lt;/strong&gt;: A valid stop
bit is not detected on the serial data
input after all bits in a character
have been received.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Are you using any USB&amp;lt;-&amp;gt;UART bridge on your breakout board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108170?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 05:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52b2b34a-fc68-4650-a987-5bb897634eb4</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;I have appended the original post with more information and screenshots. I no longer get the previous behavior for some reason. Now I consistenly see an ERROR 4 [NRF_ERROR_NO_MEM]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running Timesync Example on Sparkfun Breakout</title><link>https://devzone.nordicsemi.com/thread/108163?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 11:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d2fd21d-20d5-4be4-a01b-3d6efce67ba5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Does it make any difference if you turn off logging ? I.e. in sdk_config.h , set &lt;code&gt;NRF_LOG_ENABLED&lt;/code&gt; to &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>