<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis Microcontrollers中的主题 Re: TWR-K70P120M demo code</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/1636404#M64969</link>
    <description>&lt;P&gt;Hello NXP Experts&lt;/P&gt;&lt;P&gt;I need a demo code for BLDC control of Motor (traphezoidal control) Kindly share it for MCUKV31F512 model.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 16:01:32 GMT</pubDate>
    <dc:creator>Mansoorshaik</dc:creator>
    <dc:date>2023-04-19T16:01:32Z</dc:date>
    <item>
      <title>TWR-K70P120M demo code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920186#M53719</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;I have twr-k70f120m&amp;nbsp;and twr-ser&amp;nbsp; boards. At first I tested the democode which was already in the board and it was working fine. I downloaded codewarrior v10.2.2&amp;nbsp;and erased the chip to flash the new code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82141iCE3CAB465E849735/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I erased and ran the code in debug mode and the code was executed.&lt;/P&gt;&lt;P&gt;Now if I again flash the demo code into the&amp;nbsp; chip the code is not working/executing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82266iCF1CDC9452B140D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to again flash the demo code which had the #memory game, accelerometer, touch led on/off.&lt;/P&gt;&lt;P&gt;Can anyone please tell me how to flash it and why the board is not working even after the code flash is successful (image 2)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also the reset led (D2) is partially on all the time and it glows brightly when I press the reset button. Is it the normal behavior or is there anything wrong with the board?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 12:19:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920186#M53719</guid>
      <dc:creator>vibhu</dc:creator>
      <dc:date>2019-08-29T12:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70P120M demo code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920187#M53720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vibhu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, I recommend you to download the latest version of CodeWarrior IDE for Kinetis MCUs which is CW 11.1. You can download it from the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/development-software/codewarrior-development-tools/codewarrior-legacy/codewarrior-for-mcus-eclipse-ide-coldfire-56800-e-dsc-qorivva-56xx-rs08-s08-s12z-11.1:CW-MCU10"&gt;https://www.nxp.com/design/software/development-software/codewarrior-development-tools/codewarrior-legacy/codewarrior-for-mcus-eclipse-ide-coldfire-56800-e-dsc-qorivva-56xx-rs08-s08-s12z-11.1:CW-MCU10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, you can use the drivers and bare metal examples for TWR-K70F120M from the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC"&gt;https://www.nxp.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Felipe&lt;/P&gt;&lt;P&gt;&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&gt;&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, 29 Aug 2019 21:36:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920187#M53720</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-08-29T21:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70P120M demo code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920188#M53721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. I downloaded the latest version of the CodeWarrior as mentioned by you and also I downloaded the&amp;nbsp;KINETIS_120MHZ_SC. I followed the readme given inside the build for cw which I have attached. I imported the project and gave build as mentioned in point number &lt;STRONG&gt;4&lt;/STRONG&gt; but there are no console prints for building or whether it has built.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I continued to step &lt;STRONG&gt;5&lt;/STRONG&gt; and it is throwing error while debugging.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84424iA3D80267D688C5B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I selected the above configuration OSJTAG.&lt;/P&gt;&lt;P&gt;I got an error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84459iA8CFAA1FCDB2AEC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I re-selected the configuration to PnE U-MultiLink.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture3.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84592iB8F31FF652D74F88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture3.PNG" alt="Capture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But again I got the same error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture4.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84425i0D5CC50047DBB0CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture4.PNG" alt="Capture4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing seems to work. Where am I possibly wrong ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to program in keil also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help :smileysad:&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vibhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 12:05:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920188#M53721</guid>
      <dc:creator>vibhu</dc:creator>
      <dc:date>2019-08-30T12:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70P120M demo code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920189#M53722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vibhu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is your device being enumerated? It should look as follows:&lt;/P&gt;&lt;P&gt;&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/84781i48ED34B0625A1B57/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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, please make sure your project compiles correctly, to do this you need to create your workspace into the Kinetis_SC folder. Just as the readme you mentioned indicates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is likely that the project shows some errors when trying to build it. Please do as follows in the same image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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/84827iA347385652B90BFA/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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that you shouldn’t have any issues to build the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to debug I receive the following message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84865iEB275AC85DB0AF74/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This tells me that I need to update the firmware of OSJTAG. To do this I need to connect my board in bootloader mode. Please follow the next steps in order to do the update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Disconnect you board.&lt;/P&gt;&lt;P&gt;-Place a jumper in J10 (please check the following snippet from &lt;A href="https://www.nxp.com/docs/en/user-guide/TWRK70F120MUM.pdf"&gt;User Guide&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;-Connect the board again.&lt;/P&gt;&lt;P&gt;-Click OK in the Confirm message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84919iC3E89245CFEC7839/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the firmware has been updated you need to go back to debugger mode, to do this you should do the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Disconnect you board.&lt;/P&gt;&lt;P&gt;-Remove the jumper in J10.&lt;/P&gt;&lt;P&gt;-Connect the board again.&lt;/P&gt;&lt;P&gt;-Click OK in the Confirm message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After following this steps I was able to flash my TWR-K70F120M. Please let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85019i9547B3B4C52E2869/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Felipe&lt;/P&gt;&lt;P&gt;&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&gt;&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, 30 Aug 2019 17:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920189#M53722</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-08-30T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70P120M demo code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920190#M53723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You for the help.&lt;/P&gt;&lt;P&gt;It was giving errors and was not able to build because it was inside two sub folders. I copied it into desktop and tried the way you told and it worked like a charm :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Aug 2019 05:47:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/920190#M53723</guid>
      <dc:creator>vibhu</dc:creator>
      <dc:date>2019-08-31T05:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70P120M demo code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/1636404#M64969</link>
      <description>&lt;P&gt;Hello NXP Experts&lt;/P&gt;&lt;P&gt;I need a demo code for BLDC control of Motor (traphezoidal control) Kindly share it for MCUKV31F512 model.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 16:01:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70P120M-demo-code/m-p/1636404#M64969</guid>
      <dc:creator>Mansoorshaik</dc:creator>
      <dc:date>2023-04-19T16:01:32Z</dc:date>
    </item>
  </channel>
</rss>

