<?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>Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41322/pairing-code-examples-for-an-nrf51822-based-peripheral</link><description>Hello nRF world, 
 We have custom peripheral board based on the nRF51822 and need to be able to pair it with a host. Does anyone have a well documented example of code for doing so? 
 Thank you kindly, 
 Robin@TL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Jan 2019 17:23:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41322/pairing-code-examples-for-an-nrf51822-based-peripheral" /><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/164034?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 17:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f882fdd-0338-4001-9238-d2782af5f62c</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello Susheel,&lt;/p&gt;
&lt;p&gt;I am closing this case.&amp;nbsp; Most of the question have been resolve and we are on to the next set of concerns.&amp;nbsp; I have generalized where we are and what needs to be done next and the help we could use in case #&amp;nbsp;&lt;span&gt;220048.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your continued assistance.&amp;nbsp; I look forward to your responses in the mentioned case.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Robin@TL&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/163013?ContentTypeID=1</link><pubDate>Wed, 26 Dec 2018 17:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d65ad82c-2c11-4641-81fc-cd7a5f797224</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;&lt;span&gt;Most of us on holidays until New year. We will get back to you once we are back to office after 2nd January.&amp;nbsp;&lt;/span&gt;&lt;span&gt;I will clean up this case and make it public as soon as i am back to work.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/162907?ContentTypeID=1</link><pubDate>Sat, 22 Dec 2018 21:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:984e77cb-af47-45f4-b2ce-c4fe97eacb61</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello Susheel,&lt;/p&gt;
&lt;p&gt;I am closing this case I have changed the scope and added a new case for adding secure pairing/bonding to a ble_uart based application.&amp;nbsp; Please remove all attached files and make this case public.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Robin@TL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/162387?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 21:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b150398-cf11-4894-b4a1-eb4a05484f6b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I missed to see that, I will see if there is any initialization of peer manager in that project tomorrow, Its late here in Norway now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/162359?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 17:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae060ed-ed08-4157-ba3a-3f1598f80418</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello Susheel,&lt;/p&gt;
&lt;p&gt;I believe peer manager is in the code.&amp;nbsp; Do you not see it in the uploaded project?&lt;/p&gt;
&lt;p&gt;Robin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/162286?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 12:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83ac9947-0d33-4430-bc14-3290ef4d701b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hello Robin,&lt;/p&gt;
&lt;p&gt;You need to add &lt;a href="https://www.nordicsemi.com/en/DocLib/Content/SDK_Doc/nRF5_SDK/v12-3-0/lib_peer_manager"&gt;peer manager&lt;/a&gt; to your code in SDK12.3. Please look at its &lt;a href="https://www.nordicsemi.com/en/DocLib/Content/SDK_Doc/nRF5_SDK/v12-3-0/lib_pm_usage"&gt;usage &lt;/a&gt;documentation to be able to include it in your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161716?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 15:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8cc13dd-1152-4f7c-9cda-680ac4ffe78e</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello again Susheel,&lt;/p&gt;
&lt;p&gt;Just to be sure you know, we still need to get pairing up and running on our board.&amp;nbsp; Please do not let the last post detract you from that.&amp;nbsp; The critical point of needing data on the PC is imminent, so I am exploring other avenues to do so until we are there, but the goal is to get both uart and pairing running on our board so we can finalize the code before we release to production.&amp;nbsp; Any guidance you can offer on the most direct path to this end is greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks again, awaiting guidance,&lt;/p&gt;
&lt;p&gt;Robin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161595?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 08:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6690f5f-8726-4a02-aeb9-8dfb32c52503</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Thanks for the feedback on this Robin, if things are not clear in the documentation, then we should know about it so that we can make it clearer. Creating a new case with that sounds perfect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161542?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 20:19:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fffa108-5e98-4f09-9000-ab63c0f5c1f8</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello again Susheel,&lt;/p&gt;
&lt;p&gt;Just a note to let you know that I have found reference to SES have an alternative to printf for development.&amp;nbsp; Not sure what will happen when we go to production code, with all the printf&amp;#39;s in the sdk stuff, but for now I an not concerned about retarget.&amp;nbsp; I am however having issues trying to use our newly acquired pca10031 dongle to redirect the data stream from our uart to a terminal emulator on our pc.&amp;nbsp; There is a tutorial for this, but the terminology used does not match the latest nrf connect gui, so interpreting gets very guessing.&amp;nbsp; I will open a new case for this one in hope we can get the data we need from our board to a pc for analysis.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Robin@TL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161490?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 15:00:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cc9a99a-0d94-4466-87b3-67414e1857e7</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello Susheel,&lt;/p&gt;
&lt;p&gt;Our code does not use printf, but all of the sdk logging functions do.&lt;/p&gt;
&lt;p&gt;What needs to be done to make this retarge work so we can see errors that may occur?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This seems it could be very helpful in debugging.&amp;nbsp; I see that the sdk 12.3 retarget.c is considerably different. Are there any known problem with the sdk 11 version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161475?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 14:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d0c4ba0-4940-4b6a-a087-a36af86b2de0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;this is to retarget your printf to UART instead of __stdout.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you do not use printf, then remove it without hesitation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161316?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 00:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7a6cef5-fd1b-4c22-af3f-ed90bd913ed2</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello again Susheel,&lt;/p&gt;
&lt;p&gt;In anticipation of your answer regarding the &amp;quot;retarget.c&amp;quot; file necessity for pairing, I did get the app to build,&amp;nbsp; However, I see no advertisement for pairing, nor does the uart path work any longer.&amp;nbsp; I can easily go back and forth just by including/excluding the appropriate main.c file, so if you have any suggestions to try, I am prepared.&amp;nbsp; One of the things I did note is that the RAM definition for the gls app is considerably higher than the for the uart app.&amp;nbsp; I am not sure if it is required, but it does build and upload at the lower memory setting, but still wont run.&lt;/p&gt;
&lt;p&gt;On a more general point, I am not sure how to determine the memory size requirement and then to make sure that the IDE properly allocates appropriately.&amp;nbsp; If you can help me learn these details it of of this, it would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Robin@TL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161291?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 17:57:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:129e90af-6e77-4609-b1c8-880fd136197b</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello Susheel,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for getting me straight on this one.&amp;nbsp; I guess my old school thinking had me looking for a header or linker directive in an ld file, not in an xml.. Oh well,...&lt;/p&gt;
&lt;p&gt;So now to the next problem:&lt;/p&gt;
&lt;p&gt;There is a &amp;quot;retarget.c&amp;quot; file in the build list that will not compile.&amp;nbsp; I am not sure what is being retargeted.&amp;nbsp; Please explain.&amp;nbsp; I had it excluded to get to where I was.&amp;nbsp; When I include it here is the error messages:&lt;/p&gt;
&lt;p&gt;storage size of &amp;#39;__stdout&amp;#39; isn&amp;#39;t known&lt;/p&gt;
&lt;p&gt;storage size of &amp;#39;__stdin&amp;#39; isn&amp;#39;t known&lt;/p&gt;
&lt;p&gt;at these lines:&lt;/p&gt;
&lt;p&gt;FILE __stdout;&lt;br /&gt;FILE __stdin;&lt;/p&gt;
&lt;p&gt;I am not sure if this file is &amp;quot;needed&amp;quot; for pairing/bonding, but thought I should ask before moving on to test.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Robin@TL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161143?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 09:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7027e770-d894-47f2-90a0-ec8b603d65ef</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You just needed to add one line in flash_placement.xml file in your project&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  &amp;lt;MemorySegment name=&amp;quot;$(FLASH_NAME:FLASH)&amp;quot;&amp;gt;
    ....
    ....
	&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.fs_data&amp;quot; address_symbol=&amp;quot;__start_fs_data&amp;quot;  end_symbol=&amp;quot;__stop_fs_data&amp;quot; /&amp;gt;
  &amp;lt;/MemorySegment&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After that your project compiles fine.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:transparent;height:182px;width:272px;"&gt;...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/161077?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 19:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7670e9ed-2233-43c9-a243-b0d3c4500d8c</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Ok friends, I am crying uncle,&amp;nbsp; I cannot understand or find the cause of these errors.&amp;nbsp; Attached is the project and SDK with source files embedded.&amp;nbsp; The &amp;quot;SES&amp;quot; folder w/project resides under my documents folder, the iDrinkNRF folder has the source in the (ver 11) SDK ble_uart example folder.&amp;nbsp; The upload would not take the full sdk directory structure, so I am uploading the components folder separately. Any help at all is greatly appreciated.&amp;nbsp; Let me know ASAP if anything else is needed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/components.zip"&gt;devzone.nordicsemi.com/.../components.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Robin@TL&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1376.SES.zip"&gt;devzone.nordicsemi.com/.../1376.SES.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing code examples for an NRF51822 based peripheral.</title><link>https://devzone.nordicsemi.com/thread/160871?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 06:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76378ac9-ce0c-4ab2-b66f-c116e8743a94</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;An update:&amp;nbsp; I have taken the advice of a related ticket and merged our code into the ble_app_gls example to attempt pairing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, although all modules compile independently, there appears to be a memory segmentation problem when linking.&amp;nbsp; It appears to be associated with the fstorage for fds code, but I cannot determine the fix.&amp;nbsp; The initial error messages are as follows:&lt;/p&gt;
&lt;p&gt;Output/Debug/Exe/iDrink.elf section `.fs_data&amp;#39; will not fit in region `UNPLACED_SECTIONS&amp;#39;&lt;/p&gt;
&lt;p&gt;Subsequently several errors ensue...&lt;/p&gt;
&lt;p&gt;region `UNPLACED_SECTIONS&amp;#39; overflowed by 16 bytes&lt;/p&gt;
&lt;p&gt;Output/iDrink Debug/Obj/fstorage.o: In function `check_config&amp;#39;:&lt;/p&gt;
&lt;p&gt;undefined reference to `__start_fs_data&amp;#39;&lt;/p&gt;
&lt;p&gt;undefined reference to `__stop_fs_data&amp;#39;&lt;/p&gt;
&lt;p&gt;... and on ad-nauseam...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What file might I be missing to define this unplaced section in memory?&lt;/p&gt;
&lt;p&gt;Thanks again, in advance,&lt;/p&gt;
&lt;p&gt;Robin@TL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>