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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Freedom development platform
  • Products
  • Dev Tools
  • Freedom development platform
  • More
  • Cancel
Freedom development platform
Forum Freescale Freedom Development Platform (Questions and Answers)
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Freedom development platform to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 42 replies
  • Subscribers 9 subscribers
  • Views 3819 views
  • Users 0 members are here
  • 32bit
  • low_power
  • cortex-m0+
  • freescale
  • freedom_board
  • Cortex-M
  • microcontrollers
  • kinetis
  • arm_cortex_m
  • cortex
  • arm_cortex
  • kinetis-l
  • microcontroller
  • mcu
  • cortex-m0
  • arm
  • arduino
  • freedom
Related

Freescale Freedom Development Platform (Questions and Answers)

FreescaleTools_and_Software
FreescaleTools_and_Software over 12 years ago

Hello FRDM-KL25Z buyer

 

You are already thousands of customers who ordered this board.

In order to make your life easier, with a single place where to find relevant informations concerning this tool, I will try to collect in this post the answered questions concerning FRDM-KL25Z, found in different places like Freescale community, groups from Element14 Community or anywhere on the web ...

 

I will publish regularly (in the document section from this group) some very instructive tutorials produced by my colleague Erich Styger, which should help you to take in hand FRDM-KL25Z and its software tools (Codewarrior 10.3beta, Processor Expert ...).

 

Don't hesitate to post here your new questions that we can answer it and share it with the community.


  • Sign in to reply
  • Cancel
  • FreescaleTools_and_Software
    FreescaleTools_and_Software over 12 years ago

    QUESTION

    Where are the FRDM-KL25Z Design Package?

    The FRDM-KL25Z Quick Start Guide lists that zip file as part of the additional reference documents available www.freescale.com/FRDM-KL25Z

    It says that it's a "zip file containing all design source files for the FRDM-KL25Z hardware".

    I've only found the pdf with the schematics. I'd like to have the design files as I find it easier to understand and follow the schematics, being able to select lines and components.

     

    ANSWER

    You can download the hardware design source file of FRDM-KL25Z including PCB file (available in OrCad/Allegro formats) at the following link FRDM-KL25Z Product Summary Page

    Select the Downloads option.

     

     


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

    QUESTION

    Does anyone know if the source code for the OpenSDA software is available? 

    Or failing this, a specification of the SDA format to create a compatible module for loading on the KL25 Freedom board?

    A search shows quite a few references but they all seem to be rather thin on technical details.

     

    ANSWER 1

    According to P&E: "We (via Freescale) are planning a release in the next couple of weeks which has an open source version of the bootloader as well as a sample application which can be loaded into the OpenSDA design (a small data logger application)."

     

    ANSWER 2

    You can find the source code for OpenSDA on ARM.com website, which is part of CMSIS-DAP.

    You need to register a silver account ID on ARM.com website, then search the CMSIS-DAP, download the code samples for CMSIS-DAP which also includes the OpenSDA source code.

    CMSIS-DAP Beta 0.01 does include a MK20 project unfortunately it appears to not be possible to build it using the Free version of the KEIL tools.

    It is likely to be the RL-USB component.

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

    QUESTION

    I would like to buy a Kinetis Freedom Board FRDM-KL25ZFRDM-KL25Z which comes with the MKL25Z128VLK4MKL25Z128VLK4 MCU. I also want to buy some units of the MCU and it's respective programmer/flasher, to be able to build some custom circuits.

    But the tool listed as the programmer ( Cyclone Max - Cyclone MAX Product Summary Page  ) seems to have many extra features that I don't need right now. So I would like a cheaper programmer.

    Would the P&E U-MultilinkP&E U-Multilink interface allows me to perform in circuit programming/flashing of the MKL25Z128VLK4 MCU?

     

    ANSWER

    P&E USB Multilink Universal will allow you to perform in circuit USB flash programming of the MKL25Z128VLK4 MCU.

    Then this is just the question of the quantity of pieces that you would like to program and the accessibility/flexibility of the tool.

    Less than 1000pcs to program UMultilink is the right tool and Umultilink FX would be faster which is insteresting for high memory sizes.

    More than 1000pcs to program in a classical factory assembly chain, it would be recommanded to choose a standalone flash programming tool, embedding its own memory or an sd-card port to store the project code (no computer needed) and a simple button to push to avoid handling errors.

    Please find below a long list of Hardware Debuggers and Programming tools from 3rd parts vendors compatible with Freescale MCUs

    http://www.freescale.com/webapp/sps/site/overview.jsp?code=HARDWARE_INTEF

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

    QUESTION

    You are writing some datas to flash memory (eeprom emulation) using FRDM-KL25Z.

    You want to check what data you wrote (since you don't have LCD).

    Is there a way to check the data that you wrote using codewarrior IDE ?


     


    ANSWER

    You can use Processor Expert to read and write the flash:

    First, you have to reserve some Flash pages for data storage. Do that in the CPU Build Options, Reduce the Flash for code, for example :

     

    1.bmp

     

    Then, configure those pages to be used by Flash component:

     

    2.bmp

     

     

    Then, enable the Flash methods you need:

    3.bmp

     

     

    Now, you can save the data in the code:

     

    Read:

     

    FLASH1_Read(FLASH1Pointer,0x1F000, &savedData.red, sizeof(savedData));

       do {

                   FLASH1_Main(FLASH1Pointer);

           OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);

       } while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));

     

     

     

    Erase one page, in case is not 0xFF the locations to write:

     

    FLASH1_Erase(FLASH1Pointer, 0x1F000, 1024);

                   do {

                                  FLASH1_Main(FLASH1Pointer);

                                  OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);

                   } while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));

     

     

     

    And then write the data in Flash:

     

    FLASH1_Write(FLASH1Pointer, FromPtr, 0x1F000, Size);

     

                   do {

                           FLASH1_Main(FLASH1Pointer);

                           OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);

                   } while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));

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

    QUESTION

    You would like to use the KL25 Freedom board and run the RTC.

    But the clock sources for the RTC are RTC_CLKIN or 32KHz crystal, which need external component or the LPO 1KHz signal.

    Is there a way to get 1 second time base with the LPO as you don't know how to configure the RTC to manage this not 32KHz frequency ?

     

    ANSWER

    Download the FRDM-KL25Z Sample Code Package available on Freescale website www.freescale.com/frdm-kl25z

    Extract this compressed file and follow the path kl25_sc \ klxx-sc-baremetal \ src \ drivers \ rtc

    You will find an example of RTC configuration

     

    Additional driver examples available : adc16,  cmp,  i2c,  llwu,  lptmr,  mcg,  pmc,  prelim_flash,  rcm,  smc,  uart

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

    QUESTION

    You need to use the Freescale FRDM-KL25Z Freedom Board to run a small robot project.

    You need 2 PWM channels to run 2 motors, 2 to 3 channels to send 10 us trigger pulse for Ultrasonic sensors and 3 to 5 channels to capture the return pulses from Ultrasonic sensors.

    You are  having trouble setting up the timer module TPM2  on Codewarrior 10.3 to have 2 PWM channels with 4kHz to control the duty cycle of the motors ( L293D)

    How to get the right set-up for the timer ?

     


    ANSWER

    If you are using different channels from the same TPM and you want 4 kHz in both, use the same Timer Unit in channel 0 and channel 1.

    The TimerUnit component uses different channel for your configuration, you can see this in the image.


    imageimageTU1.JPG

     

      

    This configure the same frequency of 4kHz in channel 0 and channel 1 but you can set the duty cycle for each channel.

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

    QUESTION

    You are looking for a simple Processor Expert example to make a single channel conversion with the ADC ?

     

    ANSWER

    You can use the typical example code below or download the FRDM-KL25Z Sample Code Package available on Freescale website : www.freescale.com/FRDM-KL25Z

    There is a driver example for adc16 in the folder : kl25_sc \ klxx-sc-baremetal \ src \ drivers \

     

    AD1_TResultData MeasuredValue[SAMPLE_GROUP_SIZE];

    LDD_TDeviceData *MyADCPtr;

    LDD_TError Error;

     

    MyADCPtr = AD1_Init((LDD_TUserData *)NULL); /* Initialize the device */

     

    Error = AD1_SelectSampleGroup(MyADCPtr, 1U);

    Error = AD1_StartSingleMeasurement(MyADCPtr); // Start continuous measurement

    while (!AD1_GetMeasurementCompleteStatus(MyADCPtr)) {}; // Wait for conversion completeness

    Error = AD1_GetMeasuredValues(MyADCPtr, (LDD_TData *)MeasuredValue);  // Read measured values

    FsrReadings[1] = MeasuredValue[0];


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

    I ordered one of these when it first came out (actually pre ordered) and when I received the item it had all the headers in bags for me to solder on.

     

    I liked the board so I ordered another, it seemed that the base board did not come with the headers, so I ordered the FRDMKL25Z Basic Bundle, and it came with single row headers, not the dual row headers. You guys need to make this clear because the

    header pins have different signals side by side, now I have to research the proper headers and purchase those, which it looks like like are about $10 more plus shipping.

     

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • FreescaleTools_and_Software
    FreescaleTools_and_Software over 12 years ago in reply to mconners

    Hello Michael

     

    If you really need the dual row headers, I have posted the reference of the dual row headers HERE (I have checked the pn ordering samples).

    My colleague Erich has posted HERE a nice document detailing his experience with those headers and an Arduino Datalogger Shield.

    Element14 has posted HERE a document with the PIN Layout.

     

    Correct me if I am wrong, but in my understanding, just the external rows are necessary to warranty the compatibility with Arduino shields, so Element14 choice to provide single row connectors seems justified.

     

    Even if it embeds many features innovative and comprehensive, FRDM-KL25Z must stay cheap to be accessible to a large number of customers (10$ seems to be the target cost). To achieve this goal, Freescale has decided to remove the connectors from in the orginal version of the board.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mconners
    mconners over 12 years ago in reply to FreescaleTools_and_Software

    After I received the board and saw they were single row headers,I found the headers that  I needed, I just thought that was what I was buying when I bought the basic bundle, I don't really care about arduino shield compatibility, and I don't mind paying extra for the headers. I would have preferred to save the money on the basic bundle and put it towards the headers and not have to pay an additional shipping charge. Perhaps a bundle with dual row headers would be a nice offering as well.

     

    BTW, I like the board, that's why I bought multiples, I just didn't seem clear from this page http://www.newark.com/jsp/search/productdetail.jsp?SKU=46W9880 that those were the single row headers. After I received the package and looked really close at the photo I see that those are single row headers.

     

    I'm not really unhappy about any of this, just a caution to those buying in the future, and it might be nice in the decription of the bundle to mention that those are the single row headers, and a link from the accessories section on the page to the two row headers would be nice.

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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