<?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 Design StudioのトピックRe: Unable to program MK22FX512AVLQ12 controller</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978694#M10063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One observation regarding the code. When we program the controller with GPIO Toggling code then while debugging it is observed that this goes to NMI Handler&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96135iE6A7F4B19FFFEA35/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when we checked the voltage at PTA4 Which is 3.3V pulled up with 10K resistor it is showing 1.2 to 1.6 Volt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the data sheet&amp;nbsp; controller will go to NMI handler if there is interrupt in the pin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96136i34ED43F7F7EE565F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it the case that due to this pin it is not allowing Jlink to debug the controller?&amp;nbsp; We also tried by disabling the pin in the code but still it hangs and when checked it shows that it is in NMI handler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Dec 2019 10:39:51 GMT</pubDate>
    <dc:creator>gauravmore</dc:creator>
    <dc:date>2019-12-10T10:39:51Z</dc:date>
    <item>
      <title>(Solved) Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978654#M10023</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;I am using&amp;nbsp;MK22FX512AVLQ12 controller in one of my product. I have made the development board for the same. But after assembly I am not able to programm the controller. i am using PE MICRO FX debugger. Before going for the development board design I first evaluated&amp;nbsp; FREEDOM &lt;A href="mailto:K@@"&gt;K&lt;/A&gt;22F evaluation board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used MCU Xpresso for the evaluation and PE MICRO (Rev B, D, FX Rev D) All these wer able to programme. Also i used LPC11U68 Eval board Debugger for programming . I was able to programm and debug using all these debuger.&lt;/P&gt;&lt;P&gt;But now when i made the development board of&amp;nbsp;MK22FX512AVLQ12 controller and tried to programme then it is showing error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the schematic and also made the modification in the hardware like pull up to EZ_CS pin as per the input from one of the forum.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing this issue from last 3-4 days but still no sucess, please check the schematic and suggest the solution for the same.&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/converse"&gt;converse&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 08:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978654#M10023</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-11-27T08:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978655#M10024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More，&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your interest in the NXP kinetis product, I am the kinetis engieer, and would like to help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have review your schematic, some points you need to note:&lt;/P&gt;&lt;P&gt;1. NMI pin need to add external 4.7K to 10K pull up in the practical application&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your PTA4 NMI pin is floating, I suggest you add the external pull up resistor.&lt;/P&gt;&lt;P&gt;2. SWD_DIO add the external 10K pull up resistor.&lt;/P&gt;&lt;P&gt;3. Vout33 pin need to add this circuit:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95334i8618FC00AF6DC490/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;About your problem can't program the customer MK22FX512AVLQ12&amp;nbsp; board.&lt;/P&gt;&lt;P&gt;I suggest you find a JLINK, then use the JLINK commander to check, whether you can find the ARM cortex M4 core or not? If you don't have the JLINK, you can use the FRDM-K22 board, this board has the onboard debugger, you can firmware it as the JLINK, then connect it to the external K22 chip, but you need to disconnect your FRDM on board SWD_CLK to on board chip, J7!&lt;/P&gt;&lt;P&gt;Please double check the above points and test it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 02:58:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978655#M10024</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-29T02:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978656#M10025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;I will follow the instructions suggested by you. Out of that, 1st 2 points we have already modified at our side . Will check after modifying the 3rd point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the FRDM board I am facing issue of Driver installation after connecting the FRDM board it starts the installation but it is unable to install some drivers.&lt;/P&gt;&lt;P&gt;Screenshot attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95367i09A06174230B074F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I have evaluation board of LPC11U68 and PE MIcro FX Rev D. Can i use LPC11u68 Evaluation board? I tried to programm the FRDM eval board using LPC11U68 since i was facing the issue with the drivers installation.&lt;/P&gt;&lt;P&gt;Is it necessary to use Jlink only for this controller? I do not have rigth now and will take time to get after ordered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm the above reagrding the usage of the debugger i mentioned apart from JLink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 06:13:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978656#M10025</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-11-29T06:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978657#M10026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; What's the windows system you are using?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; If you are using win10 with FRDM-K22, please refer to this link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/microcontrollers-developer-resources/ides-for-kinetis-mcus/opensda-serial-and-debug-adapter:OPENSDA?&amp;amp;tid=vanOpenSDA#FRDM-K22F" title="https://www.nxp.com/design/microcontrollers-developer-resources/ides-for-kinetis-mcus/opensda-serial-and-debug-adapter:OPENSDA?&amp;amp;tid=vanOpenSDA#FRDM-K22F"&gt;OpenSDA Serial and Debug Adapter | NXP&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; You need to update the on board K20 debugger firmware at first.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; If you are using win7, it should don't have problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; Do you try the JLINK firmware for FRDM-K22 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; 1, You need to install the JLINK driver at first:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A class="link-titled" href="https://www.segger.com/downloads/jlink/JLink_Windows.exe" title="https://www.segger.com/downloads/jlink/JLink_Windows.exe"&gt;https://www.segger.com/downloads/jlink/JLink_Windows.exe&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; 2. Enter bootloader mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Power off the board, press the reset button and hold on it, power on the board, you will find the board is the device named as "BOOTLOADER". Then release the reset button.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then you can send this firmware to the BOOTLOADER:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &lt;A class="link-titled" href="https://www.segger.com/downloads/jlink/OpenSDA_FRDM-K22F" title="https://www.segger.com/downloads/jlink/OpenSDA_FRDM-K22F"&gt;https://www.segger.com/downloads/jlink/OpenSDA_FRDM-K22F&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Power off and power on the board again, your FRDM-K22 on board debugger should be the JLINK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;About the LPC11U68 EVK, in my memory, this on board debugger can't debug the external MCU, I suggest you use JLINK, just used to check whether you can find the ARM core, your P&amp;amp;E tool also can try to debug the K22 chip, you can try it, then check the log, can you use the P&amp;amp;E micro tool find the ARM core? If you can't find the ARM core, it means your hardware have problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;You can share your P&amp;amp;E Micro debug tool log or the test result with me, then I will help you to check it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 06:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978657#M10026</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-29T06:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978658#M10027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I used name Jeremy :smileyhappy:&amp;nbsp;Instead. Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all the procedures mentioned by you and able to successfully programm the development board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. After so many tries we got the solution. Thank as lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 09:22:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978658#M10027</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-11-29T09:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: (Solved)Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978659#M10028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It doesn't matter, Jeremy is my colleague :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your question is solved, please help to mark the correct answer, thank you!&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 09:27:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978659#M10028</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-29T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978660#M10029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;After trying the procedures I am able to programm the code but now when i teied it multiple times then it gives me the error mentioned below.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;When i tried to mass erase the controller&amp;nbsp;&lt;SPAN&gt;and when I connect the board through SWD with J link the&amp;nbsp; FRDMK22F board's small red LED (D2) is turned on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Executing flash operation 'Erase' (Erase flash) - Fri Nov 29 15:25:57 IST 2019&lt;BR /&gt;Checking MCU info...&lt;BR /&gt;Scanning for targets...&lt;BR /&gt;Executing flash action...&lt;BR /&gt;SEGGER J-Link Commander V6.42b (Compiled Feb 5 2019 17:33:07)&lt;BR /&gt;DLL version V6.42b, compiled Feb 5 2019 17:31:40&lt;BR /&gt;J-Link Command File read successfully.&lt;BR /&gt;Processing script file...&lt;BR /&gt;J-Link Commander will now exit on Error&lt;BR /&gt;J-Link connection not established yet but required for command.&lt;BR /&gt;Connecting to J-Link via USB...O.K.&lt;BR /&gt;Firmware: J-Link OpenSDA 2 compiled May 27 2019 11:01:03&lt;BR /&gt;Hardware version: V1.00&lt;BR /&gt;S/N: 621000000&lt;BR /&gt;VTref=3.300V&lt;BR /&gt;Target connection not established yet but required for command.&lt;BR /&gt;Device "MK22FX512AXXX12" selected.&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Communication error while accessing MDM-AP.&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Communication error while accessing MDM-AP.&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;****** Error: InitTarget(): PCode returned with error code -1&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Communication error while accessing MDM-AP.&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Communication error while accessing MDM-AP.&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;****** Error: InitTarget(): PCode returned with error code -1&lt;BR /&gt;Cannot connect to target.&lt;BR /&gt;Script processing completed.&lt;BR /&gt;Unable to perform operation!&lt;BR /&gt;Command failed with exit code 1&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;What would be the reason for the same. since the code is the same with LED Toggling only.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This issue is similar with the issue mentioned in&amp;nbsp; below link&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.nxp.com/thread/378870"&gt;https://community.nxp.com/thread/378870&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;But here i am using FRDM_K22F board for programming and debugging my development board,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Please check for the same and let us know . It seems like the controller is in reset wihile Jlink is trying to connect. So no core is found.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Need to know the exact procedure for removing the controller form unlock mode other wise once it is unlocked the we programmed then againg it behaves the same way. This is waht is observed in most of the forums related to FRRDM K22F.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Awaiting reply.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Nov 2019 06:44:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978660#M10029</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-11-30T06:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978661#M10030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sorry for my later reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;What's the PC operation system you are using now? If you are using the win10, your on board old K20 opensda may be corrupted:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/microcontrollers-developer-resources/ides-for-kinetis-mcus/opensda-serial-and-debug-adapter:OPENSDA?&amp;amp;tid=vanOpenSDA#FRDM-K22F" title="https://www.nxp.com/design/microcontrollers-developer-resources/ides-for-kinetis-mcus/opensda-serial-and-debug-adapter:OPENSDA?&amp;amp;tid=vanOpenSDA#FRDM-K22F"&gt;OpenSDA Serial and Debug Adapter | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But, I suggest you switch to the FRDM-K22 on board K22 chip at first, then use the JLINK to detect the on board chip, whether it can find the ARM core or not?&lt;/P&gt;&lt;P&gt;&amp;nbsp; If the on board JLINK can find the on board K22, just can't detect your external K22 chip, it means your external K22 maybe locked, you can try this commander: unlock kinetis&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please try it on your side.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any updated information, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 02:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978661#M10030</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-12-03T02:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978662#M10031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using Windos 7 Professional. As per your input I created JLink using FRDM-K22F Evaluation board and I was able to program, but then I started facing the issue as I already metioned earlier,&amp;nbsp; Also we&amp;nbsp; have already followed the procedure you sugegested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may possible that the Chip may get locked but then for other&amp;nbsp; boards also the same behaviour is repeated. While refering the forums , we came across one forum link&amp;nbsp;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp; &lt;A href="https://community.nxp.com/thread/440212"&gt; Communication error while accessing MDM-AP.&lt;/A&gt;&amp;nbsp;based on the error we get.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;After refering this forum and downloading the documents and following the instructions we are&amp;nbsp; again able to bring back the controller and reprogram and debug . But again after debug for arougn 2 times the same behaviour is repeated. then we again repeated the same process then after some time we get success, This is happening consistently.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Due to this behaviour of the controller we are not able to conclude that whether the problem is related to Jlink which is created or with the hardware. Also reason is we tried to programm one FRDM-K22F evaluation board with the other&amp;nbsp;&lt;SPAN&gt;FRDM-K22F evaluation board&amp;nbsp;in whihc Jlink is created and there we are not facing any issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;SPAN&gt;The controller in the Evaluation board MK22FN512VLH12.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;We are not able to debug the board and proceed for our development and it is comming under our critical path as it&amp;nbsp; has been around 3 weeks we are struggling.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Based on your input we moved one step ahead&amp;nbsp; but again&amp;nbsp; facing the issue mentioned above. Please let us know whether any thing elle we are missing in hardware ot&amp;nbsp; in the Jlink creating process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Awaiting your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CC:&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/vaibhavi.padwal@lntebg.com"&gt;vaibhavi.padwal@lntebg.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Gaurav More&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 05:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978662#M10031</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-12-03T05:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978663#M10032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 12.0pt;"&gt;Gaurav More&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you read the document: Kinetis Lock issue analysis and unlock way.pdf in the link which you shared?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/440212"&gt; Communication error while accessing MDM-AP.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This document is the classic kinetis lock document.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please check it in details.&lt;/P&gt;&lt;P&gt;&amp;nbsp; BTW, check your firmware, whether you lock the code in the firmware, 0X40C, check it,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92472i808EF313BEFB10A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you lock it in the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Now, if you use the FRDM-K22 with the on board K22 chip, you also enter the lock problems? You can download the official SDK code for FRDM-K22 , whether it still have problems?&lt;/P&gt;&lt;P&gt;Any updated information, please let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 05:33:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978663#M10032</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-12-03T05:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978664#M10033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I refered the document and followed the procedure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I was able to program and debug the othere FRDMK22 board and yes the project created is using the SDK and I am not facing any issue.&amp;nbsp; Now I will check with the Official SDK code and alos is upgraded the OpenSDA Ver 2.1 as per the link provided by you&amp;nbsp; in the above reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the Lock in the firmware that need to check but,&amp;nbsp; How to check or compare whether the lock is enable in the SDK and My firmware?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 06:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978664#M10033</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-12-03T06:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978665#M10034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are using the SDK in default, the code didn't lock the secure byte.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Abou your own firmware, you can generate the .hex file, then check flash address 0X40C data, and compare with the the FSEC register which I post you in the last reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 06:18:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978665#M10034</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-12-03T06:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978666#M10035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check the flash settings in 0x40C in the project that we created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95045iE49C9B8425576CDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of the&amp;nbsp; FSEC registor in the SDK&amp;nbsp; based project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95095iA187AFB7FA49C3FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see both are same but when we project the development board after once we program then we are not able to connect . But same thing when we did with the FRDM K22F board then there its working fine for multiple times . please find attached project for bothe the controllers for your reference i order to find the difference between the code w.r.t to JLink or Jtag access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CC:&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/vaibhavi.padwal@lntebg.com"&gt;vaibhavi.padwal@lntebg.com&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 09:15:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978666#M10035</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-12-03T09:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978667#M10036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will test your attachment on my side tomorrow on my FRDM-K22 board, then give you feedback.&lt;/P&gt;&lt;P&gt;Please wait patient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 10:26:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978667#M10036</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-12-03T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978668#M10037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Update regarding the issue.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 10:07:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978668#M10037</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-12-04T10:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978669#M10038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; So the FRDM-K22 SDK project no problems on the FRDM-K22 board, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Just your customer board with the MK22FX512AXX12 project after download the code, the debugger can't be connected, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have checked my side, I don't have the MK22FX512AVLQ12 board, so I can't test it directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I create an empty project, please download it to your project, whether it works or not? After you download the code with debugger, can you debug it? After disconnect the debugger, then use the JLINK commander connect it through SWD, can you find the ARM core or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 11:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978669#M10038</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-12-04T11:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978670#M10039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the project that you sent.&amp;nbsp; For the first time after erase we were able to program the controller&amp;nbsp; and debug the same. then we terminated it and again try to relaunch, then also it was programmed, but when we run the code then we got this behaviour,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95110i1AF4DF6A39CE44EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;after this we tried to reset the code then it got terminated. Again we tried to relaunch and it failed by giving&amp;nbsp; error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executing flash operation 'Erase' (Erase flash) - Fri Nov 29 15:25:57 IST 2019&lt;BR /&gt;Checking MCU info...&lt;BR /&gt;Scanning for targets...&lt;BR /&gt;Executing flash action...&lt;BR /&gt;SEGGER J-Link Commander V6.42b (Compiled Feb 5 2019 17:33:07)&lt;BR /&gt;DLL version V6.42b, compiled Feb 5 2019 17:31:40&lt;BR /&gt;J-Link Command File read successfully.&lt;BR /&gt;Processing script file...&lt;BR /&gt;J-Link Commander will now exit on Error&lt;BR /&gt;J-Link connection not established yet but required for command.&lt;BR /&gt;Connecting to J-Link via USB...O.K.&lt;BR /&gt;Firmware: J-Link OpenSDA 2 compiled May 27 2019 11:01:03&lt;BR /&gt;Hardware version: V1.00&lt;BR /&gt;S/N: 621000000&lt;BR /&gt;VTref=3.300V&lt;BR /&gt;Target connection not established yet but required for command.&lt;BR /&gt;Device "MK22FX512AXXX12" selected.&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Communication error while accessing MDM-AP.&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Communication error while accessing MDM-AP.&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;****** Error: InitTarget(): PCode returned with error code -1&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Communication error while accessing MDM-AP.&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Communication error while accessing MDM-AP.&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;****** Error: InitTarget(): PCode returned with error code -1&lt;BR /&gt;Cannot connect to target.&lt;BR /&gt;Script processing completed.&lt;BR /&gt;Unable to perform operation!&lt;BR /&gt;Command failed with exit code 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As result agian we faced the same issue with your project as well. Do we have any SDK similar to FRDMK22F board? or any evaluation board of K22FX series?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar behaviour&amp;nbsp; is observed with your project as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know what to do for this, Is there thing w are missing in the hardware which is required,or also you can check with the people who have used this controller&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MK22FX512AVLQ12&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Gaurav More&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 11:45:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978670#M10039</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-12-04T11:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978671#M10040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you use my project, if you set a breakpoint in the main, can you enter the main?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Or you totally can't make the project works?&lt;/P&gt;&lt;P&gt;&amp;nbsp; About the official board, we don't have t&lt;SPAN style="color: #000000;"&gt;he &lt;SPAN style="background-color: #ffffff;"&gt;MK22FX512AVLQ12 board, the similar board is TWR-K21F120M board, but it also can't fun the MK22FX512AVLQ12 code.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;&amp;nbsp; I attach a bin file, the code function is toggle PTC18, it is your LED1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;&amp;nbsp; You can use the JLINK commander to download the .bin file to your board directly, copy&amp;nbsp;MK22FX512AVLQ12 _TEST.bin to your JLINK install path, the JLINK commander is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;&amp;nbsp;loadfile MK22FX512AVLQ12 _TEST.bin 0x00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;&amp;nbsp; Please try it on your side, after download the code, you can power off and power on the board again, check your PTC18, whether it is working or not?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;&amp;nbsp; I use KDS IDE generate the code, no SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;Any updated test result, please kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 05:32:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978671#M10040</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-12-05T05:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978672#M10041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;Yes we were able to programm the using your project and was able to run and stop in main but only for the first time. But after terminate and relaunching the same code, it was entering the main , instead it was&amp;nbsp;going to some address&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95649i384C125EE0D6AEF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then we tried to stop and reset te code but still it was not running in main. Now regarding the bin file you sent, did'nt get the purpose of this since if it runs then&amp;nbsp; what will we conclude?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still i will check and let you know immediately.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 06:13:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978672#M10041</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-12-05T06:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program MK22FX512AVLQ12 controller</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978673#M10042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you already add the pull up in the PTA4 or not?&lt;/P&gt;&lt;P&gt;&amp;nbsp; If after erase, when you debug the code, run, not exit, it works all the time, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you do the reset in the IDE, then run it again, whether it works or not?&lt;/P&gt;&lt;P&gt;&amp;nbsp; if you toggle a GPIO in the code, then download it, exit the debug mode, power off and power on, whether the app function works or not? Or just the secondary debugger connect problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 06:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Solved-Unable-to-program-MK22FX512AVLQ12-controller/m-p/978673#M10042</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-12-05T06:43:15Z</dc:date>
    </item>
  </channel>
</rss>

