Close
0%
0%

McSlck

A single layer pcb layout of mchck, with teensyduino support.

Similar projects worth following
A single layer pcb layout for mchck, with teensyduino support.

This winter I've started getting more and more into ARM-stuff. To get some more boards to play with for basically no cost I ordered some free samples of mk20dx128 from freescale.
Not wanting to wait for pcbs, I decided to make some of my own and it turned out to be a simplified single layer version of mchck.

Recently I had some more time to play with them, but writing your own libs for this and that is pretty tedious. The mchck site mentioned teensyduino support so I had a try at it, and well with some minor changes to the init-routines it worked out pretty well.
Since the teensy bootloader isn't open, you need something else to program the boards though, like a bus pirate another mcslck/mchck or anything arduino-compatible (like a teensy, giving Paul a little support).

The github-repos are linked in the instructions below!

The mcslck repo contains a fritzing sketch suitable for homemade pcbs, for a shop to make them they might need some refining. The mchckduino repo provides a patch and a few scripts (with working installer) that makes teensyduino able to compile and upload arduino sketches for mchck (and mcslck) boards.

  • 1
    Step 1

    Get the files from

    https://github.com/mali1741/mchckduino

    and follow the README for teensyduino patching. 

  • 2
    Step 2

    Install the latest fritzing and get the board file from

    https://github.com/mali1741/mcslck

    Happy hacking!

View all instructions

Enjoy this project?

Share

Discussions

roblynn wrote 08/11/2014 at 13:41 point
For those of you interested in using mcslck with the default mchck DFU bootloader, you need to update two files in hardware/teensy/cores/mchck/:
1. Comment out the SCB_VTOR = 0; line in mk20dx128.c
2. Change the origin (to 0x00000c00) and length (to 128K-3K) for the FLASH, in mk20dx128.ld
3. You should also comment out the flashconfig portion of SECTIONS as well since it is not needed.

  Are you sure? yes | no

Marcus de Verdier wrote 08/11/2014 at 18:56 point
Nice work there Rob! With the bootloader working this will finally be a worthy cheapass teensyduino clone. :)

  Are you sure? yes | no

Eric Evenchick wrote 04/02/2014 at 19:30 point
Accidentally deleted my comment about programming using OpenOCD... oops. Bitbanging works, but having debugging with GDB is even better... I wonder if this could be made into an OpenOCD target easily.

  Are you sure? yes | no

Marcus de Verdier wrote 04/02/2014 at 19:38 point
gdb debugging is already supported by the mchck scripts.. so I can't see why not

  Are you sure? yes | no

Eric Evenchick wrote 04/02/2014 at 19:39 point
Didn't know that. I clearly need to read more about the mchck ;)

  Are you sure? yes | no

Marcus de Verdier wrote 04/02/2014 at 19:43 point
mchck is quite awesome, and the board layout they provide is very versatile for its size

  Are you sure? yes | no

Marcus de Verdier wrote 04/02/2014 at 19:45 point
maybe I should add that gdb support works having two mchcks where one is the programmer, like in my pics here, dunno about the bus pirate though, but if you make two boards you're set :)

  Are you sure? yes | no

Mathieu Stephan wrote 04/02/2014 at 17:47 point
are you on the #mchck channel? ;)

  Are you sure? yes | no

Marcus de Verdier wrote 04/02/2014 at 17:49 point
maybe I should be? :)

  Are you sure? yes | no

Mathieu Stephan wrote 04/02/2014 at 18:02 point
perhaps :)

  Are you sure? yes | no

[deleted]

[this comment has been deleted]

Marcus de Verdier wrote 04/02/2014 at 17:51 point
It works as far as I've tested it, though the mchck scripts doesn't use openocd, it's bitbanging all the way!

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates