<?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 Re: leading flash page before main app - run &amp; debug in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/leading-flash-page-before-main-app-run-debug/m-p/634307#M25010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below threads and let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389102"&gt;Placing code/rodata into different FLASH blocks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389101"&gt;Placing data at an address&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jivelink13" href="https://community.nxp.com/thread/389100" title="https://community.nxp.com/thread/389100"&gt;https://community.nxp.com/thread/389100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 23 Nov 2016 22:14:21 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2016-11-23T22:14:21Z</dc:date>
    <item>
      <title>leading flash page before main app - run &amp; debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/leading-flash-page-before-main-app-run-debug/m-p/634306#M25009</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;Platform: LPC15 &amp;amp; LPCexpresso 8.2.2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;a bootloader managed application will run from a start address 0x2100 (this works fine).&lt;/P&gt;&lt;P&gt;For transmitting a new image later, a leading page of 256 Bytes (or less) with information’s like Version Number etc. should be added. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;To avoid to begin with own linker scripts I did the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3554i14BDBAB25F044931/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In main.c:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Flash2 data only a test with a string for now&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;CRP-disabled&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;__attribute__ ((used, section(".rodata.$Flash2"))) static const char version[] = "Version01";&lt;/P&gt;&lt;P&gt;int main(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB-&amp;gt;VTOR = 0x2100;&amp;nbsp;&amp;nbsp;&amp;nbsp; //needed to directly debug this app (mcu setting is start @0x2100)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __enable_irq();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //bootloader jump diabled isr&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;volatile char* version_ = (volatile char*) version;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //__attribute__ ((used,...above is not working so this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;the generated binary looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3449i7539C1B29CFDB28E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjusted the debugger cfg:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3503i0B3D1C59C73E9DE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(tried also with std main)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The debugger failed to run this setup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Unable to retrieve disassembly data from backend and other errors)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions whats wrong or missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:42:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/leading-flash-page-before-main-app-run-debug/m-p/634306#M25009</guid>
      <dc:creator>andreasschnitze</dc:creator>
      <dc:date>2016-10-13T14:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: leading flash page before main app - run &amp; debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/leading-flash-page-before-main-app-run-debug/m-p/634307#M25010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below threads and let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389102"&gt;Placing code/rodata into different FLASH blocks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389101"&gt;Placing data at an address&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jivelink13" href="https://community.nxp.com/thread/389100" title="https://community.nxp.com/thread/389100"&gt;https://community.nxp.com/thread/389100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 23 Nov 2016 22:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/leading-flash-page-before-main-app-run-debug/m-p/634307#M25010</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-11-23T22:14:21Z</dc:date>
    </item>
  </channel>
</rss>

