<?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: (KL serial bootloader and userapp)how to modify scf file of userapplication in KEIL in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268378#M8865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;attach my scf file bellow:(128K flash,16K RAM):&lt;/P&gt;&lt;P&gt;; *************************************************************&lt;/P&gt;&lt;P&gt;; *** Scatter-Loading Description File generated by uVision ***&lt;/P&gt;&lt;P&gt;; *************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LR_IROM1 0x00000000 0x00020000&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; ; load region size_region&lt;/P&gt;&lt;P&gt;&amp;nbsp; ER_IROM1 0x00000000 0x00020000&amp;nbsp; {&amp;nbsp; ; load address = execution address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; *.o (RESET, +First)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; *(InRoot$$Sections)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .ANY (+RO)&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; RW_IRAM1 0x1FFFF000 0x00001000&amp;nbsp; {&amp;nbsp; ; RW data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .ANY (+RW +ZI)&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; RW_IRAM2 0x20000000 0x00003000&amp;nbsp; {&amp;nbsp; ; RW data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .ANY (+RW +ZI)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(runinram)&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Feb 2014 15:07:03 GMT</pubDate>
    <dc:creator>fugrace</dc:creator>
    <dc:date>2014-02-28T15:07:03Z</dc:date>
    <item>
      <title>(KL serial bootloader and userapp)how to modify scf file of userapplication in KEIL</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268377#M8864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI,everyone,I'm design an easy uart bootloader on KL14,the test bootloader has only jump code ,which is bellow:&lt;/P&gt;&lt;P&gt;&amp;nbsp; // relocate vector table &lt;/P&gt;&lt;P&gt;&amp;nbsp; SCB_VTOR = RELOCATED_VECTORS;//0x10000;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Jump to user application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; JumpToUserApplication((RELOCATED_VECTORS),(RELOCATED_VECTORS+4));//*(unsigned long*)&amp;nbsp;&amp;nbsp; //*((unsigned long*)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JumpToUserApplication&lt;/P&gt;&lt;P&gt;&amp;nbsp; msr msp, r0&lt;/P&gt;&lt;P&gt;&amp;nbsp; msr psp, r0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; mov pc, r1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it almost never works. I said almost because once it works,it succeed in jumps to where my application locates and it works! but one day later,after some flash changing,&lt;/P&gt;&lt;P&gt;I can never make it work again. &lt;/P&gt;&lt;P&gt;SO now,I wonder if it's because my scf file which decides my code's&amp;nbsp; placement under KEIL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to locate it in 0x10000,so I move the userapp's bin file entirely to this address.&lt;/P&gt;&lt;P&gt;Is it ok?or how should I modify it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appreciate your help,I've worked for a whole week!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 15:04:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268377#M8864</guid>
      <dc:creator>fugrace</dc:creator>
      <dc:date>2014-02-28T15:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: (KL serial bootloader and userapp)how to modify scf file of userapplication in KEIL</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268378#M8865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;attach my scf file bellow:(128K flash,16K RAM):&lt;/P&gt;&lt;P&gt;; *************************************************************&lt;/P&gt;&lt;P&gt;; *** Scatter-Loading Description File generated by uVision ***&lt;/P&gt;&lt;P&gt;; *************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LR_IROM1 0x00000000 0x00020000&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; ; load region size_region&lt;/P&gt;&lt;P&gt;&amp;nbsp; ER_IROM1 0x00000000 0x00020000&amp;nbsp; {&amp;nbsp; ; load address = execution address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; *.o (RESET, +First)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; *(InRoot$$Sections)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .ANY (+RO)&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; RW_IRAM1 0x1FFFF000 0x00001000&amp;nbsp; {&amp;nbsp; ; RW data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .ANY (+RW +ZI)&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; RW_IRAM2 0x20000000 0x00003000&amp;nbsp; {&amp;nbsp; ; RW data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .ANY (+RW +ZI)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(runinram)&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 15:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268378#M8865</guid>
      <dc:creator>fugrace</dc:creator>
      <dc:date>2014-02-28T15:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: (KL serial bootloader and userapp)how to modify scf file of userapplication in KEIL</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268379#M8866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fu Grace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly refer to page 30 of &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf&lt;/A&gt; for more details on memory allocation. You may find bootloader demos for KL part in "an2295sw\src\Kinetis\KEIL_uV4" which is from an2295sw.zip(&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295SW.zip" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295SW.zip"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295SW.zip&lt;/A&gt;) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&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>Tue, 04 Mar 2014 03:45:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268379#M8866</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-03-04T03:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: (KL serial bootloader and userapp)how to modify scf file of userapplication in KEIL</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268380#M8867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Kan, sorry for replying late.Thanks for your help.&lt;/P&gt;&lt;P&gt;Now I've known the answer.the user code should be loaded in the moved address.for example 0x1000;&lt;/P&gt;&lt;P&gt;then your sct file should be like this:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;LR_IROM1 0x00001000 0x00020000&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; ; load region size_region&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; ER_IROM1 0x00001000 0x00020000&amp;nbsp; {&amp;nbsp; ; load address = execution address&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; *.o (RESET, +First)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; *(InRoot$$Sections)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; .ANY (+RO)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; RW_IRAM1 0x1FFFF000 0x00001000&amp;nbsp; {&amp;nbsp; ; RW data&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; .ANY (+RW +ZI)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; RW_IRAM2 0x20000000 0x00003000&amp;nbsp; {&amp;nbsp; ; RW data&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; .ANY (+RW +ZI)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(runinram)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:51:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL-serial-bootloader-and-userapp-how-to-modify-scf-file-of/m-p/268380#M8867</guid>
      <dc:creator>fugrace</dc:creator>
      <dc:date>2014-03-19T07:51:59Z</dc:date>
    </item>
  </channel>
</rss>

