<?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: Cannot program the MKE04Z8 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445596#M26299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;My suggestion for you is you can add pull-up resistor on pin SWD-DIO on your 'bad' board and try again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 06:45:41 GMT</pubDate>
    <dc:creator>Paul_Tian</dc:creator>
    <dc:date>2015-07-07T06:45:41Z</dc:date>
    <item>
      <title>Cannot program the MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445595#M26298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to program the MKE04Z8VTG4 (TSSOP16 variant) on our preproduction series boards with no succes). Basic facts are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The board is pretty simple. To sort the problems out I assembled the boards without any components other than the microcontroller and decoupling &amp;amp; filter capacitors (100 nF +10 uF), placed very close to the chip.&lt;/P&gt;&lt;P&gt;The programmer is an FRDM/KL25Z board with SWDCLK jumper cut and wires soldered to my own SWD connector.&lt;/P&gt;&lt;P&gt;The programming cable is about 20 cm long.&lt;/P&gt;&lt;P&gt;I am using two different software/firmware combinations:&lt;/P&gt;&lt;P&gt;- Keil MDK/ARM + CMSIS_DAP firmware app&lt;/P&gt;&lt;P&gt;- USBDM ARM programmer + USBDM OpenSDA v2.1 firmware.&lt;/P&gt;&lt;P&gt;The first board programmed with no problems. I managed to program only 4 boards out of over 25 assembled.&lt;/P&gt;&lt;P&gt;After swapping the microcontrollers between the "good" and "bad" board, the uC from a "good" one can be programmed on a "bad" PCB and the "bad" uC cannot be programmed on a "good" PCB -&amp;gt; the problem should be attributed to the chip, NOT to the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The programming software correctly detects the chip and displays the message about erase failure (timeout). So no communication problems but rather an error in erase/program algorithm.&lt;/P&gt;&lt;P&gt;The chips are fresh and unused.&lt;/P&gt;&lt;P&gt;Tried two power supply configurations - 2.94 V from FRDM board or 3.3 V - same behavior.&lt;/P&gt;&lt;P&gt;Tried to lower the SWD clock frequency - no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 21:47:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445595#M26298</guid>
      <dc:creator>gbm</dc:creator>
      <dc:date>2015-06-30T21:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program the MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445596#M26299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;My suggestion for you is you can add pull-up resistor on pin SWD-DIO on your 'bad' board and try again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 06:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445596#M26299</guid>
      <dc:creator>Paul_Tian</dc:creator>
      <dc:date>2015-07-07T06:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program the MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445597#M26300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did that already - 10 k pullup on SWDIO. No difference. I get "Flash erase timeout" message from 20+ chips that don't program, the other 4 programmed correctly.&lt;/P&gt;&lt;P&gt;The communication with the chips seems to be OK - the identifier is read correctly from all the chips.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 10:08:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445597#M26300</guid>
      <dc:creator>gbm</dc:creator>
      <dc:date>2015-07-10T10:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program the MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445598#M26301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hello Mazur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the pin PTB4 (NMI) is at ‘low' level. Try to force to ‘high' and try again. &lt;SPAN&gt;Pemicro&lt;/SPAN&gt; algorithm didn't disable NMI irq and old algorithms had that issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 10:26:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445598#M26301</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2015-07-10T10:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program the MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445599#M26302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick!&lt;/P&gt;&lt;P&gt;Actually I am using Keil MDK-ARM with CMSIS-DAP application programmed in FRDM board debug uC. My board has 10k pulldown on PTB4 (it's necessary for my hardware). After shorting PTB4 to Vdd the chip may be programmed - tried that on 4 boards so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conclusions:&lt;/P&gt;&lt;P&gt;1. Programming script SHOULD disable NMI but it doesn't - PLEASE UPDATE the script/algorithm in Keil MKE pack!&lt;/P&gt;&lt;P&gt;2. I still don't understand why 4 micros out of 28 programmed without problems with PTB4 pulled down while the other 24 didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 18:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445599#M26302</guid>
      <dc:creator>gbm</dc:creator>
      <dc:date>2015-07-10T18:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program the MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445600#M26303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gregorz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You referred to USBDM at the top of this thread so I'll make some comments on your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't aware of this issue until I saw this thread.&amp;nbsp; It may be the reason for some other similar issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not believe there is any alternative to tying the NMI pin high externally (or leaving it open as there is an internal pull-up). &lt;/P&gt;&lt;P&gt;The NMI is enabled out of power-on-reset.&amp;nbsp; The programmer would not necessarily have a chance to disable NMI if the pin was low so it would be quite possible for the target to lock-up before the debugger can get access.&amp;nbsp; It appears that the SOPT register is not accessible in reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I will look at adding this but it would not prevent all problems I think.&amp;nbsp; The only reason for not doing it with USBDM is that it becomes another device-specific action which is a pain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 09:46:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-the-MKE04Z8/m-p/445600#M26303</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2015-07-24T09:46:03Z</dc:date>
    </item>
  </channel>
</rss>

