<?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>IAR compiled hex file not page aligned to uint32. CRC grabs bogus 0xFF as last byte</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99117/iar-compiled-hex-file-not-page-aligned-to-uint32-crc-grabs-bogus-0xff-as-last-byte</link><description>I build the application code for bank-1 using IAR. The hex output occupies (0x0008500~0x000AAEB6). Note that this is 155319 bytes (not page aligned to uint32--- one byte missing!). 
 
 This is confirmed with hex edit. One byte is missing. 
 
 
 When I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 May 2023 08:52:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99117/iar-compiled-hex-file-not-page-aligned-to-uint32-crc-grabs-bogus-0xff-as-last-byte" /><item><title>RE: IAR compiled hex file not page aligned to uint32. CRC grabs bogus 0xFF as last byte</title><link>https://devzone.nordicsemi.com/thread/423211?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 08:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91c4f2ce-b281-479d-a94c-edb0be71bcdc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How does your .icf file looke like?&lt;/p&gt;
&lt;p&gt;Something like this?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*###ICF### Section handled by ICF editor, don&amp;#39;t touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile=&amp;quot;$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml&amp;quot; */
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x26000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__   = 0x26000;
define symbol __ICFEDIT_region_ROM_end__     = 0xfffff;
define symbol __ICFEDIT_region_RAM_start__   = 0x20002b88;
define symbol __ICFEDIT_region_RAM_end__     = 0x2003ffff;
export symbol __ICFEDIT_region_RAM_start__;
export symbol __ICFEDIT_region_RAM_end__;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__   = 8192;
define symbol __ICFEDIT_size_heap__     = 8192;
/**** End of ICF editor section. ###ICF###*/

define memory mem with size = 4G;
define region ROM_region   = mem:[from __ICFEDIT_region_ROM_start__   to __ICFEDIT_region_ROM_end__];
define region RAM_region   = mem:[from __ICFEDIT_region_RAM_start__   to __ICFEDIT_region_RAM_end__];


define block CSTACK    with alignment = 8, size = __ICFEDIT_size_cstack__   { };
define block HEAP      with alignment = 8, size = __ICFEDIT_size_heap__     { };
define block RO_END    with alignment = 8, size = 0     { };

initialize by copy { readwrite };
do not initialize  { section .noinit };

keep { section .intvec };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in ROM_region   { readonly,
                        block RO_END };
place in RAM_region   { readwrite,
                        block CSTACK,
                        block HEAP };

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR compiled hex file not page aligned to uint32. CRC grabs bogus 0xFF as last byte</title><link>https://devzone.nordicsemi.com/thread/422815?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 14:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae4933df-42da-43cd-aefc-8a45f76ae497</guid><dc:creator>erk1313</dc:creator><description>&lt;p&gt;I am using mergehex v10.21.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR compiled hex file not page aligned to uint32. CRC grabs bogus 0xFF as last byte</title><link>https://devzone.nordicsemi.com/thread/422487?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 11:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fb7cca2-aa06-414e-9615-0a3bedefef97</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What mergehex version are you using?&lt;/p&gt;
&lt;p&gt;There was a bug fix in mergehex&amp;nbsp;v10.12.2, so make sure that you have 10.12.2 or newer.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1682508649447v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>