element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Code Exchange
  • Technologies
  • More
Code Exchange
Blog Freescale Freedom KL25z – Let’s all say “Hello World”
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Code Exchange to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: patkelly
  • Date Created: 25 Mar 2013 2:38 PM Date Created
  • Views 1059 views
  • Likes 3 likes
  • Comments 2 comments
  • coding
  • code_exchange
  • Code Exchange
  • codexstart
  • code
  • ffcex
  • c++
Related
Recommended

Freescale Freedom KL25z – Let’s all say “Hello World”

patkelly
patkelly
25 Mar 2013

http://www.element14.com/community/themes/images/knode/free_kl25z.gifThe Freescale Freedom platform is an ultra-low-cost development platform enabled by the Kinetis-L Series KL0x, KL1x and KL2x energy efficient microcontroller families built on ARMRegistered CortexTm-M0+ processors.

Setting Up Your Board

For this example I used the popular mbed.org integration to program the Freedom board as it is quick and easy to set up plus it’s FREE.

You need to:

  1. Hold down the Reset Button between the two USB Connectors
  2. Plug  one end of your USB cable into your computer and the other in to the USB port labelled SDA on the Board
  3. Once you have done this the KL25z will pop up as BOOTLOADER in your file system
  4. Copy this file from mbed.org to the root of this new drive
  5. Disconnect the USB cable from the board and plug it straight back in again and the drive will now pop up as MBED
  6. Open the drive and click on the MBED.HTM
  7. Login or Sign up and you now have access to all the tools your need to get started with the KL25z

Let’s start coding

Now for the fun part,

  1. Visit mbed.org/compiler and log in if you need to.
  2. Select New > Program and give your program a name e.g. KL25zHelloWorld
  3. The following  “Hello World” Code will be placed into the main.cpp file

#include "mbed.h"

 

DigitalOut myled(LED1);

 

int main() {

    while(1) {

        myled = 1;

wait(0.2);

        myled = 0;

wait(0.2);

    }

}

 

   4. Click Compile and Save the downloaded file (filename.bin) onto the MBED drive on the KL25z Board

   5. Press the Reset Button and you will see the RGB LED Flashing.

 

I hope this helps you get started.


Don’t forget to share your projects

  • Sign in to reply
  • Problemchild
    Problemchild over 12 years ago

    The idea that you can use one of the "standard" development IDE/APIs is really quite a good one.

    Do you know if some one has done this for the Arduino IDE in fact do even need to do much as they already have a

    Arm based Arduino??

     

    Interesting image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fustini
    fustini over 12 years ago

    Nice post - good to see mbed on other platforms and that they released an open source SDK.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube