<?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>Processor Expert SoftwareのトピックProblem about bootloader on kds(processor expert), the application code didn't run.</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Problem-about-bootloader-on-kds-processor-expert-the-application/m-p/959387#M4376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to develop my own bootloader program to update my application code. After reading lots of articles on the internet, the following are my developing setup and environment,&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCU: MKE06Z128VLD4 (Flash 128K, RAM 16K)&lt;/P&gt;&lt;P&gt;IDE: KDS 3.2.0 with Processor Expert.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bootloader&amp;nbsp;&lt;SPAN&gt;program&amp;nbsp;&lt;/SPAN&gt; addr: 0x0&lt;/P&gt;&lt;P&gt;Applicaion &lt;SPAN&gt;program&amp;nbsp;&lt;/SPAN&gt;addr: 0x5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bootloader program:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There are a few example of bootloader on KDS with Processor expert, however, i found some and the following is the bootloader to jump to application code(0x5000).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89477i4B5CEDAA23972256/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(btw, i don't think it's correct to define SCB_VTOR in this way.)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&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/89483i954F6A9E402F2C80/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;STRONG&gt;Application program:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In my application program, i setup the linker files as below,&lt;/P&gt;&lt;P&gt;MEMORY {&lt;BR /&gt; m_interrupts (RX) : ORIGIN = 0x00005000, LENGTH = 0x000000C0&lt;BR /&gt; m_text (RX) : ORIGIN = 0x00005410, LENGTH = 0x0001A000&lt;BR /&gt; m_data (RW) : ORIGIN = 0x1FFFF000, LENGTH = 0x00004000&lt;BR /&gt; NVM_data (RWX) : ORIGIN = 0x0001F800, LENGTH = 0x00000800&lt;BR /&gt; m_cfmprotrom (RX) : ORIGIN = 0x00005400, LENGTH = 0x00000010&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After all those setting up, it works to jump from bootloader to application code!&lt;/P&gt;&lt;P&gt;However after jump to 0x5000,&amp;nbsp;some of my application&amp;nbsp;project run correctly, but some of application project didn't run.&lt;/P&gt;&lt;P&gt;I found out that the size of "bss" of application code will decide my application code&amp;nbsp;run&amp;nbsp;or fail,&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/89486i933077DC97DFFBF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the "bss" size is less than 5K, then the application code run, if "bss" is larger the application will fail. This mcu has 16K for RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is why "bss" size affects my application code to run or fail? Is the bootloader code wrong? How do I fix it?&lt;/P&gt;&lt;P&gt;Most example of bootloader on the internet is developed on IAR or Keil, but I need to develop it on KDS(Processor Expert).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Jun 2019 11:28:42 GMT</pubDate>
    <dc:creator>rjchang0518</dc:creator>
    <dc:date>2019-06-23T11:28:42Z</dc:date>
    <item>
      <title>Problem about bootloader on kds(processor expert), the application code didn't run.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problem-about-bootloader-on-kds-processor-expert-the-application/m-p/959387#M4376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to develop my own bootloader program to update my application code. After reading lots of articles on the internet, the following are my developing setup and environment,&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCU: MKE06Z128VLD4 (Flash 128K, RAM 16K)&lt;/P&gt;&lt;P&gt;IDE: KDS 3.2.0 with Processor Expert.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bootloader&amp;nbsp;&lt;SPAN&gt;program&amp;nbsp;&lt;/SPAN&gt; addr: 0x0&lt;/P&gt;&lt;P&gt;Applicaion &lt;SPAN&gt;program&amp;nbsp;&lt;/SPAN&gt;addr: 0x5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bootloader program:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There are a few example of bootloader on KDS with Processor expert, however, i found some and the following is the bootloader to jump to application code(0x5000).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89477i4B5CEDAA23972256/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(btw, i don't think it's correct to define SCB_VTOR in this way.)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&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/89483i954F6A9E402F2C80/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;STRONG&gt;Application program:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In my application program, i setup the linker files as below,&lt;/P&gt;&lt;P&gt;MEMORY {&lt;BR /&gt; m_interrupts (RX) : ORIGIN = 0x00005000, LENGTH = 0x000000C0&lt;BR /&gt; m_text (RX) : ORIGIN = 0x00005410, LENGTH = 0x0001A000&lt;BR /&gt; m_data (RW) : ORIGIN = 0x1FFFF000, LENGTH = 0x00004000&lt;BR /&gt; NVM_data (RWX) : ORIGIN = 0x0001F800, LENGTH = 0x00000800&lt;BR /&gt; m_cfmprotrom (RX) : ORIGIN = 0x00005400, LENGTH = 0x00000010&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After all those setting up, it works to jump from bootloader to application code!&lt;/P&gt;&lt;P&gt;However after jump to 0x5000,&amp;nbsp;some of my application&amp;nbsp;project run correctly, but some of application project didn't run.&lt;/P&gt;&lt;P&gt;I found out that the size of "bss" of application code will decide my application code&amp;nbsp;run&amp;nbsp;or fail,&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/89486i933077DC97DFFBF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the "bss" size is less than 5K, then the application code run, if "bss" is larger the application will fail. This mcu has 16K for RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is why "bss" size affects my application code to run or fail? Is the bootloader code wrong? How do I fix it?&lt;/P&gt;&lt;P&gt;Most example of bootloader on the internet is developed on IAR or Keil, but I need to develop it on KDS(Processor Expert).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jun 2019 11:28:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problem-about-bootloader-on-kds-processor-expert-the-application/m-p/959387#M4376</guid>
      <dc:creator>rjchang0518</dc:creator>
      <dc:date>2019-06-23T11:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem about bootloader on kds(processor expert), the application code didn't run.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problem-about-bootloader-on-kds-processor-expert-the-application/m-p/959388#M4377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="330659" data-username="rjchang0518@gmail.com" href="https://community.nxp.com/people/rjchang0518@gmail.com"&gt;Roger Chang&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;‘bss’&lt;/STRONG&gt; is for the uninitialized data in RAM,&amp;nbsp; with data in RAM and bootloader use some RAM,&lt;/P&gt;&lt;P&gt;maybe more than 16K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 07:12:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problem-about-bootloader-on-kds-processor-expert-the-application/m-p/959388#M4377</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-06-25T07:12:19Z</dc:date>
    </item>
  </channel>
</rss>

