Best OpenOCD JTag interface for TWR-K70F120M

Hi!

I’m a newbie in embedded development, I’m going to buy a TWR-K70F120M.

I’ve seen that TWR-K60 boards are supported by OpenOCD, is the TWR-K70F120M supported too?

I’m going to develop on windows 7, using some open-source toolchain (yagarto I suppose).

Which is the best JTag interphace I can buy, meaning which is best supported by OpenOCD?

Thanks!

Pyper

Hopefully Spen will confirm:

  • - You don’t need to buy any additional hardware. The TWR-K70 has a MC9S08JM60 OS (open-source) JTAG USB interface built in. The quick-start guide for the K60 doesn’t exactly say what the interface is, but the chip looks the same in the picture. :slight_smile:
  • - The K70 board does have a 20 pin Debug+ETM connector. [[P&E micro](http://www.pemicro.com/products/product_processor.cfm?family=16) provides commercial support for Freescale products, Kinetis included. Any of their JTAG interfaces would probably work out of the box with that interface and the CodeWarrior IDE. I doubt these will be supported by OpenOCD anytime soon.[/*]
  • - (not recommeded - mentioned only for completeness) It looks like you could roll your own adapter cable if you wanted to use something like the [[USB-OCD-Tiny](https://www.sparkfun.com/products/8278) with the 20-pin JTAG port. The only potential advantage of this would be speed in programming and single-stepping. (although it doesn't appear that Spark-Fun carries the ARM-USB-Tiny-H; perhaps I overlooked it).[/*]
  • - Trace information is also available via the 20 pin connector. But you get into some serious $$ there, at least by hobbyist standards.
  • [/list]

    -Hugh](https://www.sparkfun.com/products/8278)](PEmicro - 40+ years innovating in the embedded systems space. Flash Programmers, Cloud-based, Automated, Gang Programmers, and more...)

    I will try first using the built in usb interphace then…

    Thanks for the info :slight_smile:

    To be honest at the moment i know very little about the freescale offering.

    According to our docs the OSJTAG is supported, how well i do not know.

    Not quite related but I have received a Freedom board and support for that is planned, not that interested in the OpenSDA stuff rather the CMSIS-DAP that it also supports.

    Cheers

    Spen

    I got the board, and succeeded in compiling openocd 0.6.1 on windows with osbdm support.

    I got it connected to the board and made a dump of the current flash contents, so it seems it’s working :slight_smile:

    Not done any test on flash writing or debugging still…

    UPDATE: I got it correctly debug my application using gdb server mode. Everything seems correctly working (resetting, image loading, step by step, breakpoints, memory display, etc…), apart from that: when application is resumed, and no breakpoint anywhere, it seems there is no way to halt it. But I don’t know, that may be a problem in eclipse, in gdb, in openocd, whatever… I need to test some more.