<?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>nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17141/nrf-uart-app-not-detecting</link><description>Hi,
I have tested a sample code which sends some data through BLE in nRF52 development kit(PCA10400). The code is attached below. 
 nRF5_SDK_11.0.0_MPU6050_Acc_X_Output.7z 
 I was able to connect the nRF UART app with the nRF DK and could send data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2016 14:48:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17141/nrf-uart-app-not-detecting" /><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65800?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 14:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53b191d7-f41d-4b58-a222-2ff776c28968</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Now that the first program (nRF5_SDK_11.0.0_MPU6050_Acc_X_Output.7z) is working as well. It is using TWI1 module. But it is  not working if I disable TWI1 and enable TWI0 or if I change the SCL and SDA pin numbers.!! How can I configure the SCL and SDA pins ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65798?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 09:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83967171-e03f-4e63-bc9f-18d614429f06</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Thanks Sigurd. It is working now. I used to program Softdevice with Keil. I couldn&amp;#39;t program the module when I loaded softdevice with nRF gostudio. But now it is working.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65799?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 08:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d7bed81-57cf-4a0b-9433-f971c26c13be</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Try to program the SoftDevice S132 again with nRFgoStudio. After that, load the application with Keil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65792?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 07:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:587c4df1-8112-4462-8aa6-be8abeee5b97</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples/tree/master/ble_app_uart__saadc_timer_driven__scan_mode"&gt;Here&lt;/a&gt; is from where I got the sample application. This was working perfectly. But after I tried to program an extrenal BMD-300 modle I sent recover command to the onboard nRF52 in DK. After that this program is not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65794?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 06:20:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a8251b4-660f-4fa8-891b-10992b8f0379</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Does anyone has a sample application which sends ADC data through BLE app uart? so that I can see the ADC value in nRF uart app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65797?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 16:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0a113d-b699-456b-9d2d-c05a2926869f</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;I tried this. ble_app_uart__saadc_timer_driven__scan_mode&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65791?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 14:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3019cf52-5db1-4c41-b2b7-4050c5a8b4ac</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you using saadc_low_power  or ble_app_uart__saadc_timer_driven__scan_mode ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65790?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 14:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:184a1654-a32e-47fc-8c32-69a625f876d7</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;The other code is also giving the same problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65795?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 14:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:382badd5-3680-4cfb-9102-e0c6d42ea17c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You are trying to send with ble_nus_string_send() in main.c without being in a connection ( You have not connected with the app yet), you get &lt;code&gt;&amp;quot;NRF_ERROR_INVALID_STATE&amp;quot;&lt;/code&gt;, and the code goes into the error handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65789?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 13:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ede1dc8-40c3-44e7-bc98-29951166ab92</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Hi Sigurd,
It is not coming into the breakpoint. Can you just check the code whether it is detecting in your mobile phone or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65788?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 13:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5811ad79-a2cb-40ae-924b-42dcea962cdc</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;int main(void)
{
uint32_t err_code;
bool erase_bonds;
uint16_t length = 0;
// Initialize.	
//	MPU6050_Init();
APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false);
uart_init();&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;buttons_leds_init(&amp;amp;erase_bonds);
ble_stack_init();
gap_params_init();
services_init();
advertising_init();
conn_params_init();
	
printf(&amp;quot;\r\nUART Start!\r\n&amp;quot;);
err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);

// Enter main loop.
for (;;)
{
		//	MPU6050_GetAccData(MPU6050_Acc);
		//	memset(PrintBuffer,0x00,sizeof(PrintBuffer));
		//	sprintf(PrintBuffer, &amp;quot;x:%.2f\r\n&amp;quot;, MPU6050_Acc[0]);	//show x-axis rawdata
		//	length = strlen(PrintBuffer);
			err_code = ble_nus_string_send(&amp;amp;m_nus, &amp;quot;Testing&amp;quot;, 7);
			APP_ERROR_CHECK(err_code);
			nrf_delay_ms(1000);
    power_manage();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65787?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 13:03:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f85c20-c2b2-4fd5-8152-c558894ec960</guid><dc:creator>Sigurd</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Set optimization level 0 in target options -&amp;gt; C/C++ and define DEBUG in the preprocessor symbols.&lt;/li&gt;
&lt;li&gt;Place a break point next to while(loop) line 119, in app_error.c&lt;/li&gt;
&lt;li&gt;What for the error to happen, and read the value.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65793?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 12:57:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:862542f6-e406-42bd-869d-bcfd6c5377ab</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;How can I check the err_code value? Sorry if the question is too stupid to ask. I haven&amp;#39;t succeeded in debugging the device yet using Keil. How can I do that?&lt;/p&gt;
&lt;p&gt;The device is not sending to the PC&amp;#39;s terminal also through UART. I updated the main code to just send some sample String. it is given below&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF UART app not detecting</title><link>https://devzone.nordicsemi.com/thread/65796?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 12:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ebdf6d-9cf7-4a4f-93a9-7e3bcd6ceb96</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I see that you have added this code to the main.c:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;            MPU6050_GetAccData(MPU6050_Acc);
	        memset(PrintBuffer,0x00,sizeof(PrintBuffer));
			sprintf(PrintBuffer, &amp;quot;x:%.2f\r\n&amp;quot;, MPU6050_Acc[0]);	//show x-axis rawdata
			length = strlen(PrintBuffer);
			err_code = ble_nus_string_send(&amp;amp;m_nus, PrintBuffer, length);
			nrf_delay_ms(1000);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Can you add &lt;code&gt;APP_ERROR_CHECK(err_code);&lt;/code&gt; on the error_code from &lt;code&gt;ble_nus_string_send()&lt;/code&gt;, and see if you get an error. When sending data on every main iteration, you are also maybe filling the BLE buffers, and getting a &lt;code&gt;BLE_ERROR_NO_TX_BUFFERS&lt;/code&gt; error ? Try to only send data when you get new data from the MPU6050.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>