<?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>Application only starts in debug after SDK12 migration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17440/application-only-starts-in-debug-after-sdk12-migration</link><description>After updating from sdk11 to sdk12, the application only starts in debug. If started with reset, it hangs. I am running on a pca10028 board an with EmBlitz 1.0. NRF51 is QFACA1 with the following linker setting: 
 /* Linker script to place sections and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Nov 2016 11:39:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17440/application-only-starts-in-debug-after-sdk12-migration" /><item><title>RE: Application only starts in debug after SDK12 migration</title><link>https://devzone.nordicsemi.com/thread/67005?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2016 11:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52c3e939-4f27-4dc7-bb07-8b88c3a5c29c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@codezork: I assume this is for the linker script for the secure bootloader only, not for the application ? The application should not be affected/modified because of the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application only starts in debug after SDK12 migration</title><link>https://devzone.nordicsemi.com/thread/67004?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2016 22:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e03dc12-3467-4400-a1bc-0263b604b00d</guid><dc:creator>codezork</dc:creator><description>&lt;p&gt;It had nothing to do with sdk12 but with the bootloader feature. For this feature the gcc linker script must be modified like on the bootloader_secure example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  /** Flash start address for the bootloader. This setting will also be stored in UICR to allow the
   *  MBR to init the bootloader when starting the system. This value must correspond to
   *  BOOTLOADER_REGION_START found in dfu_types.h. The system is prevented from starting up if
   *  those values do not match. The check is performed in main.c, see
   *  APP_ERROR_CHECK_BOOL(*((uint32_t *)NRF_UICR_BOOT_START_ADDRESS) == BOOTLOADER_REGION_START);
   */
  FLASH (rx) : ORIGIN = 0x3AC00, LENGTH = 0x5000

  /** RAM Region for bootloader. This setting is suitable when used with s110, s120, s130, s310. */
  RAM (rwx) :  ORIGIN = 0x20002C00, LENGTH = 0x5380

  /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
   *  from application to bootloader when using buttonluss DFU OTA.
   */
  NOINIT (rwx) :  ORIGIN = 0x20007F80, LENGTH = 0x80

  /** Location of bootloader setting in at the last flash page. */
  BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0003FC00, LENGTH = 0x0400

  /** Location in UICR where bootloader start address is stored. */
  UICR_BOOTLOADER (r) : ORIGIN = 0x10001014, LENGTH = 0x04
}

SECTIONS
{
  /* Ensures the bootloader settings are placed at the last flash page. */
  .bootloaderSettings(NOLOAD) :
  {

  } &amp;gt; BOOTLOADER_SETTINGS

  /* Ensures the Bootloader start address in flash is written to UICR when flashing the image. */
  .uicrBootStartAddress :
  {
    KEEP(*(.uicrBootStartAddress))
  } &amp;gt; UICR_BOOTLOADER

  /* No init RAM section in bootloader. Used for bond information exchange. */
  .noinit(NOLOAD) :
  {

  } &amp;gt; NOINIT
  /* other placements follow here... */
}

SECTIONS
{
  . = ALIGN(4);
  .fs_data :
  {
    PROVIDE(__start_fs_data = .);
    KEEP(*(.fs_data))
    PROVIDE(__stop_fs_data = .);
  } &amp;gt; RAM

  . = ALIGN(4);
  .svc_data :
  {
    PROVIDE(__start_svc_data = .);
    KEEP(*(.svc_data))
    PROVIDE(__stop_svc_data = .);
  } &amp;gt; RAM

  . = ALIGN(4);
  .dfu_trans :
  {
    PROVIDE(__start_dfu_trans = .);
    KEEP(*(.dfu_trans))
    PROVIDE(__stop_dfu_trans = .);
  } &amp;gt; RAM

} INSERT AFTER .data

INCLUDE &amp;quot;nrf51_common.ld&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application only starts in debug after SDK12 migration</title><link>https://devzone.nordicsemi.com/thread/67003?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2016 09:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c49ea012-779f-40ae-85f9-4cdd11ea1cca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi codezork,&lt;/p&gt;
&lt;p&gt;Could you give some more information what did you do in migrating from SDK v11 to SDK v12 ? Which guide did you follow ?&lt;/p&gt;
&lt;p&gt;Is there any feature that you want to update to SDK 12 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>