<?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: kinetics k40 and IAR in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173205#M1322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can also chime in on this. To use OSJTAG, you must have IAR 6.10 installed. If you have an earlier version, then you'll need an external debugger like the JLink.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the sample code projects are created in IAR 6.10, so opening the projects up in IAR 5.50 corrupts some project settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OSJTAG is very similiar in features to OSBDM. The reason the name is different is because Kinetis uses JTAG for the debugging interface, while Coldfire uses BDM. There is no "BDM" on Kinetis, so it'd be confusing to call it that for Kinetis. But the same general ideas apply, but the drivers are different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You choose to use OSJTAG in an IAR proejct by right clicking on the project name and selecting Options. Then go to the "Debugger" category, and on the "Setup" tab, under "Driver", select "PE micro". To use a Jlink instead, select "J-Link/J-Trace".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally if you are using IAR 6.1 and still having OSJTAG or programming problems, you can look at both the Kinetis Quick Reference Guide (Appendix A): &lt;A href="http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and Chapter 8 of the MQX Quick Start Demo Lab: &lt;A href="http://cache.freescale.com/files/32bit/doc/support_info/TWRK40X256QSDLAB.zip" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/support_info/TWRK40X256QSDLAB.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for trying out Kinetis!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 06:10:06 GMT</pubDate>
    <dc:creator>anthony_huereca</dc:creator>
    <dc:date>2011-01-26T06:10:06Z</dc:date>
    <item>
      <title>kinetics k40 and IAR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173201#M1318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use example code for kinetics k40 in IAR workbench, when i debug, it always say "can not connect J-link via USB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have kinetic k40 , connected to laptop via USB and OSBDM is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jan 2011 11:04:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173201#M1318</guid>
      <dc:creator>harrys</dc:creator>
      <dc:date>2011-01-01T11:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: kinetics k40 and IAR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173202#M1319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running the same configuration, and get the same results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I am able to tell, the current&amp;nbsp;IAR (6.1) only supports flash/debug&lt;/P&gt;&lt;P&gt;via a (Segger) J-Link connected to the JTAG header (0.05" pin version) on the top of the K40 board.&lt;/P&gt;&lt;P&gt;If you closely view the videos showing IAR working with the K60/K40 boards, you&lt;/P&gt;&lt;P&gt;will notice the Yellow IAR J-Trace debugger has a cable going into the 0.05" JTAG&lt;/P&gt;&lt;P&gt;connector on the top of the Kinetis CPU board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ditto for Code-Sourcery's IDE using&amp;nbsp;G++/GCC - they only currently support J-Link, not OSBDM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only product that I can see that uses the OSBDM directly is Code Warrior.&lt;/P&gt;&lt;P&gt;But the official CW MCU 10.1 release is still in Beta,&lt;/P&gt;&lt;P&gt;and requires special authorization from a Freescale or Arrow/Avnet FAE&lt;/P&gt;&lt;P&gt;to get access to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;If you have a "stock" J-Link with the 0.1" header connector, you can purchase an&lt;/P&gt;&lt;P&gt;adapter cable from Segger which will convert the 0.1" connector to the newer, smaller 0.05" JTAG headers&lt;/P&gt;&lt;P&gt;used on all the Kinetis Tower boards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jan 2011 05:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173202#M1319</guid>
      <dc:creator>WayneDuq</dc:creator>
      <dc:date>2011-01-02T05:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: kinetics k40 and IAR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173203#M1320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds right.&lt;/P&gt;&lt;P&gt;But when I attended the seminar by arrow and freescale&amp;nbsp; and asked them, they said only usb connection is enough , they showed the demo using IAR and OSBDM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I can think now is I am using an evaluation version of IAR 5.4, and I can't get updated to 6.1.&lt;/P&gt;&lt;P&gt;However, you said even 6.1 doesn't work at all, then how arrow guys did that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jan 2011 06:38:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173203#M1320</guid>
      <dc:creator>harrys</dc:creator>
      <dc:date>2011-01-02T06:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: kinetics k40 and IAR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173204#M1321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just attended the Avnet seminar on Kinetis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using IAR 6.0 or IAR 6.1, the K40 and K60 can be debugged via two different ways:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Segger (or IAR) JTAG, using 19-pin 0.05" adapter plugged&amp;nbsp;into JTAG connector on top of processor board.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - OSJTAG using the PEmicro OSJTAG drivers (downloadable off the K40 web downloads),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and then tweak the IAR debugger to use PEmicro on Device1. (It will appear as a "Libusb"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device under Windows Device manager.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that OSJTAG is not the same as OSBDM, so you have to use the PEmicro OSJTAG drivers.&lt;/P&gt;&lt;P&gt;Trying to use OSBDM won't work on the K40/K60 boards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The downside on using OSJTAG, is that it is s-l-o-w.&amp;nbsp; On small executables, it is not&lt;/P&gt;&lt;P&gt;too noticeable. But on large 100-200K exe's, it is very noticeable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as IAR 6.1 not working for you, it sounds like an install issue.&lt;/P&gt;&lt;P&gt;I am running both IAR 5.40 and IAR 6.1 (Kick-start edition), on Windows XP Pro SP2&lt;/P&gt;&lt;P&gt;as well as on Windows 7 Pro&amp;nbsp;(64-bit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I specifically installed them into separate directories, by using the change directory&lt;/P&gt;&lt;P&gt;option during install. I have not had any problems with them co-existing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only other thing I could think of, is if there is some kind of PATH problem in your environment. variables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 32-K limit on the IAR Kickstart is sufficient to do simple projects (ADC, DAC, simple DSP, ...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as CodeSourcery, both the Personal Edition and Standard edition&amp;nbsp;(Fall 2010 editions)&lt;/P&gt;&lt;P&gt;work just fine with the (Segger) JTAG with the 19-pin 0.05" adapter.&lt;/P&gt;&lt;P&gt;CodeSourcery does not support OSJTAG at this point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 08:14:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173204#M1321</guid>
      <dc:creator>WayneDuq</dc:creator>
      <dc:date>2011-01-23T08:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: kinetics k40 and IAR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173205#M1322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can also chime in on this. To use OSJTAG, you must have IAR 6.10 installed. If you have an earlier version, then you'll need an external debugger like the JLink.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the sample code projects are created in IAR 6.10, so opening the projects up in IAR 5.50 corrupts some project settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OSJTAG is very similiar in features to OSBDM. The reason the name is different is because Kinetis uses JTAG for the debugging interface, while Coldfire uses BDM. There is no "BDM" on Kinetis, so it'd be confusing to call it that for Kinetis. But the same general ideas apply, but the drivers are different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You choose to use OSJTAG in an IAR proejct by right clicking on the project name and selecting Options. Then go to the "Debugger" category, and on the "Setup" tab, under "Driver", select "PE micro". To use a Jlink instead, select "J-Link/J-Trace".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally if you are using IAR 6.1 and still having OSJTAG or programming problems, you can look at both the Kinetis Quick Reference Guide (Appendix A): &lt;A href="http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and Chapter 8 of the MQX Quick Start Demo Lab: &lt;A href="http://cache.freescale.com/files/32bit/doc/support_info/TWRK40X256QSDLAB.zip" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/support_info/TWRK40X256QSDLAB.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for trying out Kinetis!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 06:10:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173205#M1322</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2011-01-26T06:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: kinetics k40 and IAR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173206#M1323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amh,&lt;/P&gt;&lt;P&gt;So, the freescale's OSBDM and USBDM support Kinetis now? Can I program and debug a k20 device with this open source tool?&lt;/P&gt;&lt;P&gt;Do you know any limitation?&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 10:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetics-k40-and-IAR/m-p/173206#M1323</guid>
      <dc:creator>cesario</dc:creator>
      <dc:date>2012-03-22T10:56:12Z</dc:date>
    </item>
  </channel>
</rss>

