<?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>Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54446/communication-between-two-nrf52840-boards-through-ble</link><description>Hello, 
 
 I have 2 pieces of nRF52840 and I managed to connect each other. One is central, uploaded the code: &amp;#39;nRF5_SDK_15.3.0_59ac345\examples\ble_central\ble_app_multilink_central&amp;#39; and the second is peripheral, with the code: &amp;#39;nRF5_SDK_15.3.0_59ac345</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Nov 2019 14:28:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54446/communication-between-two-nrf52840-boards-through-ble" /><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/222397?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 14:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aff8fc8-c0e5-4242-ac3a-c154d0713316</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure if there is a way for you to verify&amp;nbsp;the version. The Programmer should have shown you the version or at least if there is a softdevice detected on the board. But since you got the blinky example to work, it should have a softdevice flashed. Can you confirm that when running the blinky example the board is advertising and you can connect to it?&lt;/p&gt;
&lt;p&gt;Is there a reason for upgrading the softdevice?&lt;/p&gt;
&lt;p&gt;It is possible to attach a debugger to the board, look under SWD Interface:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://learn.sparkfun.com/tutorials/sparkfun-pro-nrf52840-mini-hookup-guide#hardware-overview"&gt;https://learn.sparkfun.com/tutorials/sparkfun-pro-nrf52840-mini-hookup-guide#hardware-overview&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Although I would&lt;span&gt;&amp;nbsp;recommend you to get an nRF52840-DK which include a debugger and it is easier to use for development:&lt;/span&gt;&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/222104?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 13:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3de94d91-670a-40cc-86ec-51e929ed79bd</guid><dc:creator>BMG</dc:creator><description>&lt;p&gt;On the Sparkfun site, it&amp;#39;s written that the sparkfun pro nrf52840 mini board comes with softdevice 6.1.1 installed. But to be sure, I want to verify this. How can I do this if I&amp;nbsp;don&amp;#39;t have a debugger?&lt;/p&gt;
&lt;p&gt;Moreover, how can I update the softdevice on the board with DFU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/221550?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 12:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93a0b8be-535c-48f9-bc2c-c5011bfce281</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you are not using SES then you also have to flash over the softdevice. Have you done this? If you want to update the softdevice on the board without a debugger, you will need to do &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/examples_bootloader.html?cp=6_5_0_4_4" rel="noopener noreferrer" target="_blank"&gt;DFU&lt;/a&gt;. You need to have DFU support to be able to update the softdevice without flashing it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why this issue occurs. I suspected that it might be that you haven&amp;#39;t flashed over the softdevice, but that doesn&amp;#39;t explain why it works on some examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/221355?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 14:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:616f4430-f456-4699-8722-8eadb8a42102</guid><dc:creator>BMG</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. I tried to use nrf Connect for Desktop, but I get this error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0250.problem.png" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also installed JLink v6.22g. I read that this tool is not available for pro nrf52840 mini.&lt;/p&gt;
&lt;p&gt;2. I&amp;#39;m not using any IDE, only run in a linux emulator the commands to: compile, create the zip and upload the project on the board.&lt;/p&gt;
&lt;p&gt;3. By update, it means that if on the board, it&amp;#39;s s140v6.1.1, I want to update to s140v7.0.1.&lt;/p&gt;
&lt;p&gt;5. I also tried with the original code, with no changes, and it&amp;#39;s the same problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/221292?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 11:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b941d545-f954-4748-a43a-cad811907a13</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. You can use the &amp;quot;Programmer&amp;quot; inside &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-desktop/Download" rel="noopener noreferrer" target="_blank"&gt;nRF Connect fro Desktop&lt;/a&gt; to verify which version of the softdevice you have running on your board. Run &amp;quot;Programmer&amp;quot; - &amp;gt; Select device on the top left corner. Then you will see the softdevice version in the log if it is detected.&lt;/p&gt;
&lt;p&gt;2. It depends on which IDE you are using. If you are using Segger Embedded Studio(SES) then the softdevice will be flashed with the application automatically.&lt;/p&gt;
&lt;p&gt;3. What do you mean by updating? via DFU? Or just flash it over to the board? Note that Softdevice s140v7.0.1 is supported in SDK16.0.0.&lt;/p&gt;
&lt;p&gt;4. The SDK15.3.0 are using Softdevice s140v6.1.1.&lt;/p&gt;
&lt;p&gt;5. Have you modified anything on the other examples? Did you run every examples you tried with unmodified?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/220992?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 09:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ac8a9a8-f901-475f-b6e7-03aaacf6facf</guid><dc:creator>BMG</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;I checked the function&amp;nbsp;&lt;span&gt;app_error_fault_handler() and the program doesn&amp;#39;t get there, so I am not able to see which error code returns the function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;nbsp;suppose that the problem is the&amp;nbsp;softdevice and I have several questions:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. How can I verify which version of softdevice it&amp;#39;s on the board?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Do I have a softdevice on my board by default? I have&lt;strong&gt; sparkfun nrf52840 mini&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. How to do an update to softdevice 7.0.1?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. The examples from&amp;nbsp;nRF5_SDK_15.3.0_59ac345 with which versions of softdevice are running?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. The example &amp;quot;nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_blinky&amp;quot; doesn&amp;#39;t have any problem with ble_stack_init() function and it works well. I don&amp;#39;t know why only some examples work and others are stuck at&amp;nbsp;ble_stack_init().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/220884?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 14:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ddf3a17-4700-459a-b0fe-0c225a58a68b</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That is a softdevice function which isn&amp;#39;t open source, so like you said you won&amp;#39;t have access to it.&lt;/p&gt;
&lt;p&gt;Have you modified anything in the example? I suspect it might be just a problem with memory. Try setting the define &amp;quot;DEBUG&amp;quot; in your preprocessor and set a&amp;nbsp;breakpoint at the function&amp;nbsp;&lt;span&gt;app_error_fault_handler(). Then try to debug the code, this will let you see which error code that is returned from the function.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/220783?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 10:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07828ddd-5a4a-4286-b0e0-2f9065a1ba8b</guid><dc:creator>BMG</dc:creator><description>&lt;p&gt;Thank you for the answer! But I have a problem with the&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;lt;InstallFolder&amp;gt;\examples\ble_central\ble_app_uart_c&lt;/span&gt;&amp;nbsp;project, in function:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;ret_code&amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;sd_softdevice_enable&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;clock_lf_cfg,&amp;nbsp;app_error_fault_handler);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;called from&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;nrf_sdh_enable_request() in ble_stack_init() function:&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I think it&amp;#39;s a reset and I don&amp;#39;t know how to solve it because the file containing the implementation of&amp;nbsp;&amp;nbsp;sd_softdevice_enable() function is not compiled in the project. I think it&amp;#39;s a separate library where its implementation can be found and I don&amp;#39;t have access to this. That&amp;#39;s why I can&amp;#39;&amp;#39;t do debug.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;How can I solve this?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/220714?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 07:42:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e069d0a-f54c-46a3-8653-c4e3889a3c84</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;You can use this function to send a string:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__ble__nus__c.html#ga87d3c9689508ae0ae6e92a4bc6010380" rel="noopener noreferrer" target="_blank"&gt;ble_nus_c_string_send()&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/220616?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 14:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a7e7852-9ff7-493d-91dc-9f97c9bb31e2</guid><dc:creator>BMG</dc:creator><description>&lt;p&gt;Are there functions to send a string from central to peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between two nRF52840 boards through BLE</title><link>https://devzone.nordicsemi.com/thread/220527?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 10:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62fbdcd0-0e01-448e-af0e-b110ea00b174</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should able to do this with the UART example from our SDK. Have look at these two examples:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_nus_c.html?cp=6_1_4_2_0_7" rel="noopener noreferrer" target="_blank"&gt;Nordic UART Service Client&lt;/a&gt;(Central), can be found in&amp;nbsp;&lt;span&gt;&amp;lt;InstallFolder&amp;gt;\examples\ble_central\ble_app_uart_c&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_nus_eval.html?cp=6_1_4_2_2_25" rel="noopener noreferrer" target="_blank"&gt;UART/Serial Port Emulation over BLE&lt;/a&gt;(Peripheral), can be found in&amp;nbsp;&lt;span&gt;&amp;lt;InstallFolder&amp;gt;\examples\ble_peripheral\ble_app_uart&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>