9 years, 6 months ago.

How to program or debug the design to the FRDM-K64F if I use Kinetis Design studio?

I use Kinetis Design studio to make the design for FRDM-K64F. Can I still use the micro USB port in the board to program the design? And how can I debug the design?

Thanks in advance.

Question relating to:

The Freedom-K64F is an ultra-low-cost development platform for Kinetis K64, K63, and K24 MCUs.

Thanks both of you. Finally, the problem is fixed. The reason is the firmware in the K64F is out of data. After I program the latest firmware into the board, the problem is fixed.

posted by Jocab Li 28 Oct 2014

2 Answers

9 years, 6 months ago.

Hi,

this link can help you http://mcuoneclipse.com/2013/04/27/debug-external-processors-with-usbdm-and-freedom-board/. It is about freedom boards, codewarrior and another debugger. It provides some information which should answer your question.

Regards,
0xc0170

Thanks for reply. I follow the Kinetis design Studio v1.1.1 user guide, the section Debugging an embedded application. http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KDS_IDE&fpsp=1&tab=Documentation_Tab

FRDM-K64F has CMSIS-DAP firmware, so I follow using OpenOCD debug interface. Then I connect the micro usb cable to J26 SDAUSB port in the board.

When I start debugging, I always confront the error :

Quit (expect signal SIGINT when the program is resumed) Exception condition detected on fd 0 Quit (expect signal SIGINT when the program is resumed) Quit (expect signal SIGINT when the program is resumed) error detected on stdin

Do you know why?

Thanks.

posted by Jocab Li 27 Oct 2014
9 years, 6 months ago.

Hi I've been following mcuoneclipse.org and Eric's style is great, however he has covered a lot of different environments. For KDS 1.1.x make sure its a KDS project which would put the examples in this tree https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/KDS I've wasted a lot of time trying to follow other examples that are using other projects and other compilers (IAR & Keil & CW).

My recent experience is that if you can stitch together an mbed.org project - its really productive and fast. However like anything mbed.org hits limits, and then I find the environment hard work to learn the nuances of the editors and source control. If mbed.org could be sync with Eclipse/Kepler at that point it would be fantastic. Possibly through .git repositories? KDS 1.1 on eclipse kepler with Processor Expert is fantastic - when you are in the zone of stability - and again workability of libs. Processor Expert is a starting point for some basic components - especially useful for navigating a basic driver to the hardware. However I back up regularly, and I've had to regress to an earlier release when something (maybe me!) gets confused in the KDS environment, The connection with the segger JTAG/OpenOCD can also get confused and I restart KDS. KDS / Eclipse (when in its stablity zone) - IMHO is a fantastic productive editor and scales for distributed projects. I've been using KDS 1.1.1 directly with FRDM-K20 and mbed.org with FRDM-K25 & FRDM-K64. K25 was nice as their was a prototype env I could pull together fast. K64 was the first board I used, and at the time I couldn't get the ethernet lib going.

Question to Martin - is there a path (or plans) to exporting an mbed project easily to an eclipse env? Are the compiler chains compatible between mbed and KDS/Eclipse? Many thanks

It could be, just need a proper template file for eclipse. I made it for my project generator project, https://github.com/0xc0170/project_generator_mbed_examples

you can export blinky mbed demo to eclipse project based on makefile, even with files present in the workspace. Something similar can be added to mbed.

If you want to stay offline, use various libraries, something like project generator can help you to build your own application based on modules (it's called records there).

Regards,
0xc0170

posted by Martin Kojtal 28 Oct 2014