<?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>Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72713/errors-when-modifying-the-multirole-example-into-serialized-connection-mode</link><description>Hi, 
 I modified the example: nRF5_SDK_17.0.2_d674dde\examples\ble_central_and_peripheral\experimental\ble_app_multirole_lesc to run on a serialized connection mode with two PCA10040 boards. 
 The code can be built without any issues after removing software</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Mar 2021 13:21:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72713/errors-when-modifying-the-multirole-example-into-serialized-connection-mode" /><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/300947?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 13:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dccf406-e4bd-485b-ab46-b8c262422109</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can refer to&amp;nbsp;&lt;span&gt;ser_s132_uart to modify the flash start address via Project -&amp;gt; Options -&amp;gt; Linker -&amp;gt; Section Placement Macros.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/266337_5F00_3.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/300872?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 10:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa4427d2-1a0e-4cda-8dd8-6687d01756e9</guid><dc:creator>jyang</dc:creator><description>&lt;p&gt;Thank you. I know it now.&lt;/p&gt;
&lt;p&gt;Could you please tell me how to remove this reserved flash space for BLE stack, as the serialization does not need it,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/300590?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 08:32:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a29442f9-cd15-43ac-83b4-d1b30384bdd0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Because the memory usage also accumulates the reserved flash for the softdevice, that causes the difference.&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/266337_5F00_1.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;You can use nRF Connect/ programmer to check the real size of the image.&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/266337_5F00_2.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/300162?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:49:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:375fbb5e-8cf6-4bf5-aa24-e57b4c95da73</guid><dc:creator>jyang</dc:creator><description>&lt;p&gt;C:\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_hrs\pca10040\s132\ses&lt;/p&gt;
&lt;p&gt;C:\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_hrs\pca10040\ser_s132_uart\ses&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/300116?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 12:23:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81d39067-4264-47ab-a234-b77e1b4442f5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="jyang"]The hrs example has two projects, one is single board, the other one is serialized connection.[/quote]
&lt;p&gt;Sorry, I am confused. Under&amp;nbsp;nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_hrs, there are folders for different DK. Could you post the path regarding&amp;nbsp;&lt;span&gt;projects for the single board and serialized connection?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/300092?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 11:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f9e24d7-1793-402d-8960-5ef30b274fac</guid><dc:creator>jyang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The hrs example has two projects, one is single board, the other one is serialized connection. Both of them in the example folder, and from Nordic. If you build them, you will find the flash usage is different, as I attached above.&lt;/p&gt;
&lt;p&gt;I want to know why is this? They are Nordic projects I did not change anything.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/300080?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 11:03:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32eb3599-af59-49cf-9353-de98ad561f92</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="jyang"]I noticed that the serialized solution has much smaller flash usage (112K), comparing to the normal solution (235k), for example, hrs project. See the image I attached.[/quote]
&lt;p&gt;I removed&amp;nbsp;&lt;span&gt;&amp;quot;SOFTDEVICE_PRESENT&amp;quot; and got 233K. Did you do the same thing for these two projects?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the size of the&amp;nbsp;serialization lib?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess it might relate to the connection link count difference.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/299903?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 16:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fb8fbd4-ad5e-404a-b845-ab73fdba8e4b</guid><dc:creator>jyang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I noticed that the serialized solution has much smaller flash usage (112K), comparing to the normal solution (235k), for example, hrs project. See the image I attached.&lt;/p&gt;
&lt;p&gt;However, when I modified this multilink project to serialized connection, the serialized flash usage (270K) is bigger than the normal build without serialization (240k). I want to know why is like this?&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/299896?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 16:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14258614-369e-434e-a050-248112c160f1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, I don&amp;#39;t know what you want to ask. They are the usage of flash and Ram.&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/299839?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 14:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dcabc7a-9ca8-474e-bebe-3e2516a23147</guid><dc:creator>jyang</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have built Nordic hrs project and hrs_uart project, I can see the flash and RAM usage. What are these green bar differences?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/serialized_5F00_v_5F00_no_5F00_serialized.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/299822?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 13:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03f69dcb-c508-4164-ad55-88bdae18ace9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Segger will load the softdevice when loading the application. You can remove the setting if you don&amp;#39;t use the softdevice, but it will not affect the size of the application.&amp;nbsp;&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/266337.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/299816?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 13:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d684b74-7d7c-4de9-9393-bd3b52bb531b</guid><dc:creator>jyang</dc:creator><description>&lt;p&gt;&lt;span&gt;You said: &amp;quot;You need to load the application and the softdevice images to make it work, and segger will do that with the setting&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please tell me where the setting is?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess, I build the hex file based on the original project settings and the softdevice image is still in the serialized&amp;nbsp;code, even if it does not use it any more.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/299767?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 12:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946f90a5-1bd3-4114-8923-71f47159197e</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The original example doesn&amp;#39;t build and include the softdevice. In another word, the&amp;nbsp;&lt;span&gt;original one (240k) is the application without the softdevice.&amp;nbsp;&lt;/span&gt;You need to load the application and the softdevice images to make it work, and segger will do that with the setting. Therefore, I guess&amp;nbsp;&lt;span&gt;adding serialization lib might make the size large than the original one.&amp;nbsp;&lt;/span&gt;You might look into sdk_config.h and disable the configurations related softdevice if you are pretty sure the softdevice is not used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/299693?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 09:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b557310-5a4a-425c-9e1f-d31bffad8b29</guid><dc:creator>jyang</dc:creator><description>&lt;p&gt;I cleared the memory and it works fine now.&lt;/p&gt;
&lt;p&gt;Even though it works, I have noticed that this serialized code (270k) is bigger than the original one (240k). The serialized code should have no software device code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I modified the code to serialized, I had removed &amp;quot;SOFTDEVICE_PRESENT&amp;quot;.&lt;/p&gt;
&lt;p&gt;Anything else should I do?&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when modifying the multirole example into serialized connection mode</title><link>https://devzone.nordicsemi.com/thread/299464?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 12:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8776c285-d6d5-414c-8ce2-48671c330e15</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Encryption, error: 4102[/quote]
&lt;p&gt;&lt;span&gt;The &amp;quot;&lt;/span&gt;&lt;span&gt;4102&lt;/span&gt;&lt;span&gt;&amp;quot; error corresponds to PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING and it indicates that the bonding information is deleted on the device, but not on another device side. Can you try deleting the bonding information on the peripheral (PCA10056) or a mobile (central) as well?&lt;/span&gt;&amp;nbsp;Make sure to delete the bond information on all the devices.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know this can help or not. Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>