<?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: firmware upgrade using FSL kinetis bootloader 1.2.0 on FRDM k22f board in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/firmware-upgrade-using-FSL-kinetis-bootloader-1-2-0-on-FRDM-k22f/m-p/454406#M4643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you told,I have looked in .icf file of led demo app for frdm k22f board and seems it may not cause the problem.&lt;/P&gt;&lt;P&gt;Let me summarize the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-I downloaded the freescale bootloader.&lt;/P&gt;&lt;P&gt;2-Compiled and load bootloader using KDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there are two things which we have followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-We load the default led demo apps.bin on K22F and which is working fine(on every reset/reboot).&lt;/P&gt;&lt;P&gt;2-I created simple led demo application.bin after uploading on the same bootloader then sometimes its working sometime not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:Means not blinking anything onto the board seems in hung state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide your inputs/suggestion which may cause the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if more information required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 09:35:06 GMT</pubDate>
    <dc:creator>ronakpanchal</dc:creator>
    <dc:date>2015-08-21T09:35:06Z</dc:date>
    <item>
      <title>firmware upgrade using FSL kinetis bootloader 1.2.0 on FRDM k22f board</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/firmware-upgrade-using-FSL-kinetis-bootloader-1-2-0-on-FRDM-k22f/m-p/454404#M4641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on fsl kinetis bootloader 1.2.0 for upgrading firmware using uart on FRDM k22f board with KDS.&lt;/P&gt;&lt;P&gt;I have checked it with the given kinetis updater utility and uploaded the "led_demo_FRDM-K22F_a000.bin".&lt;/P&gt;&lt;P&gt;It's working successfully.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now , i have developed small demo application of led blinking using processor expert which is working properly when directly tested(without bootloader).&lt;/P&gt;&lt;P&gt;Then i have changed linker file for bootloader application.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given below is linker configuration for my application:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HEAP_SIZE&amp;nbsp; = DEFINED(__heap_size__)&amp;nbsp; ? __heap_size__&amp;nbsp; : 0x00;&lt;/P&gt;&lt;P&gt;STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400;&lt;/P&gt;&lt;P&gt;/* Specify the memory areas */&lt;/P&gt;&lt;P&gt;MEMORY {&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x0000A000 , LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_flash_config&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x0000A400 , LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts_ram&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW)&amp;nbsp; : ORIGIN = 0x1FFF0000 , LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text&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; (RX)&amp;nbsp; : ORIGIN = 0x0000A410 , LENGTH = 0x00075BF0&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data&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; (RW)&amp;nbsp; : ORIGIN = 0x1FFF0400 , LENGTH = 0x0000FC00&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data_2&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; (RW)&amp;nbsp; : ORIGIN = 0x20000000 , LENGTH = 0x00010000 &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But sometimes its working and sometimes its not working.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During debug i have found that,&lt;/P&gt;&lt;P&gt;(*)&amp;nbsp; demo led app :&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;app starting address - 0xa3e1 &lt;/P&gt;&lt;P&gt;stack pointer - 0x1fff0400&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(*) my app :&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;app starting address - 0xa4d9&lt;/P&gt;&lt;P&gt;stack pointer - 0x20010000&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) what could be the reason for such problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) How to set and configure the "Bootloader configuration area"?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 07:08:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/firmware-upgrade-using-FSL-kinetis-bootloader-1-2-0-on-FRDM-k22f/m-p/454404#M4641</guid>
      <dc:creator>ronakpanchal</dc:creator>
      <dc:date>2015-08-20T07:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: firmware upgrade using FSL kinetis bootloader 1.2.0 on FRDM k22f board</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/firmware-upgrade-using-FSL-kinetis-bootloader-1-2-0-on-FRDM-k22f/m-p/454405#M4642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just checked the linker file of led_demo_k64f12,&amp;nbsp; application stack is defined inside range 0x1FFF0000- 0x20000000&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54200i4163D461E720BE27/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However if you create a new k64 project in KDS, the default stack allocation is in m_data_2 from 0x20000000. See linker file *.ld.&lt;/P&gt;&lt;P&gt;m_data_2 (RW)&amp;nbsp; : ORIGIN = 0x20000000, LENGTH = 0x00030000&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54224i9F24DEB90CB0E1B1/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so you need modify the default ld file to allocate stack inside range 0x1FFF0000- 0x20000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bootloader Configuration Area is a const table at 0xa000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want define the same in kds, we need do it as&lt;/P&gt;&lt;P&gt;__attribute__((section(".bca"))) const FlashConfig_t Config __attribute__((used)) =&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;{..., …}&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;Here section .bca is defined in ld file start from 0xa000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try if this can work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Fri, 21 Aug 2015 06:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/firmware-upgrade-using-FSL-kinetis-bootloader-1-2-0-on-FRDM-k22f/m-p/454405#M4642</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-08-21T06:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: firmware upgrade using FSL kinetis bootloader 1.2.0 on FRDM k22f board</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/firmware-upgrade-using-FSL-kinetis-bootloader-1-2-0-on-FRDM-k22f/m-p/454406#M4643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you told,I have looked in .icf file of led demo app for frdm k22f board and seems it may not cause the problem.&lt;/P&gt;&lt;P&gt;Let me summarize the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-I downloaded the freescale bootloader.&lt;/P&gt;&lt;P&gt;2-Compiled and load bootloader using KDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there are two things which we have followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-We load the default led demo apps.bin on K22F and which is working fine(on every reset/reboot).&lt;/P&gt;&lt;P&gt;2-I created simple led demo application.bin after uploading on the same bootloader then sometimes its working sometime not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:Means not blinking anything onto the board seems in hung state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide your inputs/suggestion which may cause the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if more information required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:35:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/firmware-upgrade-using-FSL-kinetis-bootloader-1-2-0-on-FRDM-k22f/m-p/454406#M4643</guid>
      <dc:creator>ronakpanchal</dc:creator>
      <dc:date>2015-08-21T09:35:06Z</dc:date>
    </item>
  </channel>
</rss>

