<?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>adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72502/adding-ble-app-uart-into-a-peripheral-example</link><description>Hi, 
 
 I am trying to add the ble-app-uart example into the saadc example. I added all needed files.c which there were not in the saadc project and also all paths in the user include path in the project option. I also added all #include needed for the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Apr 2021 07:11:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72502/adding-ble-app-uart-into-a-peripheral-example" /><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/303362?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 07:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7af0e83-f567-47f3-aba8-a5261648e998</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Sama"]&lt;p&gt;But this does not make any difference as you can see.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0363.pastedimage1615968475233v2.png" alt=" " style="cursor:zoom-in;" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I select the first line in the active call frame on the top page as below&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;Does it reach the breakpoint at log_init()? Earlier you wrote that it calls the error handler from ble_stack_init(). Exactly from where in ble_stack_init() is it called from?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/302977?ContentTypeID=1</link><pubDate>Mon, 05 Apr 2021 11:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5457cc1b-6cfd-4697-aea7-d9ec0004b438</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have compared the example you suggested with my codes.&lt;/p&gt;
&lt;p&gt;I found out that this example uses app_timer instead on app_timer2 (used in the ble_app_uart from sdk17.2). After editing the ble_app_uart from sdk17.2 based on the example, it works. Actually it seems that the problem is with app_timer2, drv_rtc and sortlist.c files. It is also necessary to remove app_timer2 from preprocessor definition and to do some modifications in the sdk_config as well.&lt;/p&gt;
&lt;p&gt;Anyway, I would like to know the difference between app_timer and app_timer2?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition, I want to use a timer in my codes, along with ble_app_uart and saadc example.&lt;/p&gt;
&lt;p&gt;Which timer can I use?&lt;/p&gt;
&lt;p&gt;I am facing with problems in using timers. I used timer 2 and 4 (as timer0 is used by SoftDevice and timer3 is used by adc) in my code, but every time I run the program, it gets stuck.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;any idea?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/300337?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 10:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71ba97ec-3925-469b-b1d4-95fc0348d7b1</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I comment out&amp;nbsp;the line (&lt;span&gt;sleep_mode_enter()), but&amp;nbsp;this does not make any difference.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;It&amp;nbsp;is disappointing that it is so hard to find the error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Br,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sama,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/300319?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 08:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77db69cd-a8e9-40fe-a690-42108d66d072</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Hello Henry,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I will try it and inform you about that.&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/300308?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 08:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b8d373-bdd6-4feb-8c88-404b8c42b9ee</guid><dc:creator>Henry_Chou</dc:creator><description>&lt;p&gt;Hello! Sama:&lt;/p&gt;
&lt;p&gt;I think your code is okay.&lt;/p&gt;
&lt;p&gt;Your code is trap in error handle function.Because of sleep mode is running when your advertising timeout during debug mode. The real board without USB J-Link will be not halt in break-point. And the system will be reset when you wake up by external GPIO. It&amp;#39;s the normal case in BLE UART example.&lt;/p&gt;
&lt;p&gt;static void on_adv_evt(ble_adv_evt_t ble_adv_evt)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;/p&gt;
&lt;p&gt;switch (ble_adv_evt)&lt;br /&gt; {&lt;br /&gt; case BLE_ADV_EVT_FAST:&lt;br /&gt; err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; break;&lt;br /&gt; case BLE_ADV_EVT_IDLE:&lt;br /&gt; sleep_mode_enter();&amp;nbsp; //If you want to try prevent halt in debug mode....Change this function with normal mode or else.&lt;br /&gt; break;&lt;br /&gt; default:&lt;br /&gt; break;&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/300298?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 08:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94a23416-61f8-4441-8a4a-4606df79b817</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I added the following code to set PRIMASK bit, as suggested in this post (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/477/can-i-debug-ble-program"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/477/can-i-debug-ble-program&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615968443370v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But this does not make any difference as you can see.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615968475233v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I select the first line in the active call frame on the top page as below&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615968675071v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It jumps in this part.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615968694211v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there any clue to find the problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/300286?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 07:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07e1dc5c-fa25-42b0-b2e3-41d08af7a8ca</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, but It is not mentioned where should I change the PRIMASK bit in my registers list.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I found out a CPU register containing this bit, but which register and which bit has been assigned?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615966019104v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I wonder why important details do not explain anywhere. It is really time-consuming to find these details.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I look forward to hearing from you.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/300124?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 12:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdaeadb1-a44a-4651-8dc2-b6032ecd9c9c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;BLE applications requires a certain method when debugging them. You can&amp;#39;t resume an application after you have halted it. You&amp;#39;ll have to restart it instead. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/9622/application-debug-with-softdevice/35560#35560"&gt;It&amp;#39;s explained more in detail here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Can you use this method and see how far the program reaches this time?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/300109?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 12:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8b4a042-150c-403b-9c04-8642d23d58a3</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I followed the lines of the app error weak file and found out that when the&amp;nbsp;program reaches the line: switch (id) and I press the play button it jumps to line 100 (NRF_BREAKPOINT_COND).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615894823801v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried some suggestion in the devzone, including&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/64963/app_error_fault_handler-id-0x00004001-pc-0x0003290b-app_error_handler-sdk-v17-nrf2840-pdk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/64963/app_error_fault_handler-id-0x00004001-pc-0x0003290b-app_error_handler-sdk-v17-nrf2840-pdk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65483/softdevice-assertion-failed-after-using-fds_gc/267757#267757"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/65483/softdevice-assertion-failed-after-using-fds_gc/267757#267757&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also edit the section placement macro as below&amp;nbsp;due to SoftDevice present. However, it does not make a difference.&lt;/p&gt;
&lt;p&gt;FLASH_PH_START=0x0&lt;/p&gt;
&lt;p&gt;FLASH_PH_SIZE=0x100000&lt;/p&gt;
&lt;p&gt;RAM_PH_START=0x20000000&lt;/p&gt;
&lt;p&gt;RAM_PH_SIZE=0x40000&lt;/p&gt;
&lt;p&gt;FLASH_START=0x27000&lt;/p&gt;
&lt;p&gt;FLASH_SIZE=0xd9000&lt;/p&gt;
&lt;p&gt;RAM_START=0x20002ae8&lt;/p&gt;
&lt;p&gt;RAM_SIZE=0x3d518&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I could not find a solution.&lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;
&lt;p&gt;I look forward to hearing from you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sama,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/299995?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 07:08:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2e05bf7-0aae-4957-9d96-9d7fea392bd8</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is my main function:&lt;/p&gt;
&lt;p&gt;int main(void)&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; bool erase_bonds;&lt;/p&gt;
&lt;p&gt;// Initialize.&lt;br /&gt; uart_init();&lt;br /&gt; log_init();&lt;br /&gt; timers_init();&lt;br /&gt; buttons_leds_init(&amp;amp;erase_bonds);&lt;br /&gt; power_management_init();&lt;br /&gt; ble_stack_init();&lt;br /&gt; gap_params_init();&lt;br /&gt; gatt_init();&lt;br /&gt; services_init();&lt;br /&gt; advertising_init();&lt;br /&gt; conn_params_init();&lt;/p&gt;
&lt;p&gt;uint8_t read_data[64];&lt;br /&gt; long unsigned int Time1,Time2,Time3;&lt;br /&gt; uint32_t err_code = NRF_LOG_INIT(NULL);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;NRF_LOG_DEFAULT_BACKENDS_INIT();&lt;/p&gt;
&lt;p&gt;ret_code_t ret_code = nrf_pwr_mgmt_init();&lt;br /&gt; APP_ERROR_CHECK(ret_code);&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; saadc_sampling_event_init();&lt;br /&gt; saadc_init();&lt;br /&gt; saadc_sampling_event_enable();&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;// Start execution.&lt;br /&gt; printf(&amp;quot;\r\nUART started.\r\n&amp;quot;);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;Debug logging for UART over RTT started.&amp;quot;);&lt;br /&gt; advertising_start();&lt;/p&gt;
&lt;p&gt;while (1) {&lt;/p&gt;
&lt;p&gt;Time1=TimeLineFun(0);&lt;br /&gt;//printf(&amp;quot;T=%d&amp;quot;,Time1);&lt;br /&gt;idle_state_handle();&lt;/p&gt;
&lt;p&gt;while ( Counter &amp;lt;= Max_Sample)&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt; nrf_delay_ms(1);&lt;br /&gt; TmpCounter = WritePointer-OldWritePointer;&lt;br /&gt; if(TmpCounter&amp;lt;0){&lt;br /&gt; TmpCounter+=LEN_CIRCULAR_BUF;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Time2=TimeLineFun(1);&lt;br /&gt;//printf(&amp;quot;T1=%d,&amp;quot; ,Time2);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Time3=TimeLineFun(2);&lt;/p&gt;
&lt;p&gt;CalculateParam();&lt;/p&gt;
&lt;p&gt;ReadPointer=ReadPointer+(CrossZero*ANALOG_NUM); //in every half_cycle ReadPointer increases the size of CrossZero*ANALOG_NUM&lt;br /&gt;Counter=Counter-(CrossZero*ANALOG_NUM); //in every half_cycle ReadPointer decreases the size of CrossZero*ANALOG_NUM&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; if((ReadPointer)&amp;gt;=(LEN_CIRCULAR_BUF)) {&lt;br /&gt; ReadPointer=ReadPointer-LEN_CIRCULAR_BUF;&lt;br /&gt; //xil_printf(&amp;quot; ********ReadPointer=%d *********\n\r&amp;quot;, ReadPointer);&lt;br /&gt; }&lt;br /&gt; Counter=0;*/&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;/** end *****/&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;/** @} */&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I set a&amp;nbsp;breakpoint point for every function. Once it reached the log_init, the program got stuck in the error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615876257786v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also comment out the log_init() function, then I debug the program. In this case, the program stays in the ble_stack_init() as you can see below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615884253306v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;no idea about this.&lt;/p&gt;
&lt;p&gt;What do you think?&lt;/p&gt;
&lt;p&gt;Please guide me.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/299820?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 13:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7033c07f-7a10-49e7-9e47-da520eb6ff1b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;What is calling the error handler?&amp;nbsp;How far does the program reach before it enters the error handler? Try setting a couple of breakpoints and see if the program reaches it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/299702?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 09:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aebcb363-3080-4458-8273-1b9ff9ea1f04</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;finally was able to eliminate the errors and modify the code without any error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now, when I send the program on the devkit, it does not advertise. When I debug, it gets stuck in the app_error_weak.c file where the NRF_BREAKPOINT_COND placed, as you can see in the image below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615801258145v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I searched the error code, but I did not find anything. &lt;br /&gt;Could you please guide me?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/299002?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 13:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0933d78-8171-4388-91a8-b9352b6825fd</guid><dc:creator>Abhishek</dc:creator><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;I noticed that saadc project is non softdevice project where as ble operations are dependent on softdevice. You have to make changes according to that as well.&lt;/p&gt;
&lt;p&gt;Again i will recommend to merge saadc into ble example as most of project configurations will be there and working correctly.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/298997?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 13:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e0452f5-093c-49be-8475-ca64847bbfd3</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;I added all path of the file I added to the project. &lt;br /&gt;I compare and change the config_sdk manually. I copied lines of the sdk_config of the UART example which there is not int the sdk_config of the SAADC. Does it make a problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/298989?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 12:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8547d0f9-ae0e-4f62-8e19-d568c63dc5f9</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Are you following our advice of merging SAADC into the BLE example? Also, you have to make sure to also add the path of the folder where the source files are located, &lt;a href="https://www.youtube.com/watch?v=t-kh1EbesvI"&gt;see this&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/298958?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 10:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f32e48a9-13c9-4898-81f8-b7e08a2f264d</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have to do this on my own&amp;nbsp;and I want to learn how to modify different examples.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/298957?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 10:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5d263da-c8fc-4a3d-bff9-558721716b9d</guid><dc:creator>Sama</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I compared&amp;nbsp;the sdk_config.h files of both the projects and&amp;nbsp;added every line which there is not in the sdk_config of SADDC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;nbsp;compared the flash placement file and found that something there is not in the flash placement of the&amp;nbsp;SADDC project, so I added them.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the number of errors reduced but finally, I faced with these errors:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Output/Release/Obj/saadc_pca10056/main.o: in function `ble_evt_handler&amp;#39;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;this is the log:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Rebuilding &amp;lsquo;saadc_pca10056&amp;rsquo; from solution &amp;lsquo;saadc_pca10056&amp;rsquo; in configuration &amp;lsquo;Release&amp;rsquo;&lt;br /&gt;1&amp;gt; Assembling &amp;lsquo;thumb_crt0.s&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_log_backend_rtt.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrf_log_backend_serial.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;nrf_log_backend_uart.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;nrf_log_default_backends.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_log_frontend.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrf_log_str_formatter.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;app_error.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;app_error_handler_gcc.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;app_error_weak.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;app_util_platform.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_assert.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;nrf_atomic.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;nrf_balloc.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_fprintf.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrf_fprintf_format.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;nrf_memobj.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;nrf_pwr_mgmt.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_ringbuf.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrf_section_iter.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;nrf_strerror.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;nrf_drv_ppi.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_drv_uart.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrfx_atomic.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;nrfx_ppi.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;nrfx_prs.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrfx_saadc.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrfx_timer.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;nrfx_uart.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;nrfx_uarte.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;main.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;SEGGER_RTT.c&amp;rsquo;&lt;br /&gt;2&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\main.c:147:1: warning: data definition has no type or storage class&lt;br /&gt;2&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\main.c:147:1: warning: type defaults to &amp;#39;int&amp;#39; in declaration of &amp;#39;Max_Sample&amp;#39; [-Wimplicit-int]&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;SEGGER_RTT_Syscalls_SES.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;SEGGER_RTT_printf.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Assembling &amp;lsquo;ses_startup_nrf52840.s&amp;rsquo;&lt;br /&gt;1&amp;gt; Assembling &amp;lsquo;ses_startup_nrf_common.s&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;system_nrf52840.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;Calculate_param.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;calculate_cross_zero.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;Wave1_Calculations.c&amp;rsquo;&lt;br /&gt;4&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Calculate_param.c:59:8: warning: implicit declaration of function &amp;#39;SeprateVoltage&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;4&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Calculate_param.c:82:3: warning: implicit declaration of function &amp;#39;Wave1_Calculations&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;4&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Calculate_param.c:84:4: warning: implicit declaration of function &amp;#39;Wave2_Calculations&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;4&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Calculate_param.c:86:2: warning: implicit declaration of function &amp;#39;Wave3_Calculations&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;4&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Calculate_param.c:88:3: warning: implicit declaration of function &amp;#39;Wave4_Calculations&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;3&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave1_Calculations.c:54:3: warning: implicit declaration of function &amp;#39;SeprateCurrent&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;3&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave1_Calculations.c:55:3: warning: implicit declaration of function &amp;#39;Calculate_VRMS_IRMS&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;3&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave1_Calculations.c:116:6: warning: conflicting types for &amp;#39;SeprateCurrent&amp;#39;&lt;br /&gt;3&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave1_Calculations.c:54:3: note: previous implicit declaration of &amp;#39;SeprateCurrent&amp;#39; was here&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;calculate_VRMS_IRMS.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;Wave2_Calculations.c&amp;rsquo;&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave2_Calculations.c:22:7: warning: implicit declaration of function &amp;#39;SeprateVoltage&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave2_Calculations.c:23:7: warning: implicit declaration of function &amp;#39;SeprateCurrent&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave2_Calculations.c:24:7: warning: implicit declaration of function &amp;#39;Calculate_VRMS_IRMS&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;Wave3_Calculations.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;Wave4_Calculations.c&amp;rsquo;&lt;br /&gt;3&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave3_Calculations.c:20:7: warning: implicit declaration of function &amp;#39;SeprateVoltage&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;3&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave3_Calculations.c:21:7: warning: implicit declaration of function &amp;#39;SeprateCurrent&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;3&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave3_Calculations.c:22:7: warning: implicit declaration of function &amp;#39;Calculate_VRMS_IRMS&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;match.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;bsp.c&amp;rsquo;&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave4_Calculations.c:24:7: warning: implicit declaration of function &amp;#39;SeprateVoltage&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave4_Calculations.c:25:7: warning: implicit declaration of function &amp;#39;SeprateCurrent&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses\calculation\Wave4_Calculations.c:26:7: warning: implicit declaration of function &amp;#39;Calculate_VRMS_IRMS&amp;#39; [-Wimplicit-function-declaration]&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;bsp_btn_ble.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;ble_advdata.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;ble_conn_params.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;ble_conn_state.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;ble_srv_common.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;ble_advertising.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;ble_link_ctx_manager.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_ble_gatt.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrf_ble_qwr.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;ble_nus.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;utf.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrfx_gpiote.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrf_drv_clock.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;nrfx_clock.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;app_button.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;app_fifo.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;app_scheduler.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;app_timer2.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;app_uart_fifo.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;drv_rtc.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;hardfault_implementation.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_atfifo.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;nrf_atflags.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrf_sortlist.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;retarget.c&amp;rsquo;&lt;br /&gt;2&amp;gt; Compiling &amp;lsquo;nrf_sdh_ble.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Compiling &amp;lsquo;nrf_sdh_soc.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;nrf_sdh.c&amp;rsquo;&lt;br /&gt;4&amp;gt; Compiling &amp;lsquo;boards.c&amp;rsquo;&lt;br /&gt;1&amp;gt; Generating linker script &amp;lsquo;saadc_pca10056.ld&amp;rsquo;&lt;br /&gt;1&amp;gt; Linking saadc_pca10056.elf&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o: in function `ble_evt_handler&amp;#39;:&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:507: undefined reference to `nrf_ble_qwr_conn_handle_assign&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o: in function `bsp_event_handler&amp;#39;:&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:641: undefined reference to `ble_advertising_restart_without_whitelist&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o: in function `gatt_init&amp;#39;:&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:609: undefined reference to `nrf_ble_gatt_init&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:612: undefined reference to `nrf_ble_gatt_att_mtu_periph_set&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o: in function `services_init&amp;#39;:&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:378: undefined reference to `nrf_ble_qwr_init&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o: in function `advertising_init&amp;#39;:&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:768: undefined reference to `ble_advertising_init&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:771: undefined reference to `ble_advertising_conn_cfg_tag_set&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o: in function `conn_params_init&amp;#39;:&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:442: undefined reference to `ble_conn_params_init&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o: in function `advertising_start&amp;#39;:&lt;br /&gt;1&amp;gt; D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:831: undefined reference to `ble_advertising_start&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o:D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:134: undefined reference to `ble_advertising_on_ble_evt&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o:D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:132: undefined reference to `nrf_ble_gatt_on_ble_evt&amp;#39;&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.34/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/saadc_pca10056/main.o:D:\Behine Niroo\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\SAADC.V1.7.0.13991203 - Test for adding ble-uart\pca10056\blank\ses/main.c:133: undefined reference to `nrf_ble_qwr_on_ble_evt&amp;#39;&lt;br /&gt;Build failed&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there any solution?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have to add&amp;nbsp;UART to&amp;nbsp;SAADC as my&amp;nbsp;boss wants.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I have wasted a great deal of time to do this task.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Please help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sama&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/298609?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 09:42:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6032b409-5ffd-4efc-b5e3-9c798acb1e91</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Yes, I highly agree. Merging the peripheral examples into the BLE examples is the recommended approach. Also if you&amp;#39;re looking for an example that includes ble_app_uart and SAADC then you can find it &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/ble_app_uart__saadc_timer_driven__scan_mode"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding ble app uart into a peripheral example</title><link>https://devzone.nordicsemi.com/thread/298381?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 13:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ae5ab89-23c4-4846-bb8a-319a02f7cfc5</guid><dc:creator>Abhishek</dc:creator><description>&lt;p&gt;Hi Sama,&lt;/p&gt;
&lt;p&gt;There are two possible issue while merging two sample projects.&lt;/p&gt;
&lt;p&gt;1. sdk_config.h flags are not present or enable&lt;/p&gt;
&lt;p&gt;- Try to compare the sdk_config.h files of both the projects and add the missing flags. Once compared and updated all the configurations from ble-app-uart example into the saadc example check if errors are reduced.&lt;/p&gt;
&lt;p&gt;2. Library path is not added into build configuration&lt;/p&gt;
&lt;p&gt;- Fir that compare library paths and add if absent&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In my experience it is always easy to add code from peripheral examples into ble examples. If nothing is working try to add code from saadc example into ble-app-uart example, very less configuration is required in project to add peripherals.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>