Draft: Programming the MC HCK

My first MC HCK
Overview
The MC HCK is so tiny that you can easily carry one with you and program a bit when you’re bored. At least I do so.
Useful documents
Data Sheet: http://cache.freescale.com/files/32bit/doc/data_sheet/K20P32M50SF0.pdf?fpsp=1
Reference Manual: http://cache.freescale.com/files/32bit/doc/ref_manual/K20P48M50SF0RM.pdf?fpsp=1
Application Notes etc: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K20_50
Cortex™-M4 Devices Generic User Guide: http://infocenter.arm.com/help/topic/com.arm.doc.dui0553a/index.html
Library support status: https://github.com/mchck/mchck/wiki/Status
I haven’t used mbed or Arduino before but it in the future it may be possible to use their software libraries too. For now it will be a bit more low level.
Assessing the USB serial interface on the PC
Linux
Run dmesg to find the correct device:
[chris@thinkpad ~]$ dmesg
...
[470198.346134] usb 2-1.1: new full-speed USB device number 13 using ehci-pci
[470198.433248] usb 2-1.1: New USB device found, idVendor=2323, idProduct=0003
[470198.433257] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[470198.433262] usb 2-1.1: Product: hello world
[470198.433266] usb 2-1.1: Manufacturer: mchck.org
[470198.433269] usb 2-1.1: SerialNumber: ffff00500023001124404e45
[470198.433925] cdc_acm 2-1.1:1.0: ttyACM3: USB ACM device
[chris@thinkpad ~]$
Use screen to open the serial port:
[chris@thinkpad ~]$ sudo screen /dev/ttyACM3
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
[screen is terminating]
[chris@thinkpad ~]$
Windows
To be continued...