<?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>Kinetis MicrocontrollersのトピックRe: How to program data directly into flash at a fixed address</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750547#M45733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you just want to download the binary data to the flash, you don't need to use the KDS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After checking it with our KDS engineer, the KDS have the .bin file download problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I suggest you generate the .bin file at first, then use the JLINK commander associated with JLINK debugger to download it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; The JLINK commander can input this command to download the code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23785i3F8DCB62A2660A78/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Wish it helps you!&lt;/P&gt;&lt;P&gt;&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, 14 Mar 2018 06:23:09 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-03-14T06:23:09Z</dc:date>
    <item>
      <title>How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750542#M45728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Target Processor:&amp;nbsp; K22F 1M flash, 64 pin.&lt;/P&gt;&lt;P&gt;Tools:&amp;nbsp; KDS and FRDM-K22F&lt;/P&gt;&lt;P&gt;Debugger Hardware:&amp;nbsp; Have them all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to store large amounts of data to the upper regions of flash memory.&amp;nbsp; For example, audio wave data from 128K up to maximum of FRDM-K22F (512K).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I &lt;STRONG&gt;do not&lt;/STRONG&gt; want to use any flash programming function in my code.&amp;nbsp; I want to place it in upper memory as a static object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do this with uVison and uLink by loading the .bin data file, setting the memory locations, and using the integrated uVision flash tool.&amp;nbsp; I then set my linker file to the end of code address of 128K-1 and I can load and debug the program without disturbing the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to do this with KDS and FRDM-K22F.&amp;nbsp; But don't know if this is possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 18:50:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750542#M45728</guid>
      <dc:creator>bcstewart</dc:creator>
      <dc:date>2018-03-12T18:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750543#M45729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BC Stewart,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please refer to this document, it will help you to solve you problems:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-104433"&gt;https://community.nxp.com/docs/DOC-104433&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&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>Tue, 13 Mar 2018 03:28:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750543#M45729</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-03-13T03:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750544#M45730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This only answers part of the question.&lt;/P&gt;&lt;P&gt;How do I program data directly to Flash memory from the flash programmer &lt;/P&gt;&lt;P&gt;in KDS?&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 04:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750544#M45730</guid>
      <dc:creator>bcstewart</dc:creator>
      <dc:date>2018-03-13T04:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750545#M45731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;&amp;nbsp; As you know, if you want to use the KDS download the code to the flash, you need to download the whole project generated code to the flash, not just partial.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, you need to add modify the ld file, then defined the data to the defined flash area, then when you download the whole project to the flash, your data will be also downloaded to the specific flash address.&lt;/P&gt;&lt;P&gt;&amp;nbsp; In KDS, after build the code, configure the debug configuration, select the according debugger which you are using, then click debug button, you will download all the project code to the flash.&lt;/P&gt;&lt;P&gt;Wish it helps you!&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>Tue, 13 Mar 2018 05:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750545#M45731</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-03-13T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750546#M45732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You still don't understand my question.&lt;/P&gt;&lt;P&gt;I want to place binary data into the upper flash memory.&amp;nbsp; This data will &lt;/P&gt;&lt;P&gt;remain static.&amp;nbsp; The linker will be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*How do I directly program binary data into flash? * Code Warrior used &lt;/P&gt;&lt;P&gt;to have a flash utility program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:46:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750546#M45732</guid>
      <dc:creator>bcstewart</dc:creator>
      <dc:date>2018-03-13T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750547#M45733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you just want to download the binary data to the flash, you don't need to use the KDS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After checking it with our KDS engineer, the KDS have the .bin file download problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I suggest you generate the .bin file at first, then use the JLINK commander associated with JLINK debugger to download it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; The JLINK commander can input this command to download the code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23785i3F8DCB62A2660A78/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Wish it helps you!&lt;/P&gt;&lt;P&gt;&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, 14 Mar 2018 06:23:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750547#M45733</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-03-14T06:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750548#M45734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&amp;nbsp; That is a good solution.&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:07:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750548#M45734</guid>
      <dc:creator>bcstewart</dc:creator>
      <dc:date>2018-03-14T14:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750549#M45735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If your question is solved, please help me to mark the correct answer, just to close this case, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Fri, 16 Mar 2018 02:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750549#M45735</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-03-16T02:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to program data directly into flash at a fixed address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750550#M45736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a solution.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Install the JLink debugger onto the FRDM-K22F as explained in the Quick Start Guide.&lt;/LI&gt;&lt;LI&gt;Download the program "J-Flash_Lite.exe" from Seggar.&amp;nbsp; Connect the FRDM-K22F and program a bin file directly to memory.&amp;nbsp; In my case, location 0x20000 (128K).&lt;/LI&gt;&lt;LI&gt;Modify "ProcessorExpert.ld" script as shown:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;MEMORY {&lt;BR /&gt;&amp;nbsp; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000198&lt;BR /&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x00000410, LENGTH = 0x000&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;FBF0 &lt;EM&gt;//was 0x0007FBF0&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000&lt;BR /&gt;&amp;nbsp; m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00010000&lt;BR /&gt;&amp;nbsp; m_cfmprotrom&amp;nbsp; (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 15:58:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-program-data-directly-into-flash-at-a-fixed-address/m-p/750550#M45736</guid>
      <dc:creator>bcstewart</dc:creator>
      <dc:date>2018-03-21T15:58:58Z</dc:date>
    </item>
  </channel>
</rss>

