<?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: I'm not able to erase flash sector in MKL03,error 0x20 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808329#M49136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I note that you have now invested 2 months trying to find a solution to erasing a sector. Although you may be frightened by other solutions, do note that you can have a complete working project in 15 minutes if you follow the instruction video(s) and if you have a professional need a setup for your board can be made for you so that there is also no risk to your project (see &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%2Fservices.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking a quick look at the project that you have generated by PE I suspect that you have something set up incorrectly since there looks to be a missing register pointer:&lt;/P&gt;&lt;P&gt;FLASH_SSD_CONFIG flash1_InitConfig0 = {&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ftfxRegBase = 0U,&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .PFlashBase&amp;nbsp; = 0U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .PFlashSize&amp;nbsp; = 8192U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .DFlashBase&amp;nbsp; = 0U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .DFlashSize&amp;nbsp; = 0x00U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .EERAMBase&amp;nbsp;&amp;nbsp; = 0U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .EEESize&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .DebugEnable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .CallBack = &amp;amp;flash1_Callback,&lt;BR /&gt;};&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that ftfxRegBase&amp;nbsp; should be pointing the the base address of the flash controller and not 0 so any attempted writes to the flash controller would cause a hard fault to be generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been involved with various KL03 product developments, whereby the KL03 is a fairly simple chip to use and such product developments don't usually take more than a couple of weeks to complete when using a quality framework. I therefore think that you need to identify a method that allows your to work effectively to avoid unnecessary project costs and delays, which look presently to be a serious issue.&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, 16 Aug 2018 23:13:15 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2018-08-16T23:13:15Z</dc:date>
    <item>
      <title>I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808321#M49128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,i need help in erasing and writng some data in&amp;nbsp;a&amp;nbsp; sector of this small microcontroller,MKL03Z8VFG4&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;i dont know where is my error,but probably is very big.&lt;BR /&gt;I'm trying to erase a sector using the&amp;nbsp;fsl_flash component in KDS 3.0.0 with KSDK&lt;BR /&gt;Actually how dont'know exactly how to use this component.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;FlashInit&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;flash1_InitConfig0&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="token function"&gt;PFlashGetProtection&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;flash1_InitConfig0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;protect_state&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"cpsid i"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; i&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FlashEraseSector&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;flash1_InitConfig0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x1C00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1024&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;FlashCommandSequence&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"cpsie i"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i results 0x20&amp;nbsp;&amp;nbsp;&lt;BR /&gt;The settings of the Processor Expert are at low clock frequency(4 MHz core clock and 2 MHz bus clock).&lt;/P&gt;&lt;P&gt;I reserved a sector in Flash at 0x1C00,modifyng the linker file,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x000017F0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;my_flash (RX) : ORIGIN = 0x00001C00, LENGTH = 0x00000400&lt;/STRONG&gt;&lt;BR /&gt;at the beginning of this sector some data was written at programming time,so to check if erasing happens.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;char&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;__attribute__&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;section &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".myBufSection"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; buf&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;150&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;"abcdefghijklmno&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the . s files these ares the configuration settings&lt;BR /&gt; &lt;STRONG&gt;.section .FlashConfig, "a"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .long 0xFFFFFFFF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .long 0xFFFFFFFF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .long 0xFFFFFFFF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .long 0xFFFF3DFE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I think that the "3D" value has to do only with the NMI enable and boot options,&lt;BR /&gt;the FTFA_FPROTn register are all0xFFFFFFFF,meaning that no region is protected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example project is attached, if someone kindly would chek it,thanks;it is from a project that i cleaned almost to essential just to test the flash functions.&lt;BR /&gt;&lt;BR /&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jun 2018 08:57:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808321#M49128</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2018-06-23T08:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808322#M49129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego Colombo&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked the example provided with the SDK package? Is your Flash command sequence load in RAM in order to avoid write-read operations?&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw that you are using SDK 1.3 with KDS 3.0. I highly recommend you to use the latest version of the SDK (V2.4) and use MCUXpresso IDE. This version has resolved many bugs and it has full support in the tools that we provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 22:55:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808322#M49129</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-06-25T22:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808323#M49130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge ,thanks for helping me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;EM&gt;Have you checked the example provided with the SDK package?&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;&amp;nbsp;"&lt;/EM&gt; No i did'nt.&lt;BR /&gt;I'm still a newbie with SDK,where can i find this example?Is it specifically for the FRDM-KL03Z board?&lt;BR /&gt;Normally i don't feel encouraged by examples&amp;nbsp;taking for granted that one&amp;nbsp;is working on a Freedom board,when i have the MKL03 mounted in a custom prototype,as i do,and i dont know the steps to clean the project by anything that involves&amp;nbsp;the Freedom board.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I dont have an idea where the flash command sequence is,i just copied that few lines from somewhere.&lt;BR /&gt;If i check the declaration of&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;FlashCommandSequence in my code i have a function where at firsr glance&amp;nbsp; i can't see none of the tipical flash commands that in the reference manual are under&amp;nbsp;&lt;STRONG&gt;27.4.8.2 Flash Commands&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;Thanks for your time&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;Diego Colombo&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:05:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808323#M49130</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2018-06-26T15:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808324#M49131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try also a binary from here - &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%2FFRDM-KL03Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL03Z.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and see the video explaining Flash operations at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPe9A8qsefzQ" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=Pe9A8qsefzQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the uTasker project (free open source) which contains flash API, parameter and file system for KL03 and allows flash simulation.&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Flash: &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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;uTasker - for more performance and faster, cheaper product development&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 19:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808324#M49131</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-06-26T19:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808325#M49132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark,for introduce me in the uTasker world.I read that "the µTasker is an operating system with TCP/IP stack and USB support as well as drivers for various Internet/USB enabled single-chip microcontrollers"...but i'm still afraid that this is not what i need.&lt;BR /&gt;I'm in the middle of a baremetal small project where VLLS3 mode ,i dont' want to depend by an operating system,i 'm shure that if i would be able to use it i could find it useful in many situation,and i thank you very much but what i need now are,if possible,few rows of codes just to add some elementary flash saving of some tenth of bytes.&lt;BR /&gt;Probably my approach sounds demotivating to the guys that developed all this useful functions and structures&amp;nbsp;granting portability,but&amp;nbsp;because of my limits often i'm not able to extract exactly the few things i need from these professionally structured projects,when i try some definition results undeclared and so on&lt;/P&gt;&lt;P&gt;.Anyway i try to read and understand your link&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 20:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808325#M49132</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2018-07-02T20:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808326#M49133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project is designed to be efficient and easy to use so if you have only worked with bare metal projects before you will still feel at home, but you will find that you can work faster and more modularly (as well as having quality drivers and support). It allows low power operation to be used very simply and can operate (due to small footprint) on anything from a KL02 up to a K70 with essentially the same application code (whereby the K70 - and other larger chips - would be able to take advantage of the integrated TCP/IP stack, USB, etc.).&lt;BR /&gt;- No code generation needed&lt;BR /&gt;- No different driver sets and BSPs for different target&lt;BR /&gt;- Project and chip simulation (including peripherals, interrupts, DMA, flash operations, etc.)&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>Tue, 03 Jul 2018 22:11:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808326#M49133</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-07-03T22:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808327#M49134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can download the latest SDK in our Web page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://mcuxpresso.nxp.com/" title="http://mcuxpresso.nxp.com/"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can find the example under board/driver_examples/flash. Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 20:22:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808327#M49134</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-07-16T20:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808328#M49135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;Thanks for the hints,probably i 'm still not able to &lt;BR /&gt;appreciate the great work behind uTasker,MCUXpresso and &lt;BR /&gt;all this stuff,that is available for free, thanks to NXP &lt;BR /&gt;and to lot of engineers.&lt;BR /&gt;But this is very far from what i need:i'm using KDS,i &lt;BR /&gt;don't want and i can't spend time right now to learn &lt;BR /&gt;uTasker or install MCUXpresso,despite i know that soon i &lt;BR /&gt;will have to do the latter,and absolutely i don't want to &lt;BR /&gt;download anymore a project for a specific FRDM board&amp;nbsp;to discover that then&lt;BR /&gt;i ìm not able to use it for my custom board..&lt;BR /&gt;Is it so impossible to find a very simple bare metal &lt;BR /&gt;example that can be used with KDS and SDK 1.2.0 where a &lt;BR /&gt;sector reserved for data could be erased?&lt;/LI&gt;&lt;LI&gt;I attached a project,in the linker file i reserved the sector at 0x1C00 for test,after it was&amp;nbsp; filled of values,can someone kindly correct it ?&lt;/LI&gt;&lt;LI&gt;Not only it does not erase the sector,but calling the function ends in DefaultISR: in the startup file,before executing the code copied in RAM&lt;BR /&gt;Thanks&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 23:01:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808328#M49135</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2018-08-15T23:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808329#M49136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I note that you have now invested 2 months trying to find a solution to erasing a sector. Although you may be frightened by other solutions, do note that you can have a complete working project in 15 minutes if you follow the instruction video(s) and if you have a professional need a setup for your board can be made for you so that there is also no risk to your project (see &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%2Fservices.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking a quick look at the project that you have generated by PE I suspect that you have something set up incorrectly since there looks to be a missing register pointer:&lt;/P&gt;&lt;P&gt;FLASH_SSD_CONFIG flash1_InitConfig0 = {&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ftfxRegBase = 0U,&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .PFlashBase&amp;nbsp; = 0U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .PFlashSize&amp;nbsp; = 8192U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .DFlashBase&amp;nbsp; = 0U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .DFlashSize&amp;nbsp; = 0x00U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .EERAMBase&amp;nbsp;&amp;nbsp; = 0U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .EEESize&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00U,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .DebugEnable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .CallBack = &amp;amp;flash1_Callback,&lt;BR /&gt;};&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that ftfxRegBase&amp;nbsp; should be pointing the the base address of the flash controller and not 0 so any attempted writes to the flash controller would cause a hard fault to be generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been involved with various KL03 product developments, whereby the KL03 is a fairly simple chip to use and such product developments don't usually take more than a couple of weeks to complete when using a quality framework. I therefore think that you need to identify a method that allows your to work effectively to avoid unnecessary project costs and delays, which look presently to be a serious issue.&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, 16 Aug 2018 23:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808329#M49136</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-08-16T23:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808330#M49137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark for your hints.&lt;/P&gt;&lt;P&gt;Actually i suspended it for 2 months being forced to follow other issues.Yesterday i restarted and yes,i spent lot of hours trying to get my project working,but i also dedicated some hours&amp;nbsp; to install KSDK 1.3.0 and practicing unsuccessfully with MCUXpresso.Solved a couple of hours ago,but still not explained.Tomorrow i will compare the bad example with the working one to find thecrucial difference.&lt;/P&gt;&lt;P&gt;I&amp;nbsp; extracted some functions call and definitions by an example :flash_example_frdmkl03z and i pasted in my project.Some definitions and some values filling structures are probably different from the ones in my example.&lt;/P&gt;&lt;P&gt;Let me check after some hours of sleep(1:30 AM here).&lt;BR /&gt;I wasted lot of time trying to have the example working,no way,despite the MKL03 library was compiled in my workspace i was not able to run the example:i have KDS 3.0 and th 3.2.In&amp;nbsp;3.0 i had&amp;nbsp; &amp;nbsp; &amp;nbsp;make:***Access denied&lt;BR /&gt;in 3:2 after restart some path looks missing,i don't know why,and all the projects in the workspace were not able to be compiled anymore because of&amp;nbsp;&amp;nbsp;"arm-none-eabi-g++" not found in PATH ..".Same for &lt;SPAN&gt;"arm-none-eabi-gcc..."&lt;/SPAN&gt;I was not able to find the missing or wrong field in Project Properties.&lt;BR /&gt;Then, MCU Expresso at first installation missed Kinetis Processors,and i don't have an idea about how to insert them.&lt;/P&gt;&lt;P&gt;I still&amp;nbsp;don't understand the uTasker,some precomplied&amp;nbsp; .bin are offered,but what can i do&amp;nbsp;a binary file?&lt;BR /&gt;I started with KDS and i want to solve with it.&lt;BR /&gt;Furthermore,even in minimal projects the debugger was not able to reset from start,falling in a loop that when stopped showed a message "&lt;SPAN style="color: #373737; background-color: #ffffff; font-weight: 300;"&gt;no source available ...0x1C000xx".,and this every time i dare to press the reset button in the debug upper bar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; background-color: #ffffff; font-weight: 300;"&gt;This is to say that i spent hours looking for infos about tools and libraries ,but i 'm still confused.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; background-color: #ffffff; font-weight: 300;"&gt;Thanks again&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 00:05:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808330#M49137</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2018-08-17T00:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808331#M49138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uTasker s not a .bin - it is a complete (free open source) project on Github or a profession version for those needing to have a guaranteed development solution with support (&lt;EM&gt;the bin is just an example of a working project that can be loaded to a reference board if of interest&lt;/EM&gt;). It works with KDS, MCUXpresso, Codewarrior, IAR, Keil or others, so has no restrictions. It has tutorials, many documents and videos for those who need to get up to speed quickly. Free remote desk top introductions are available for those with professional needs or have training requirements.&lt;/P&gt;&lt;P&gt;It would give you an immediate and guaranteed solution if you were to invest a fraction of the time you have done in the no longer supported KDS and KSDKs and working out why its examples don't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from debugging problems for you if you require use of the older examples&amp;nbsp;(see the support page for more details of consulting service) I don't think I can help much more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use NXP examples it would also make sense to follow their advice to use their latest library and tools since you will have more chance of obtaining some support that when using legacy ones that they will have no interest in maintaining.&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>Fri, 17 Aug 2018 02:26:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808331#M49138</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-08-17T02:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808332#M49139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,you are shurely right&lt;BR /&gt;Being always in hurry investing time is not so simple.Today,with MCUXpresso i still faced all the installation,SDK and plugin problems that happens when i'm alone and things don't go exactly as the video shows they should be.In other words,if one has someone&amp;nbsp;at his side that has already faced all this problems everything is fixed,and the new environment shows all of its features,if not all this new stuff looks irritating,and one could miss the old Code Warrior for Microcontrollers 6.1.&lt;BR /&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 19:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808332#M49139</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2018-08-17T19:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: I'm not able to erase flash sector in MKL03,error 0x20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808333#M49140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One must be careful to recognise the difference between "investing time" and "losing time".&lt;/P&gt;&lt;P&gt;Always rushing but not arriving is indeed frustrating....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and good luck - I'm signing out of the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 21:38:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I-m-not-able-to-erase-flash-sector-in-MKL03-error-0x20/m-p/808333#M49140</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-08-17T21:38:35Z</dc:date>
    </item>
  </channel>
</rss>

