Tutorial: Web Server with the ESP8266 WiFi Module

It has been a while since my first post about the ESP8266 (see “Cheap and Simple WiFi with ESP8266 for the FRDM Board“). The ESP8266 is a new inexpensive ($4.50) WiFi module which makes it easy to connect to the network or internet. Finally this week-end I have found the time to write up a tutorial:
how to implement a WiFi web server for the ESP8266 WiFi module and the Freescale FRDM-KL25Z board:

WSP8266 Web Server

WSP8266 Web Server

FRDM-KL25Z with ESP8266 WiFi Module

FRDM-KL25Z with ESP8266 WiFi Module

Continue reading

Advertisements

Adding ‘Show in Windows Explorer’ to Eclipse

In CodeWarrior there was a very useful feature in the CodeWarrior Projects view: with a context menu I can open that folder/file in Windows Explorer:

Show In Windows Explorer in CodeWarrior Projects View

Show In Windows Explorer in CodeWarrior Projects View

However, this feature is missing in Eclipse, so how to add this functionality?

Continue reading

Tutorial: Playing MP3 Files with VS1053B and FRDM Board

I want to make some noise with this post!!! This tutorial is about adding music and sound capabilities to the Freescale Freedom board, and to have a lot of fun with it :-). I need this ability for a larger project working on for a while. But I thought I share that sub-part how to play sound files. So with this tutorial I can turn my Freescale Freedom board into a music or sound player :-). And adding sounds is a cool way for any project, and as the music is stored on an SD card it fits easily hours of music or sounds.

MP3 Player with FRDM-KL25Z

MP3 Player with FRDM-KL25Z and Adafruit Music Maker MP3 Shield

Continue reading

Engineering Joke of the Week: The Genie

Three men: a project manager, a software engineer, and a hardware engineer are helping out on a project. About midweek they decide to walk up and down the beach during their lunch hour. Halfway up the beach, they stumbled upon a lamp. As they rub the lamp a genie appears and says “Normally I would grant you three wishes, but since there are three of you, I will grant you each one wish.”
Continue reading

McuOnEclipse Component Sources in Dedicated GitHub Repository

From time to time it is good to do some cleanup work: what has grown organically sometimes needs some cuts and moves. The same applies to the McuOnEclipse GitHub repository (https://github.com/ErichStyger/mcuoneclipse) which has grown to 522 MByte, 8364 files and 1444 folders. I already moved out the Processor Expert component releases (see “McuOnEclipse Releases on SourceForge“). Time to cleanup and move something else: the Processor Expert component sources.

McuOnEclipse_PEx

McuOnEclipse_PEx

Continue reading

Updated McuOnEclipse Components: USB for KL24Z, FatFs v0.10c, Shell Backspace and FreeRTOS Trace Hook Configuration

I have received several requests to post a quick note when there is a new release (16-Nov-2014) of the McuOnEclipse components on SourceForge (see “McuOnEclipse Releases on SourceForge“). I have published today a new release, and with following major improvements:

  1. USB support for Kinetis KL24Z
  2. FatFs now features the latest Elm-Chan v0.10c release
  3. Backspace support in Shell
  4. Configuration item in FreeRTOS for Percepio Trace Hooks
McuOnEclipse SourceForge

McuOnEclipse SourceForge

Continue reading

Tutorial: How to Erase the FLASH with the GNU GDB debugger

I have several applications where I store application specific information in the microcontroller FLASH memory (see “Configuration Data: Using the Internal FLASH instead of an external EEPROM“). I have run into issues recently with the Segger J-Link GDB server as by default it does *not* erase all the FLASH memory. So the question is: How can I erase all (or part) of the FLASH memory with GDB (e.g. in Kinetis Design Studio or in Eclipse)?

Memory Monitor with Erased Flash

Memory Monitor with Erased Flash

Continue reading

Engineering Joke of the Week: The Train Ticket

On a train to a large computer convention, there was a bunch of engineers and a bunch of managers. Each of the managers had a train ticket. The group of engineers had only ONE ticket for all of them. The managers started laughing, figuring the engineers were going to get caught and thrown off the train.

When one of the engineers, the lookout, said, “Here comes the conductor,” all of the engineers went into the bathroom. The managers were puzzled.
Continue reading

Adding Processor Expert to Atollic TrueSTUDIO

For me as an Eclipse and Processor Expert lover, a press release that Atollic supports Processor Expert catched my eye :-). So there is yet another way to use Processor Expert: with a commercial Eclipse IDE provided by Atollic (http://www.atollic.com/).

Atollic Splash Screen

Atollic Splash Screen

Time to check it out…

Continue reading

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