<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CRC or Watermark for application in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRC-or-Watermark-for-application/m-p/807665#M32428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a LPC804 and developing in the MCUXpressoIDE.&lt;/P&gt;&lt;P&gt;I have a divided the flash in several sections, the last 2 ones of 24bytes and 8 bytes.&lt;/P&gt;&lt;P&gt;I want to write 2 constant variables in the last 2 sections with information about the version of the application and a watermark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with the&amp;nbsp;#include &amp;lt;cr_section_macros.h&amp;gt;&amp;nbsp; to write it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__RODATA(APP_VS) static const char app_vs[] __attribute__((used)) = "APP VS 1.00\n\r";&lt;/P&gt;&lt;P&gt;__RODATA(APP_WM) static const char app_wm[] __attribute__((used)) = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF};&lt;/P&gt;&lt;P&gt;&amp;nbsp;but if I don't print them they are not stored in the hex file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is there another way to write them to the hex file without using them?&lt;/P&gt;&lt;P&gt;2) The IDE has a way to calculate a CRC for the program from a start to an end address and store it at an specific address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2018 14:15:24 GMT</pubDate>
    <dc:creator>dorin_petre</dc:creator>
    <dc:date>2018-11-06T14:15:24Z</dc:date>
    <item>
      <title>CRC or Watermark for application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRC-or-Watermark-for-application/m-p/807665#M32428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a LPC804 and developing in the MCUXpressoIDE.&lt;/P&gt;&lt;P&gt;I have a divided the flash in several sections, the last 2 ones of 24bytes and 8 bytes.&lt;/P&gt;&lt;P&gt;I want to write 2 constant variables in the last 2 sections with information about the version of the application and a watermark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with the&amp;nbsp;#include &amp;lt;cr_section_macros.h&amp;gt;&amp;nbsp; to write it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__RODATA(APP_VS) static const char app_vs[] __attribute__((used)) = "APP VS 1.00\n\r";&lt;/P&gt;&lt;P&gt;__RODATA(APP_WM) static const char app_wm[] __attribute__((used)) = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF};&lt;/P&gt;&lt;P&gt;&amp;nbsp;but if I don't print them they are not stored in the hex file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is there another way to write them to the hex file without using them?&lt;/P&gt;&lt;P&gt;2) The IDE has a way to calculate a CRC for the program from a start to an end address and store it at an specific address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 14:15:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CRC-or-Watermark-for-application/m-p/807665#M32428</guid>
      <dc:creator>dorin_petre</dc:creator>
      <dc:date>2018-11-06T14:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: CRC or Watermark for application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRC-or-Watermark-for-application/m-p/807666#M32429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following thread,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/469107"&gt; address in flash&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 18:05:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CRC-or-Watermark-for-application/m-p/807666#M32429</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2018-11-06T18:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: CRC or Watermark for application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRC-or-Watermark-for-application/m-p/807667#M32430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your replay, but this one dose not help me, I all ready did it this way and it dose not help me.&lt;/P&gt;&lt;P&gt;I did place the variables at a specific address, there 2 different questions I have:&lt;/P&gt;&lt;P&gt;1) is there a macro for __atribute__ or a pragma for telling the compiler to write the variables to the flash without using them?&lt;/P&gt;&lt;P&gt;2) does MCUXpresso have a built in option for generating a CRC for a specific area from flash, for example the flash has addresses from 0x0000 to 0x8000 and I am asking if the IDE can generate a CRC from 0x0000 to 0x5FFC and&amp;nbsp; write it from 0x5FFC to 0x6000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 08:38:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CRC-or-Watermark-for-application/m-p/807667#M32430</guid>
      <dc:creator>dorin_petre</dc:creator>
      <dc:date>2018-11-07T08:38:04Z</dc:date>
    </item>
  </channel>
</rss>

