<?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>How do I write a 0 CRC to the bootloader settings when flashing the application using J-Link?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6473/how-do-i-write-a-0-crc-to-the-bootloader-settings-when-flashing-the-application-using-j-link</link><description>When the bootloader in SDK 8.0.0 checks whether the application is valid, it only computes the CRC for the application if the CRC in the bootloader settings for that bank is not zero (see bootloader_app_is_valid() in bootloader.c) 
 I flash the soft</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Apr 2015 03:45:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6473/how-do-i-write-a-0-crc-to-the-bootloader-settings-when-flashing-the-application-using-j-link" /><item><title>RE: How do I write a 0 CRC to the bootloader settings when flashing the application using J-Link?</title><link>https://devzone.nordicsemi.com/thread/22584?ContentTypeID=1</link><pubDate>Mon, 13 Apr 2015 03:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6e7e493-67b9-4620-af66-3ad46f850155</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;By default the region 3fc00 is all set to 0.  All you need to do is set the first byte to 1 for valid app.  If you really need to set CRC to 0,  It is at 3fc04.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I write a 0 CRC to the bootloader settings when flashing the application using J-Link?</title><link>https://devzone.nordicsemi.com/thread/22583?ContentTypeID=1</link><pubDate>Mon, 13 Apr 2015 00:55:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95ba80a0-e756-4047-bb09-c8c8a95a592d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Well looking at the code&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;dfu_types.h:#define BOOTLOADER_SETTINGS_ADDRESS     0x0003FC00    

uint8_t  m_boot_settings[CODE_PAGE_SIZE] __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used));

void bootloader_util_settings_get(const bootloader_settings_t ** pp_bootloader_settings)
{
    // Read only pointer to bootloader settings in flash. 
    static bootloader_settings_t const * const p_bootloader_settings =  (bootloader_settings_t *)&amp;amp;m_boot_settings[0];        
*pp_bootloader_settings = p_bootloader_settings;
}

typedef struct
{
    bootloader_bank_code_t bank_0;          
    uint16_t               bank_0_crc;    
....
} bootloader_settings_t
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;it&amp;#39;s at 0x3FC00 + the offset to bank_0_crc which, as it&amp;#39;s 16-bit aligned, I would guess is 2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I write a 0 CRC to the bootloader settings when flashing the application using J-Link?</title><link>https://devzone.nordicsemi.com/thread/22582?ContentTypeID=1</link><pubDate>Mon, 13 Apr 2015 00:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da8eabdd-6f04-45cd-bbfe-4990ab3eb3ef</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Fine, but what&amp;#39;s the address of the CRC? I have this region in my linker script:&lt;/p&gt;
&lt;p&gt;bootloader_settings (rwx) : ORIGIN = 0x0003FC00, LENGTH = 0x400&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I write a 0 CRC to the bootloader settings when flashing the application using J-Link?</title><link>https://devzone.nordicsemi.com/thread/22581?ContentTypeID=1</link><pubDate>Mon, 13 Apr 2015 00:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9cfb9b-7d34-4a14-b9de-3b70489d2b29</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;w4 &lt;address&gt; 0&lt;/address&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>