<?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>Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11224/peer-manager-and-gcc</link><description>I have attempted to migrate over a couple of nRF52 projects built around device manager to the new peer manager in SDK 11 that are built with eclipse and GCC. However, I am seeing the exact same behavior after each attempt. I am following the migration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Apr 2016 13:34:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11224/peer-manager-and-gcc" /><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42138?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2016 13:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f9c2ec9-99fc-426e-b01e-b7f4839b32e1</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Which of the two edits is the current state? It&amp;#39;s fixed in 11.0.0_89a8197 or it will be fixed in another release? Because someone with what looks like 11.0.0_89a8197 has just posted another thread saying it doesn&amp;#39;t work .. here&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/76584/startup-data-initialisation-problems-with-gcc493-under-eclipse-environnement/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42126?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 16:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45cefdfb-e1e9-46e7-8f5f-3d394c95e6bb</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;I have tested the new linker scripts included with the production release of SDK 11.0.0 and everything is working fine now.&lt;/p&gt;
&lt;p&gt;While not the most painless SDK migration, the added and fixed features of Peer Manager are worth it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42137?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 07:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a528ab12-3e90-4993-a0e7-2a8051229447</guid><dc:creator>Bartek</dc:creator><description>&lt;p&gt;To fix FS_SECTION_VARS_COUNT returning 0 I changed linker file a little.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[...]
    .fs_data :
    {
        . = ALIGN(4);
        PROVIDE(__start_fs_data = .);
        KEEP(*(.fs_data))
        PROVIDE(__stop_fs_data = .);
        . = ALIGN(4);
        __data_end__ = .;
    }
[...]
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42136?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 22:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:308df393-f6e3-4299-8520-dcfa63716741</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Great to hear Andrew. I&amp;#39;m sorry for the &amp;quot;all-in-one&amp;quot; workaround for the .ld file, I did not see any other &amp;quot;quickfix&amp;quot; at this moment. The official fixed .ld file (will be included in next SDK release) will be easier to read than mine :-) Cheers, Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42135?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 17:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73594fa3-6e22-434f-a513-4bc70c46c0df</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;This looks to be working correctly now.  Will vote this for the answer.  Big thanks to the Nordic crew for fixing this.  Linker scripts are far outside of my expertise so I would have been stabbing in the dark on this one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42134?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 18:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6add0947-e990-4a8f-a5dd-a9bbd6127cfb</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;Håkon,
I am now getting a hardfault on boot after programming the board.  Stepping through gets me again to fs_init but when FS_SECTION_VARS_GET(i) gets called, the start address returned is 0xfffc8000 with the end address set to 0x80000.  The end address is correct but somehow the start address still isn&amp;#39;t working out correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42133?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 02:06:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea1cb81-66e1-4971-9c3b-5e417f46eac8</guid><dc:creator>gortok</dc:creator><description>&lt;p&gt;@Andrew it&amp;#39;s also in 10.0, which is a production SDK, so.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42132?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 17:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ed437ac-7890-40cb-8d15-e105e7b715c2</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;I have spoken to Nordic support on this issue and without going into too much detail, there is not currently a way around this with GCC.  They will continue to work through this issue.  We should keep in mind that this is an experimental module that is also in an alpha SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42131?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 10:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c4465e3-eb0b-4790-946d-c5639d84297e</guid><dc:creator>DeanOSLI</dc:creator><description>&lt;p&gt;I am experiencing that exact same issue; hard reset no good, soft reset ok.
PCA10040, SDK 11.0.0.2alpha. S132 2.0.0-7alpha&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42130?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2016 18:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35fcd053-a526-4f32-9afb-2135b96e334d</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;Håkon,&lt;/p&gt;
&lt;p&gt;Thank you again.  I Verified this fixed the initial address problem however one problem still remains.  On a hard reset or powered on with the switch on the DK, I get a hardfault traced from page_identify().  A soft reset does not cause this issue.  I tried adding in some delays in main() but I get the same problem.&lt;/p&gt;
&lt;p&gt;I am currently using a PCA10036 if that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42129?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2016 14:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f0038d0-8174-42ae-a074-52fe52dfd818</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Andrew, I&amp;#39;ve edited my response for a proper workaround. I was able to connect and run the example properly now.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42128?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 18:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d729db74-cde7-40ca-8c1e-16a02c99d42e</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;Håkon,&lt;/p&gt;
&lt;p&gt;Thank you for the reply.  This fixes the Softdevice getting wiped out but I am still experiencing an issue during fs_init().  When setting the num_left variable with FS_SECTION_VARS_COUNT, it always returns 0.  So when entering the do / while(--num_left &amp;gt; 0), it decrements the num_left and rolls over.  I attempted to fix this by changing num_left from a uint32_t to an int32_t.  This got me out of the do while loop, however it still looks like the wrong address is being assigned to p_config during FS_SECTION_VARS_GET().&lt;/p&gt;
&lt;p&gt;If I allow the program to continue out of the do/while loop I run back into trouble when it moves on to static fds_init_opts_t pages_init().  Since the address is incorrect, it comes back as FDS_PAGE_UNDEFINED and when checked with page_is_empty(), it is looking at a page that is not empty and falls out of the switch statement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42127?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 12:29:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df641077-e82f-4c66-b4b4-6c0b20b61f13</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt; : &lt;strong&gt;This shall be fixed from nRF5_SDK_11.0.0_89a8197 and upwards&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Fix for nRF5_SDK_11 alpha:&lt;/p&gt;
&lt;p&gt;Had to re-order our common linker file, and for now; everything is included into one .ld file, due to ordering of the .data/.fs_data/.bss sections for initialization.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hrs_5F00_rscs_5F00_relay_5F00_gcc_5F00_nrf52.ld"&gt;ble_app_hrs_rscs_relay_gcc_nrf52.ld&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/section_5F00_vars.h"&gt;sector_vars.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42125?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 20:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e029136e-d44a-4348-af44-401087a17004</guid><dc:creator>Richard von Lehe</dc:creator><description>&lt;p&gt;I&amp;#39;ve brought this up, but it hasn&amp;#39;t been fixed yet.  The first thing that needs to happen is to consolidate to only one SECTIONS definition between the project linker script and the common linker script (components/toolchain/gcc/nrf5x_common.ld.  I&amp;#39;ve read that gcc/ld don&amp;#39;t handle multiple SECTION definition.  I did that and it avoided placing those 16 bytes at address 0x0, but it still didn&amp;#39;t do the job right.  If you look at the map file generated by IAR (not sure you have that available), you will see that fs_config gets placed in RAM and it&amp;#39;s initial value gets copied from the .text section in flash.  This isn&amp;#39;t happening in the gcc version, so you&amp;#39;ll see the fs_init call go haywire and eventually you&amp;#39;ll hit an assert and restart ... over and over.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42124?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 20:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceb44e1a-b20c-45db-b200-73f3661fde2b</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;Making a debug configuration within Eclipse with the GDB SEGGER J-Link Debugging does not keep the fs_config from writing into the softdevice.  So while it does flash the application, it kills the softdevice too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager and GCC</title><link>https://devzone.nordicsemi.com/thread/42123?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 20:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f7fcbb6-9c40-4f86-be7c-84a607d6a6a0</guid><dc:creator>Richard von Lehe</dc:creator><description>&lt;p&gt;I have found that the gcc linker script used to place fs_config is not set up properly.  I assume you&amp;#39;re using a softdevice.  What I&amp;#39;ve found is that the SECTION defined in the projects&amp;#39; linker script (e.g. ble_app_hrs_rscs_relay/pca10036/s132/armgcc) creates a section located at 0x0, which conflicts with the softdevice.  In fact, I am wondering how you put this image into flash.  If I try to do it using nRFGo Studio, it fails saying that part of your application is overflowing into the softdevice region.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>