<?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: How to manage a no_init area in RAM when there are 2 applications on MCU ROM in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-manage-a-no-init-area-in-RAM-when-there-are-2/m-p/694338#M42771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you still use the KL03?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; KL03 already have the ROM bootloader, you don't need to use the flash bootloader.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still need to use the flash bootloader, and want the application code RAM area won't be influenced, I think you may consider to divide the RAM into two place, take an example, define the application bootloader RAM in the defined area,&amp;nbsp; name that RAM area as one place, then just don't do the initialize for the application RAM area. This the thought, you need to try it on your side.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you meet any question, just let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You also should let me know the chip and the IDE you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 06 Sep 2017 07:31:56 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-09-06T07:31:56Z</dc:date>
    <item>
      <title>How to manage a no_init area in RAM when there are 2 applications on MCU ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-manage-a-no-init-area-in-RAM-when-there-are-2/m-p/694337#M42770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;(URGENT HEP NEEDED)&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;Here I have a new problem. I have now 2 applications that sit on the MCU flash. One is a custom bootloader FW (that sits at address zero in the program memory and at some point the execution jumps from the bootloader FW to the application FW&amp;nbsp;that sits in the higher area of program memory (flash).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The applicaton firmware is using a&amp;nbsp;NO_INIT region in RAM (its defined in the scatter file of the application FW). When the execution jumps from the bootloader to the application,&amp;nbsp;perhaps this NO_INIT area in the RAM is not available as the bootloader scatter file does not have it defined.&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;I tried to define it in the bootloader scatter file but I think it won't work like that. Following are the snippets from &amp;nbsp;the .map files. Please note that the bootloader FW does not need the files clock_calibration.c, invisibles_sys.c and sessionmanager.c. They were added in the bootloader FW only to have this section allocated. The padding somehow does not seem to match. Not sure if this would be a problem:&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;Application firmware&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;======================&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Execution Region MYRAM (Base: 0x20000500, Size: 0x00000054, Max: 0x00000100, ABSOLUTE, UNINIT)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Base Addr Size Type Attr Idx E Section Name Object&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;0x20000500 0x00000001 Zero RW 77 NO_INIT invisibles_sys.o&lt;BR /&gt;0x20000501 0x00000003 PAD&lt;BR /&gt;0x20000504 0x0000004c Zero RW 417 NO_INIT sessionmanager.o&lt;BR /&gt;0x20000550 0x00000002 Zero RW 1019 NO_INIT clock_calibration.o&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;======================&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;Bootloader firmware&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;======================&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Execution Region MYRAM (Base: 0x20000500, Size: 0x00000050, Max: 0x00000100, ABSOLUTE, UNINIT)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Base Addr Size Type Attr Idx E Section Name Object&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;0x20000500 0x00000002 Zero RW 315 NO_INIT clock_calibration.o&lt;BR /&gt;0x20000502 0x00000001 Zero RW 329 NO_INIT invisibles_sys.o&lt;BR /&gt;0x20000503 0x00000001 PAD&lt;BR /&gt;0x20000504 0x0000004c Zero RW 343 NO_INIT sessionmanager.o&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;======================&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;How do I make this work?&lt;/SPAN&gt;&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;SPAN style="border: 0px; font-weight: inherit;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Gaurav.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 08:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-manage-a-no-init-area-in-RAM-when-there-are-2/m-p/694337#M42770</guid>
      <dc:creator>gauravbanyal</dc:creator>
      <dc:date>2017-09-05T08:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage a no_init area in RAM when there are 2 applications on MCU ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-manage-a-no-init-area-in-RAM-when-there-are-2/m-p/694338#M42771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you still use the KL03?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; KL03 already have the ROM bootloader, you don't need to use the flash bootloader.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still need to use the flash bootloader, and want the application code RAM area won't be influenced, I think you may consider to divide the RAM into two place, take an example, define the application bootloader RAM in the defined area,&amp;nbsp; name that RAM area as one place, then just don't do the initialize for the application RAM area. This the thought, you need to try it on your side.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you meet any question, just let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You also should let me know the chip and the IDE you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 06 Sep 2017 07:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-manage-a-no-init-area-in-RAM-when-there-are-2/m-p/694338#M42771</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-09-06T07:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage a no_init area in RAM when there are 2 applications on MCU ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-manage-a-no-init-area-in-RAM-when-there-are-2/m-p/694339#M42772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. I am using the&amp;nbsp;MKL03Z32VFG4 and using Keil MDK for developing with it.&lt;/P&gt;&lt;P&gt;I have been able to solve the issue in similar lines that you have proposed. I am now just making sure that the flash bootloader does not use the RAM area that is used by the application code as a NO_INIT area. Except for the no_init area, I have allowed the flash bootloader and the app to use the (overlapping) RAM area as only one of the two firmwares run at a given time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 09:43:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-manage-a-no-init-area-in-RAM-when-there-are-2/m-p/694339#M42772</guid>
      <dc:creator>gauravbanyal</dc:creator>
      <dc:date>2017-09-06T09:43:31Z</dc:date>
    </item>
  </channel>
</rss>

