<?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のトピックFlash programming on MKL16z256,</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623511#M37352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help on programming the internal flash of an MKL16z256 device. The idea is to store 1k bytes at the end of the flash memory. I am working in expert mode, so&amp;nbsp;a piece of sample code on this or a guideline would be nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have tested so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IFsh1_EraseSector( 0x20000);&lt;BR /&gt; IFsh1_SetBlockFlash(TX_buff,0x20000,32); &lt;BR /&gt; IFsh1_SetByteFlash(0x20000,'J');&lt;/P&gt;&lt;P&gt;&amp;nbsp;IFsh1_SetByteFlash(0x20001,'O');&lt;BR /&gt;IFsh1_SetByteFlash(0x20002,'S');&lt;BR /&gt; int k=0;&lt;/P&gt;&lt;P&gt;char b,bb;&lt;BR /&gt; for (k=0;k&amp;lt;3;k++){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;b=IFsh1_GetByteFlash(0x20000+k,&amp;amp;bb); &lt;BR /&gt;&amp;nbsp; &amp;nbsp;AS1_SendChar(bb);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;delay_ms(100);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2016 14:56:02 GMT</pubDate>
    <dc:creator>josrennies</dc:creator>
    <dc:date>2016-10-11T14:56:02Z</dc:date>
    <item>
      <title>Flash programming on MKL16z256,</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623511#M37352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help on programming the internal flash of an MKL16z256 device. The idea is to store 1k bytes at the end of the flash memory. I am working in expert mode, so&amp;nbsp;a piece of sample code on this or a guideline would be nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have tested so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IFsh1_EraseSector( 0x20000);&lt;BR /&gt; IFsh1_SetBlockFlash(TX_buff,0x20000,32); &lt;BR /&gt; IFsh1_SetByteFlash(0x20000,'J');&lt;/P&gt;&lt;P&gt;&amp;nbsp;IFsh1_SetByteFlash(0x20001,'O');&lt;BR /&gt;IFsh1_SetByteFlash(0x20002,'S');&lt;BR /&gt; int k=0;&lt;/P&gt;&lt;P&gt;char b,bb;&lt;BR /&gt; for (k=0;k&amp;lt;3;k++){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;b=IFsh1_GetByteFlash(0x20000+k,&amp;amp;bb); &lt;BR /&gt;&amp;nbsp; &amp;nbsp;AS1_SendChar(bb);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;delay_ms(100);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 14:56:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623511#M37352</guid>
      <dc:creator>josrennies</dc:creator>
      <dc:date>2016-10-11T14:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Flash programming on MKL16z256,</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623512#M37353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KL parts use long word programming so I suspect that you may be having problems programming single bytes to a long word as in your example.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;See the parameter system described in &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerFileSystem_3.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF&lt;/A&gt;&lt;SPAN&gt; (sections 7, 8 and 9) for some general information about this topic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;SPAN&gt;Kinetis for professionals: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 15:33:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623512#M37353</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-10-11T15:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Flash programming on MKL16z256,</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623513#M37354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The implementation of the initial flash routine using the long word , as suggested did not flash the data.&lt;/P&gt;&lt;P&gt;(I've adapted the functions to towards long word call.).&lt;/P&gt;&lt;P&gt;Do you have any other suggestion or example code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 08:36:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623513#M37354</guid>
      <dc:creator>josrennies</dc:creator>
      <dc:date>2016-10-13T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Flash programming on MKL16z256,</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623514#M37355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that you're not trying to flash anything in a long word that has already been written to - this will cause an error.&lt;/P&gt;&lt;P&gt;I have attached the Flash driver from the uTasker project which will work on any KE,KEA,KL,KV,KM,K part for your reference. It also contains the parameter system code referenced in the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:57:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623514#M37355</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-10-13T10:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Flash programming on MKL16z256,</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623515#M37356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark, thanks for your prompt reaction, I'll try out your proposal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wbr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Oct 13, 2016 at 12:58 PM, mjbcswitzerland &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 06:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623515#M37356</guid>
      <dc:creator>josrennies</dc:creator>
      <dc:date>2016-10-14T06:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Flash programming on MKL16z256,</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623516#M37357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that you're not trying to flash anything in a long word that has&lt;/P&gt;&lt;P&gt;already been written to - this will cause an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; I've checked and tried it with long word + using the erase function :&lt;/P&gt;&lt;P&gt;result is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;- is there shadow ram that must be handled and set?&lt;/P&gt;&lt;P&gt;- it is not 100% clear if there are flash write protect bits or other&lt;/P&gt;&lt;P&gt;settings to be turned off /on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only need a small piece of code to program and read back some bytes or&lt;/P&gt;&lt;P&gt;longwords. Nothing seems to be available on application notes or&lt;/P&gt;&lt;P&gt;sample/example c code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wbr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Oct 13, 2016 at 12:58 PM, mjbcswitzerland &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:12:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623516#M37357</guid>
      <dc:creator>josrennies</dc:creator>
      <dc:date>2016-10-17T14:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Flash programming on MKL16z256,</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623517#M37358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached C code to the last post that I have used on more than 100 different Kinetis parts (and uTasker users have used in many industrial projects for several years).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are binary images for most NXP Kinetis boards at the link at the bottom of the other posts so you can also load one to a board that you have and play around with reading, writing, erasing memory&amp;nbsp; - this link explains the general interface on the debug UART which can be used for any internal or external memory types:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FKE_EEPROM.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/KE_EEPROM.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no shadow RAM to be worked with and as long as you haven't protected sectors in your Flash configuration you should have no problems manipulating internal memory.&lt;/P&gt;&lt;P&gt;Load working code and analyse the operation or run the uTasker simulator since it also emulates internal Flash so that you can see the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-programming-on-MKL16z256/m-p/623517#M37358</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-10-17T17:56:16Z</dc:date>
    </item>
  </channel>
</rss>

