<?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>Bootloader with GCC problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5766/bootloader-with-gcc-problems</link><description>Hi all, 
 I am using gcc for my Nordic project and I wanted to add the bootloader. After some reading and experimenting the bootloader worked. Now I thought of making a release build using -Os for optimization. The bootloader stopped working sadly. After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Apr 2015 10:16:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5766/bootloader-with-gcc-problems" /><item><title>RE: Bootloader with GCC problems</title><link>https://devzone.nordicsemi.com/thread/20163?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2015 10:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eae52b35-2ac2-43ae-bde2-900bfcb78d4a</guid><dc:creator>carlotti</dc:creator><description>&lt;p&gt;following code is OK with emblocg gcc GUI&lt;/p&gt;
&lt;p&gt;MEMORY
{
FLASH (rx) : ORIGIN = 0x0003B000, LENGTH = 0x4C00
RAM (rwx) :  ORIGIN = 0x20002400, LENGTH = 0x1C00
UICR (r) : ORIGIN = 0x10001000, LENGTH = 0x00fc
}&lt;/p&gt;
&lt;p&gt;SECTIONS
{
/* Section for boot loader sections in managed flash*/
.nvram (0x0003FC00) (NOLOAD):
{
KEEP(&lt;em&gt;(.bootloaderSettings))
}
/&lt;/em&gt; Sections for UICR assignment from loaded data. &lt;em&gt;/
.uicrBootStartAddress (0x10001014):
{
KEEP (&lt;/em&gt;(.uicrBootStartAddress))
} &amp;gt; UICR
...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader with GCC problems</title><link>https://devzone.nordicsemi.com/thread/20162?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2015 13:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b8695c8-8e35-4462-a52c-25a848dbdd3d</guid><dc:creator>Max C.</dc:creator><description>&lt;p&gt;Many thanks! i faced the same problem now!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader with GCC problems</title><link>https://devzone.nordicsemi.com/thread/20161?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2015 13:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de220407-2bf6-4509-b968-2cc78906f91d</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Thank you for posting this!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader with GCC problems</title><link>https://devzone.nordicsemi.com/thread/20160?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 21:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b630bad6-3d2e-4f16-9772-d2913bf0aae0</guid><dc:creator>Marc Singer</dc:creator><description>&lt;p&gt;FYI, this fragment in my linker script did the trick.&lt;/p&gt;
&lt;p&gt;UICR (r)  : ORIGIN = 0x10001000, LENGTH = 0x00fc&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;SECTIONS
{
/* Section for boot loader sections in managed flash. &lt;em&gt;/
.nvram (0x0003FC00) (NOLOAD):
{
KEEP(&lt;/em&gt;(.bootloaderSettings))
}&lt;/p&gt;
&lt;p&gt;/* Sections for UICR assignment from loaded data. &lt;em&gt;/
.uicrBootStartAddress (0x10001014): {
KEEP (&lt;/em&gt;(.uicrBootStartAddress))
} &amp;gt; UICR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader with GCC problems</title><link>https://devzone.nordicsemi.com/thread/20159?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 21:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51b43177-431c-4f13-91be-5470b4fc434c</guid><dc:creator>Marc Singer</dc:creator><description>&lt;p&gt;Where did you find a bintuils linker script to set the addresses of uicrbootstartaddress and the bootloader settings?&lt;/p&gt;
&lt;p&gt;Also, the version of the gcc_util file that I have already includes the following.  Did this not work for you?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;attribute&lt;/strong&gt; ((section(&amp;quot;.uicrBootStartAddress&amp;quot;))) uint32_t m_uicr_bootloader_start_address = BOOTLOADER_REGION_START;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>