1 2 3 Previous Next 42 Replies Latest reply: Mar 31, 2014 8:22 AM by FreescaleTools_and_Software RSS

Freescale Freedom Development Platform (Questions and Answers)

FreescaleTools_and_Software Level 9

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.


  • 1. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    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.

     

     


  • 2. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    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.

  • 3. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    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

  • 4. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    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)));

  • 5. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    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

  • 6. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    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.


    TU1.JPG

     

      

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

  • 7. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    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];


  • 8. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    mconners Level 12

    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

  • 9. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    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.

  • 10. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    mconners Level 12

    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

  • 11. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    gert234 Level 1

    I tried creating a PE ADC example, but the AD1_Init generated in AD1.c reads: void AD1_Init(void)

    so your example code MyADCPtr = AD1_Init((LDD_TUserData *)NULL); /* Initialize the device */

    incurs both an argument error and a result void can't be used error.

     

    I looked around a bit, and AD1_Init is actually called by PE initialization. So where do I get MyADCPtr from?

     

    Can you redo the example?

  • 12. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    FreescaleTools_and_Software Level 9

    Hello Gerrit

     

    If you want to produce a simple project using the ADC with Processor Expert,

    I would recommend to download the KL25 SampleCode V4 on Freescale website HERE (direct download link),

    as new release now include a project example, called TPM Demo, featuring the ADC peripheral.

     

    - Extract the package

    - Launch CodeWarrior 10.3

    - Right-clik in the Codewarrior Project Explorer Panel

    - Choose Import, General, Existing Projects into Workspace, Browse directory ... Kinetis-L Sample Code

    - Select TPM Demo PE then Finish

     

    If you want to access the ADC parameters, used for this project, double-clik on ProcessorExpert.Pe and Select ADC0 in the component panel.

     

    Tricks : In Codewarrior, if you have lost some windows or if you simply want to reorganize your views, simply select "Windows", "Reset Perspective ..."

     

    PS: don't hesitate to share with the community if this answer was helpfull to solve your issue

  • 13. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    gert234 Level 1

    Thanks, I'll review the TPM Demo. I was experimenting last weekend, and used Processor Expert to set up sampling on two pins. Looked at the code it generated and was able to invoke it and achieve correct 12b sampling at 33 kHz both inputs, purely in a software loop on the FRDM-KL25Z. Pretty impressive.

     

    I'm now going to switch from FRDM-KL25Z to KL05Z to be closer to final production part, so if you happen to be creating another example, would be nice to have it for the KL05Z as well.

     

      regards, Gerrit

  • 14. Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
    Avinesh Level 3

    QUESTION?

     

    i started using the frdm-kl25z from the freescale, i had followed the instruction given on the FRDM-KL25Z user mannual, and the opensda primilinary mannual, now i got strucked in the opensda mode. my problem is i can able to enter the BOOTLOAD mode, but can't able to enter to the opensda (FRDM-KL25Z) mode for application, and i done the basic instruction which has given in the opensda user mannual and loadded the .SDA application by copying and past on the bootload drive, when ever i unplug the usb and inserted again it is not at all responding, even the led which is on board also not on,,,

     

    Did anybody know this problem, what should i do for this board to enter the normal execution,,,,

1 2 3 Previous Next