<?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 MKL17Z - How to initialize user flash data at compile time in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL17Z-How-to-initialize-user-flash-data-at-compile-time/m-p/479551#M5423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MKL17Z256VFM4 with KDS 3.0.0. I would like to know if there is a way to put default values in the flash user block at compile time.&lt;/P&gt;&lt;P&gt;For understanding, I would like to do like I do with CodeWarrior 6.x with the "@" directive, for example:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const uint EEDefault[2] &lt;STRONG&gt;@ 0xE000&lt;/STRONG&gt; = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0x0001,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0x0002&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;In this way I'm sure that after downloaded the executable, in the address 0xE000 I have the value 0x0001, and so on.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possibile to do stuff like this with KDS and MKL17Z in similar way? I know it's not possibile with MKE02Z, but these two micro are quite different, so maybe there is a way with MKL17Z?&lt;/P&gt;&lt;P&gt;It would be good, so I dont need to make my own init-flash for every project.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Sandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2016 12:43:36 GMT</pubDate>
    <dc:creator>sys</dc:creator>
    <dc:date>2016-01-11T12:43:36Z</dc:date>
    <item>
      <title>MKL17Z - How to initialize user flash data at compile time</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL17Z-How-to-initialize-user-flash-data-at-compile-time/m-p/479551#M5423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MKL17Z256VFM4 with KDS 3.0.0. I would like to know if there is a way to put default values in the flash user block at compile time.&lt;/P&gt;&lt;P&gt;For understanding, I would like to do like I do with CodeWarrior 6.x with the "@" directive, for example:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const uint EEDefault[2] &lt;STRONG&gt;@ 0xE000&lt;/STRONG&gt; = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0x0001,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0x0002&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;In this way I'm sure that after downloaded the executable, in the address 0xE000 I have the value 0x0001, and so on.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possibile to do stuff like this with KDS and MKL17Z in similar way? I know it's not possibile with MKE02Z, but these two micro are quite different, so maybe there is a way with MKL17Z?&lt;/P&gt;&lt;P&gt;It would be good, so I dont need to make my own init-flash for every project.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Sandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL17Z-How-to-initialize-user-flash-data-at-compile-time/m-p/479551#M5423</guid>
      <dc:creator>sys</dc:creator>
      <dc:date>2016-01-11T12:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: MKL17Z - How to initialize user flash data at compile time</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL17Z-How-to-initialize-user-flash-data-at-compile-time/m-p/479552#M5424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look to the following document, it explains how to place code and data in specific ROM and RAM addresses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104433"&gt;Relocating Code and Data Using the KDS GCC Linker File for Kinetis&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 22:54:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL17Z-How-to-initialize-user-flash-data-at-compile-time/m-p/479552#M5424</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-01-12T22:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: MKL17Z - How to initialize user flash data at compile time</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL17Z-How-to-initialize-user-flash-data-at-compile-time/m-p/479553#M5425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the answer, I will take a look soon and let you know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 07:12:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL17Z-How-to-initialize-user-flash-data-at-compile-time/m-p/479553#M5425</guid>
      <dc:creator>sys</dc:creator>
      <dc:date>2016-01-13T07:12:43Z</dc:date>
    </item>
  </channel>
</rss>

