So i made this valentine twinkle board, using the mkl05z freescale mcu. The board is fairly simple with 20 LEDs, connected in pairs each pair having two LEDs reverse biased to each other. all pairs are then tied to a row driver. I use PORT B, PIN 0 for the row driver, and PINs 1 to 10 for the columns, each driving a pair of LEDs. then i have 5 lines connecting to the SWD debugger: 3V3(VCC), SWDIO, GND, RESET,CLK. These pins allow for powering the board as well as flashing the firmware.
I tried to use my usual opensource setup of GNUARM toolchain arm-none-eabi-gdb and OpenOCD but… I could not get OpenOCD to work with this one. I switched to the USBDM firmware on the FRDM-KL25Z board and installed USBDM Debug server.
I used Processor Expert to generate the code, added a few components, added a few custom sources here and there, and it worked (Not out of the box though but quite interesting learning process…).
First I had to use a circuit design and simulation suite to make a package for the micro-controller chip, I use Labcenter Electronics’ Proteus™ (ISIS package). This is a windows application that I run via Wine. Then I use this chip design package, with all the pins labelled properly and connect all the other components like LEDs and debug and power connectors. ISIS comes with a huge database of such component models as resistors, capacitors, LEDs and all the usual suspects of circuit design. I only have to make packages for special or newly acquired components.Continue reading “kl05z kinetis mcu custom circuit and Processor Expert Valentine LED twinkle”