beekit

Mariano Alvira edited this page Jan 29, 2013 · 1 revision

Econotags with Freescale Beekit

Getting started:

  • A. Check for FTDI drivers
  • B. Install Beekit
  • C. Install IAR
    • get activation code
  • D. Build a test example
  • E. Erase the econotag
  • F. Program the econotag with TestTool

A. Check for FTDI drivers

The Econotag contains a two channel USB to general purpose controller chip --- the FTDI FT2232H. You will probably need to install the FTDI driver for this controller.

1. Plug the Econotag into the computer

2. Go to Settings -> Control Panel -> System -> Hardware Tab -> Device Manager

Navigate to "Usiversal Serial Bus contollers and expand it. You should see "USB Serial Converter A" and "USB Serial Converter B". If you do, double click one of those. It should indicate that the manufacturer is FTDI.

Additionally, if you remove the econotag, these two devices should disappear.

If you do not have these, proceed to step A.3. "Install the FTDI driver"

3. Install the FTDI D2XX Driver

Follow the directions at http://www.ftdichip.com/Drivers/D2XX.htm

B. Install BeeKit

BeeKit is a code framework generator and hardware library provided from Freescale. It generates skeleton code and an IAR workspace that you can then use as the base for your projects.

Download and install it here.

You will need a Freescale account to download Beekit.

D. Build a test example

1. Run Freescale BeeKit, Choose a Codebase

Follow the directions under "Getting Started". The most important step is selecting your Codebase. You can select any of the ARM7 codebases.

You'll have to read the Freescale docs to understand the differences between: BeeStack, BeeStack Consumer, MAC, SMAC, and SynkroRF.

Each code base has different examples.

For the remainder of this example, select codebase "ARM7 SMAC"

2. New Project.

Go to File -> New Project. You will see a list of projects to generate.

We will select "Generic Application"

This will export a "Solution" (a directory that will contain the example code with an IAR workbench).

Choose MC13224 over MC13226 when prompted. Choose User Defined target when asked for what hardware you are building for.

NOTE: these steps have simply configured BeeKit with information but nothing useful has actually happend yet!

3. Export your Solution

To create the code, you need to now export your solution.

Go to Solution -> Export and Open Solution in IAR EWB.

This will generate the code you configured in set 2. and launch IAR with a preconfigured build environment.

4. Build, Edit, Test

Step 3. should have launched the IAR IDE. Here you can build and edit your code.

On the upper right should be a green play button. This should build your code and create a .out file in the "Output" directory.

E. Erase your Econotag

Your econotag must be erased to load code on to is with Freescale TestTool.

To erase an econotag, short JP16 (perhaps with a pair of tweezers). While shorted, press the reset button. Wait 2 seconds. Remove the tweezers and press reset again.

The econotag is now erased and ready for new code.

F. Program the Econotag with TestTool

1. Click the black square with the "32" on it.

Select the firmware to load at option 2. Browse to your .out file.

2. Set Crystal Trim

Use Coarse Tune: 1b

Fine Tune: 7

2. Select the COM port

It's probably the second one.

4. press the reset button

Test tool will prompt you to press the reset button. Do so. You should see messages and the progress bar go to conclusion. When you press reset the econotag will now be running your code.

More Advanced topics

  • Overview
  • OpenOCD for windows
  • GDB for windows
  • Using JTAG with IAR debugger