<?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: SWD_CLK pin assigned as GPIO by mistake in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238038#M5633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;Yes I do use J-link to program the K60.&lt;/P&gt;&lt;P&gt;But I am not able to program even at POR,&lt;/P&gt;&lt;P&gt;I had already had tried the jlink which shows the following log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;SEGGER J-Link Commander V4.56 ('?' for help)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Compiled Oct 22 2012 19:40:24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;DLL version V4.56, compiled Oct 22 2012 19:40:04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Firmware: J-Link ARM V8 compiled Sep 2&lt;/SPAN&gt;0 2012 13:27:01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Hardware: V8.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;S/N: 58009589&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Feature(s): JFlash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;VTarget = 3.287V&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;No device found on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Did not find any core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Failed to identify target. Trying again with slow (4 kHz) speed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;No device found on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Did not find any core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;J-Link&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;The procedure which cause this issue is a bit difficult to explain but I will try to do so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;-I am writing a custom bootloader(bare metal) for a application running on K60 (based on MQX)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;-I programmed the main application on the board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;-Then I programmed the bootloader which just jumps to the address of main application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;- I have used the appropriate linker files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;- When I ran the bootloader the code successfully jumped to the correct address and ran main application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;- But I am not been able to reprogram/or communicate the board with via JTAG. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;- I get unable to get CPU status error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;in bootloader code I just tried to toggle a LED connected on PA4 but accidentally assigned the PA0 which is SWD_CLK as GPIO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;by :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;PORTA_PCR0 = 0x00000100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;instead of &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;//PORTA_PCR4 = 0x00000100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;That is why I was &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;suspecting it to be cause of the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it explain my problem&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 13:00:18 GMT</pubDate>
    <dc:creator>nikhilsarnaik</dc:creator>
    <dc:date>2013-06-25T13:00:18Z</dc:date>
    <item>
      <title>SWD_CLK pin assigned as GPIO by mistake</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238035#M5630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone come across this issue before?&lt;/P&gt;&lt;P&gt;I have accidentally assigned the SWD_CLK pin as GPIO on K60.&lt;/P&gt;&lt;P&gt;And now I am not been able to debug or even download the code onto the processor (that is understandable as the assignment I did must not be allowing the CLK signal from the debugger into the JTAG port). But does anyone know a way to reassign or force assign the pin as SWD_CLK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:28:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238035#M5630</guid>
      <dc:creator>nikhilsarnaik</dc:creator>
      <dc:date>2013-06-25T12:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: SWD_CLK pin assigned as GPIO by mistake</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238036#M5631</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;this should not be a problem as at POR the default state of the pin is JTAG_TCLK, so you should be able to debug.&lt;/P&gt;&lt;P&gt;Surprising this is a problem. What is the programmer at your end. Do you have a J-link with you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the J-link you have a command line utility&amp;nbsp; Jlink.exe. This can be used to communicate over the JTAG port with the reset line low. If this programmer is there with you then this might be a way possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure i can replicate your problem , this might be risking a board at my end :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:38:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238036#M5631</guid>
      <dc:creator>deepakrana</dc:creator>
      <dc:date>2013-06-25T12:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: SWD_CLK pin assigned as GPIO by mistake</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238037#M5632</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;Try this, similar issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/06/16/bricking-and-recovering-frdm-kl25z-boards-reset-swd-clock-and-low-power/"&gt;http://mcuoneclipse.com/2013/06/16/bricking-and-recovering-frdm-kl25z-boards-reset-swd-clock-and-low-power/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the Recovery utility link in the post.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238037#M5632</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2013-06-25T12:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: SWD_CLK pin assigned as GPIO by mistake</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238038#M5633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;Yes I do use J-link to program the K60.&lt;/P&gt;&lt;P&gt;But I am not able to program even at POR,&lt;/P&gt;&lt;P&gt;I had already had tried the jlink which shows the following log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;SEGGER J-Link Commander V4.56 ('?' for help)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Compiled Oct 22 2012 19:40:24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;DLL version V4.56, compiled Oct 22 2012 19:40:04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Firmware: J-Link ARM V8 compiled Sep 2&lt;/SPAN&gt;0 2012 13:27:01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Hardware: V8.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;S/N: 58009589&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Feature(s): JFlash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;VTarget = 3.287V&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;No device found on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Did not find any core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Failed to identify target. Trying again with slow (4 kHz) speed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;No device found on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;Did not find any core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;J-Link&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;The procedure which cause this issue is a bit difficult to explain but I will try to do so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;-I am writing a custom bootloader(bare metal) for a application running on K60 (based on MQX)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;-I programmed the main application on the board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;-Then I programmed the bootloader which just jumps to the address of main application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;- I have used the appropriate linker files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;- When I ran the bootloader the code successfully jumped to the correct address and ran main application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;- But I am not been able to reprogram/or communicate the board with via JTAG. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;- I get unable to get CPU status error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;in bootloader code I just tried to toggle a LED connected on PA4 but accidentally assigned the PA0 which is SWD_CLK as GPIO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;by :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;PORTA_PCR0 = 0x00000100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;instead of &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;//PORTA_PCR4 = 0x00000100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;That is why I was &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;suspecting it to be cause of the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it explain my problem&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:00:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238038#M5633</guid>
      <dc:creator>nikhilsarnaik</dc:creator>
      <dc:date>2013-06-25T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: SWD_CLK pin assigned as GPIO by mistake</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238039#M5634</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;What is the status of PTA4 at POR&lt;/P&gt;&lt;P&gt;Hope you have not made this pin low at POR&lt;/P&gt;&lt;P&gt;Make sure this pin is high at POR because if this pin is low at POR then the controller goes to EZ mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the Jlink utility then check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;press the reset button and hold it low&lt;/P&gt;&lt;P&gt;power cycle your board &lt;/P&gt;&lt;P&gt;now turn on the jlink.exe &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if you are able to get communication over J-link or not, i mean it should be able to detect the core and give you an okay message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238039#M5634</guid>
      <dc:creator>deepakrana</dc:creator>
      <dc:date>2013-06-25T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: SWD_CLK pin assigned as GPIO by mistake</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238040#M5635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;Yes forcing the reset pin to low while using J-link did bring my processor back to life.&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:13:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-CLK-pin-assigned-as-GPIO-by-mistake/m-p/238040#M5635</guid>
      <dc:creator>nikhilsarnaik</dc:creator>
      <dc:date>2013-06-25T13:13:48Z</dc:date>
    </item>
  </channel>
</rss>

