<?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: question about Memory segment in bootloader and relative user application in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200950#M1272</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/139888"&gt;@vegetarian1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;it is all up to you how you want it. I mean you control your application startup code, and it is you who can decide what gets re-used and what not.&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://mcuoneclipse.com/2014/04/19/gnu-linker-can-you-not-initialize-my-variable/" target="_blank"&gt;GNU Linker, can you NOT Initialize my Variable? | MCU on Eclipse&lt;/A&gt;&amp;nbsp;for the concept.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 05:51:19 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2020-12-17T05:51:19Z</dc:date>
    <item>
      <title>question about Memory segment in bootloader and relative user application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1199422#M1265</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I fill the MEMORY segment of linker file for bootloader according to chip memory map, And it should be filled for user application too follow some documents. I want to know if the location in MEMORY segment are important for user application except the location of code storage. Because only the code in user application would be burned to flash by bootloader, I guess the location would not be used except code storage for user application if it is burned by bootloader. The whole MEMORY segment for user application would be used only when running without bootloader. Am I right?&lt;/P&gt;&lt;P&gt;Thanks for your attention!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 07:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1199422#M1265</guid>
      <dc:creator>vegetarian1</dc:creator>
      <dc:date>2020-12-15T07:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: question about Memory segment in bootloader and relative user application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1199444#M1266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/139888"&gt;@vegetarian1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Using FILL is a good thing to make sure everything is erased. But it is only really necessary if you are using a CRC, because if the binary has some gaps in the memory map every flash cell needs to have defined value (see&amp;nbsp;&lt;A href="https://mcuoneclipse.com/2018/03/05/tutorial-crc32-checksum-with-the-kboot-bootloader/" target="_blank"&gt;Tutorial: CRC32 Checksum with the KBOOT Bootloader | MCU on Eclipse&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;PS: it is not only code which ends up in FLASH, but as well all constant data.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 07:26:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1199444#M1266</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-12-15T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: question about Memory segment in bootloader and relative user application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1199973#M1267</link>
      <description>&lt;P&gt;Change to another point of view. Both bootloader and user application have IntcIsrVectorTable, but reside in different addresss (in flash). The bootloader downloads user application firmware and involve functions in it. Which IntcIsrVectorTable would be used then? I think the bootloader's. I think The IntcIsrVectorTable used for user application would be used only when no bootloader exists and running user application directly. e.g. download user application firmware by s32ds. Right?&lt;/P&gt;&lt;P&gt;Thanks for your attention!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 01:30:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1199973#M1267</guid>
      <dc:creator>vegetarian1</dc:creator>
      <dc:date>2020-12-16T01:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: question about Memory segment in bootloader and relative user application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200095#M1268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/139888"&gt;@vegetarian1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;see for example&amp;nbsp;&lt;A href="https://mcuoneclipse.com/2013/04/28/serial-bootloader-for-the-freedom-board-with-processor-expert/comment-page-2/" target="_blank"&gt;https://mcuoneclipse.com/2013/04/28/serial-bootloader-for-the-freedom-board-with-processor-expert/comment-page-2/&lt;/A&gt;&amp;nbsp;if you are new to bootloaders.&lt;/P&gt;&lt;P&gt;Yes, there are two vector tables: one for the bootloader and one for the application. The bootloader switches the VTOR (Vector Table Origin) to the application vector table in the process jumping to the application. So both vector tables exist, but only one is used at a time.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 05:51:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200095#M1268</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-12-16T05:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: question about Memory segment in bootloader and relative user application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200223#M1269</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Is it necessary to allocate different running space(RAM) for bootloader and user application separately?&lt;/P&gt;&lt;P&gt;Thanks for your attention!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 08:36:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200223#M1269</guid>
      <dc:creator>vegetarian1</dc:creator>
      <dc:date>2020-12-16T08:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: question about Memory segment in bootloader and relative user application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200297#M1270</link>
      <description>&lt;P&gt;That again depends on your application:&lt;/P&gt;&lt;P&gt;if you have the the usual scenario that after reset the bootloader runs and then the application, you don't need to separate the memory.&lt;/P&gt;&lt;P&gt;But if you have the use case that the application can call the bootloader and expects to return to the previous application state, you would have to make sure that the memory is not used twice. Such a scenario usually exists for ROM bootloaders where you are using functions of it, and the ROM bootloader requires extra memory (e.g. for programming).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 09:45:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200297#M1270</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-12-16T09:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: question about Memory segment in bootloader and relative user application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200876#M1271</link>
      <description>&lt;P&gt;This topic is interesting!&lt;/P&gt;&lt;P&gt;The bootloader and user application use the same memory in&amp;nbsp;&lt;SPAN&gt;the usual scenario. The application run after bootloader, and then the memory used by bootloader is covered during initialization of application(I guess), so all running infomation used by bootloader gets lost, and can not return to bootloader function. Right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your attention!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 03:52:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200876#M1271</guid>
      <dc:creator>vegetarian1</dc:creator>
      <dc:date>2020-12-17T03:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: question about Memory segment in bootloader and relative user application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200950#M1272</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/139888"&gt;@vegetarian1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;it is all up to you how you want it. I mean you control your application startup code, and it is you who can decide what gets re-used and what not.&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://mcuoneclipse.com/2014/04/19/gnu-linker-can-you-not-initialize-my-variable/" target="_blank"&gt;GNU Linker, can you NOT Initialize my Variable? | MCU on Eclipse&lt;/A&gt;&amp;nbsp;for the concept.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 05:51:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/question-about-Memory-segment-in-bootloader-and-relative-user/m-p/1200950#M1272</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-12-17T05:51:19Z</dc:date>
    </item>
  </channel>
</rss>

