Recovering the FRDM-K64F Bootloader, or: Cloning the Program of a Microcontroller

The Freescale FRDM-K64F and FRDM-K22F have a different OpenSDA (v2) firmware on it: unlike the earlier (v1), that firmware is open and not protected which is a great thing. However, it has the disadvantage if you use the wrong SWD/JTAG header on your board, the bootloader on the K20 OpenSDA microcontroller is gone 😦

Two SWD Headers on FRDM-K64F Board

Two SWD Headers on FRDM-K64F Board

Continue reading

NeoShield: WS2812 RGB LED Shield with DMA and nRF24L01+

In my earlier post I used a hacked together shield for building a clock based on Adafruit’s NeoPixel/WS2812 (“LED Clock with Kitchen Hot Pan Protector“). The new design supports now 8 parallel data streams, integrated realtime clock and wireless connectivity with the nRF24L01+ module.

NeoPixel Shield for FRDM Boards

NeoPixel Shield for FRDM Boards

Continue reading

Using Keil μVision 5 with Processor Expert

I happily used the Keil v4.71.2.0 μVision tools for a few small projects (see “Using Keil µVision (ARM-MDK) with Processor Expert Driver Suite“) with the ‘lite’ edition (32kByte code size limitation). This weekend I wanted to move to the new v5.12.05 version.

Keil uVision5

Keil uVision5

And there were indeed several things which are different. So this is post is about getting this version getting up and running as the v4.7 one.

Continue reading

Tutorial: FreeRTOS with the Kinetis SDK and Processor Expert

Freescale had announced at FTF back in April this year that they will use Kinetis Design Studio  and the Kinetis SDK for all new Kinetis devices. The switch from CodeWarrior to Kinetis Design Studio (see “Comparing CodeWarrior with Kinetis Design Studio“) was not much of big deal for my projects (although CodeWarrior still has better features), and projects are rather easily portable. However, the move to the Kinetis SDK has been massively disruptive: Before it was easy to move projects from one device to another with Processor Expert, even from S08 to ColdFire to Kinetis. Now with the Kinetis SDK everything is very different. At least Freescale now officially supports FreeRTOS, and for myself as a big fan of that open source RTOS, that was some good news.

Blinking Red LED with FreeRTOS Task using Kinetis SDK, FreeRTOS and Processor Expert

Blinking Red LED with FreeRTOS Task using Kinetis SDK, FreeRTOS and Processor Expert

So in this tutorial I’m showing how FreeRTOS can be used with the Kinetis Design Studio. That makes at least using the Kinetis SDK bit more familiar to me :-).

Continue reading

Engineering Joke of the Week: The Frog

A young engineer was crossing a road one day when a frog called out to him and said, “If you kiss me, I’ll turn into a beautiful princess.” He bent over, picked up the frog and put it in his pocket.

The frog spoke up again and said, “If you kiss me and turn me back into a beautiful Princess, I will stay with you for one week.” The young engineer took the frog out of his pocket, smiled at it and returned it to the pocket.
Continue reading

Cattle and Mountains

Image

Winter made its heavy entry in Switzerland last night, covering my home with 5 centimeter of wet and heavy snow. High areas received up to 1 meter which caused a lot of problems. Instead of sharing that rather unpleasant snow (I am more of the glaring white powderish snow person), I can share how things looked before: Colorful trees with snow-covered mountains in the back, cattle still can have a mouth of green grass. I already guessed on Sunday that this will not last for long…

Cattle and Mountains

Cattle and Mountains

Sumo Robot Sensor Shield

The PCB’s for the Sumo robot (see “New Sumo Robot Assembled, and looking good!“) arrived. It is the ‘production’ version of that shield I have shown in “Sensor and Communication Shield for Sumo Robot” which adds following to the robot:

  1. Ultrasonic module
  2. Bluetooth module
  3. nRF24L01+ module
  4. I2C I/O Expander for 8 extra I/Os
  5. One general purpose I/O header
  6. One general purpose I2C header
  7. Up to 6 infrared distance sensors
Sensor Shield

Sensor Shield

Continue reading

Electrical Race Car Breaks Acceleration World Record

I’m very proud what our students can accomplish: they broke today the previous world record for acceleration in an electrical car:
From 0 to 100 km/h (62.1371 miles/h) in 1.785 seconds 🙂

World Record Acceleration (Source: AMZ Racing)

World Record Acceleration (Source: AMZ Racing)

It only took 30 meters runway to reach 100 km/h :-).

Details: https://www.ethz.ch/en/news-and-events/eth-news/news/2014/11/Grimsel_bricht_Weltrekord.html

Happy Accelerating 🙂