• RELEVANCY SCORE 4.12

    DB:4.12:Flash Timeout Error On Frdm-Kl25z Using Jlink With Keil. Cannot Find Appropriate Flash Programming Algorithm. 38





    When I try to load my code to flash on my KL25Z, I get a flash timeout error. The project compiles, and JLink recognizes the device. I am using uVision 5, and JLink v4.78d.

    I believe the problem arises from using the wrong programming algorithm, but I can't figure out where to get the right one.

    -------- Here are my current flash options and settings ----------

    -------- Here are my current available flash programming algorithms ----------

    -------- Here is the compile output --------

    Rebuild Project 'mytest3' - Target 'KL25Z128 - Flash'

    compiling mytest3.c...

    compiling uif.c...

    compiling alloc.c...

    compiling assert.c...

    compiling io.c...

    compiling memtest.c...

    compiling queue.c...

    compiling stdlib.c...

    compiling nmi_isr_handler.c...

    compiling start.c...

    compiling sysinit.c...

    compiling system_MKL25Z4.c...

    assembling startup_MKL25Z4.s...

    compiling cmp.c...

    compiling llwu.c...

    compiling lptmr.c...

    compiling mcg.c...

    compiling pmc.c...

    compiling rcm.c...

    compiling rtc.c...

    compiling smc.c...

    compiling uart.c...

    compiling Serial.c...

    compiling Retarget.c...

    linking...

    Program Size: Code=7164 RO-data=1844 RW-data=40 ZI-data=0

    After Build - User command #1: C:\Keil\\ARM\ARMCC\bin\fromelf.exe --m32combined --output=.\UV4Build\mytest3_Flash.srec .\UV4Build\mytest3_Flash.axf

    After Build - User command #2: C:\Keil\\ARM\ARMCC\bin\fromelf.exe --bincombined --output=.\UV4Build\mytest3_Flash.bin .\UV4Build\mytest3_Flash.axf

    ".\UV4Build\mytest3_Flash.axf" - 0 Error(s), 0 Warning(s).

    -------- End -------

    -------------- Here is the Load Code output --------------

    Load "C:\\Users\\robga_000\\Documents\\KL25 Sample Code\\kl25_sc_rev9\\klxx-sc-baremetal\\build\\keil\\mytest3\\UV4Build\\mytest3_Flash.axf"

    Set JLink Project File to "C:\Users\robga_000\Documents\KL25 Sample Code\kl25_sc_rev9\klxx-sc-baremetal\build\keil\mytest3\JLinkSettings.ini"

    * JLink Info: Device "MKL25Z128XXX4" selected (128 KB flash, 16 KB RAM).

    JLink info:

    ------------

    DLL: V4.76d, compiled Sep 13 2013 16:35:06

    Firmware: J-Link V9 compiled Oct 18 2013 17:37:30

    Hardware: V9.00

    S/N : 59102566

    Feature(s) : GDB

    * JLink Info: Found SWD-DP with ID 0x0BC11477

    * JLink Info: Found SWD-DP with ID 0x0BC11477

    * JLink Info: Found Cortex-M0 r0p0, Little endian.

    * JLink Info: FPUnit: 2 code (BP) slots and 0 literal slots

    ROMTableAddr = 0xE00FF003

    * JLink Info: Kinetis L-series (setup): Disabling watchdog.

    Target info:

    ------------

    Device: MKL25Z128xxx4

    VTarget = 3.311V

    State of Pins:

    TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 1

    Hardware-Breakpoints: 2

    Software-Breakpoints: 8192

    Watchpoints: 2

    JTAG speed: 1000 kHz

    Erase Failed!

    Error: Flash Download failed - "Cortex-M0+"

    -------------- End ---------------

    The erase doesn't get past a single bit:

    Here are the actual error windows:

    Thank you so much for reading all of this. I appreciate your help.

    DB:4.12:Flash Timeout Error On Frdm-Kl25z Using Jlink With Keil. Cannot Find Appropriate Flash Programming Algorithm. 38


    When I try to load my code to flash on my KL25Z, I get a flash timeout error. The project compiles, and JLink recognizes the device. I am using uVision 5, and JLink v4.78d.

    I believe the problem arises from using the wrong programming algorithm, but I can't figure out where to get the right one.

    -------- Here are my current flash options and settings ----------

    -------- Here are my current available flash programming algorithms ----------

    -------- Here is the compile output --------

    Rebuild Project 'mytest3' - Target 'KL25Z128 - Flash'

    compiling mytest3.c...

    compiling uif.c...

    compiling alloc.c...

    compiling assert.c...

    compiling io.c...

    compiling memtest.c...

    compiling queue.c...

    compiling stdlib.c...

    compiling nmi_isr_handler.c...

    compiling start.c...

    compiling sysinit.c...

    compiling system_MKL25Z4.c...

    assembling startup_MKL25Z4.s...

    compiling cmp.c...

    compiling llwu.c...

    compiling lptmr.c...

    compiling mcg.c...

    compiling pmc.c...

    compiling rcm.c...

    compiling rtc.c...

    compiling smc.c...

    compiling uart.c...

    compiling Serial.c...

    compiling Retarget.c...

    linking...

    Program Size: Code=7164 RO-data=1844 RW-data=40 ZI-data=0

    After Build - User command #1: C:\Keil\\ARM\ARMCC\bin\fromelf.exe --m32combined --output=.\UV4Build\mytest3_Flash.srec .\UV4Build\mytest3_Flash.axf

    After Build - User command #2: C:\Keil\\ARM\ARMCC\bin\fromelf.exe --bincombined --output=.\UV4Build\mytest3_Flash.bin .\UV4Build\mytest3_Flash.axf

    ".\UV4Build\mytest3_Flash.axf" - 0 Error(s), 0 Warning(s).

    -------- End -------

    -------------- Here is the Load Code output --------------

    Load "C:\\Users\\robga_000\\Documents\\KL25 Sample Code\\kl25_sc_rev9\\klxx-sc-baremetal\\build\\keil\\mytest3\\UV4Build\\mytest3_Flash.axf"

    Set JLink Project File to "C:\Users\robga_000\Documents\KL25 Sample Code\kl25_sc_rev9\klxx-sc-baremetal\build\keil\mytest3\JLinkSettings.ini"

    * JLink Info: Device "MKL25Z128XXX4" selected (128 KB flash, 16 KB RAM).

    JLink info:

    ------------

    DLL: V4.76d, compiled Sep 13 2013 16:35:06

    Firmware: J-Link V9 compiled Oct 18 2013 17:37:30

    Hardware: V9.00

    S/N : 59102566

    Feature(s) : GDB

    * JLink Info: Found SWD-DP with ID 0x0BC11477

    * JLink Info: Found SWD-DP with ID 0x0BC11477

    * JLink Info: Found Cortex-M0 r0p0, Little endian.

    * JLink Info: FPUnit: 2 code (BP) slots and 0 literal slots

    ROMTableAddr = 0xE00FF003

    * JLink Info: Kinetis L-series (setup): Disabling watchdog.

    Target info:

    ------------

    Device: MKL25Z128xxx4

    VTarget = 3.311V

    State of Pins:

    TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 1

    Hardware-Breakpoints: 2

    Software-Breakpoints: 8192

    Watchpoints: 2

    JTAG speed: 1000 kHz

    Erase Failed!

    Error: Flash Download failed - "Cortex-M0+"

    -------------- End ---------------

    The erase doesn't get past a single bit:

    Here are the actual error windows:

    Thank you so much for reading all of this. I appreciate your help.

  • RELEVANCY SCORE 3.28

    DB:3.28:How To Unlock A Secured Freescale Kinetis L Chip 1d




    Hi,

    I am working on an FRDM-KL25Z board. But the MKL25Z128xx chip was secured accidentally, it seems that the on-board OpenSDA can not unlock this MKL25Z128xx chip, so I try to using "unlock kinetis" command in Jlink commander, but it also can not be unlocked successfully, and Jlink commander displays the following message.

    ===================================================

    SEGGER J-Link Commander V4.56 ('?' for help)Compiled Oct 22 2012 19:40:24DLL version V4.56, compiled Oct 22 2012 19:40:04Firmware: J-Link ARM V8 compiled Sep 20 2012 13:27:01Hardware: V8.00S/N: Feature(s): VTarget = 3.002VInfo: Found SWD-DP with ID 0x0BC11477

    ****** Error: Could not read AHB-AP Id. Could not connect to target.Info: Found SWD-DP with ID 0x0BC11477No devices found on JTAG chain. Trying to find device on SWD.Info: Found SWD-DP with ID 0x0BC11477

    ****** Error: Could not read AHB-AP Id. Could not connect to target.Info: Found SWD-DP with ID 0x0BC11477No device found on SWD.Failed to identify target. Trying again with slow (4 kHz) speed.Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000No devices found on JTAG chain. Trying to find device on SWD.Info: Found SWD-DP with ID 0x0BC11477

    ****** Error: Could not read AHB-AP Id. Could not connect to target.Info: Found SWD-DP with ID 0x0BC11477No device found on SWD.J-Linkunlock kinetisUnlocking device...Timeout while unlocking device.J-Link===================================================How to unlock a secured Kinetis L MCU with a JLink? Does OpenSDA or Jlink support such feature of unlocking secured Kinetis L MCU?

    Thanks!

    DB:3.28:How To Unlock A Secured Freescale Kinetis L Chip 1d


    Hi Erich,

    I have tested the J-Link Mass Erase script file for Kinetis L series devices that you provided, it works Ok. Just copy and paste the command sequence shown as above into J-Link commander, then the secured MKL25Z128xxx chip was unlocked successfully.

    Many thanks for your help. I think it's also very useful for any other people who have the same problem.

    After being unlocked, the J-Link will prompt the information as below,

    ==============================

    SEGGER J-Link Commander V4.56 ('?' for help)

    Compiled Oct 22 2012 19:40:24

    DLL version V4.56, compiled Oct 22 2012 19:40:04

    Firmware: J-Link ARM V8 compiled Sep 20 2012 13:27:01

    Hardware: V8.00

    S/N:

    Feature(s):

    VTarget = 2.989V

    Info: Found SWD-DP with ID 0x0BC11477

    Info: FPUnit: 2 code (BP) slots and 0 literal slots

    Info: Found Cortex-M0 r0p0, Little endian.

    Found 1 JTAG device, Total IRLen = 4:

    Cortex-M0 identified.

    JTAG speed: 100 kHz

    J-Link

  • RELEVANCY SCORE 3.26

    DB:3.26:Using The Tsi Module On A Frdm-Kl25z Board pd





    Greetings!

    Here are two projects you can use to enable the TSI Module on a FRDM-KL25Z Board. There are two projects attached, KDS (Kinetis Design Studio) and IAR.

    Enjoy!

    Michael Steffen

    Senior Field Applications Engineer

    Member of the Technical Staff

    Freescale Semiconductor

    DB:3.26:Using The Tsi Module On A Frdm-Kl25z Board pd


    Greetings!

    Here are two projects you can use to enable the TSI Module on a FRDM-KL25Z Board. There are two projects attached, KDS (Kinetis Design Studio) and IAR.

    Enjoy!

    Michael Steffen

    Senior Field Applications Engineer

    Member of the Technical Staff

    Freescale Semiconductor

  • RELEVANCY SCORE 3.06

    DB:3.06:Preipheral Drivers For Freescale Freedom Kl25z Frdm Platform 1m



    I am in a search for peripheral drivers for Freescale freedom FRDM Kl25Z Platform , i am creating a project in CW without using Processor Expert , can anyone help with that , as CW builds the project with just MKL25Z128 hedder support , there is no driver or peripheral library available .

    DB:3.06:Preipheral Drivers For Freescale Freedom Kl25z Frdm Platform 1m


    Hi,

    That is right there is an update for Sample Code Package. This update has support for CW projects, you can find there the platinum project which handles a variety of modules for KL25Z. Most of the examples that you can find in recent update are only compiled for IAR but we are working to migrate them to CW .

    There is a drivers folder: ....\KL25\kl25_sc\klxx-sc-baremetal\src\drivers. This contain peripherals code, such as initialization, functions and more for some modules. You can add this to your project, the only thing that you will need to do is to add the paths of the files in projects properties.

    Probably when you compile your project, you will find some issues with registers masks, because some masks has not the same name in the different IDEs. You will be able to fix them easy because names are very similar.

    Hope this helps.

    Regards.

  • RELEVANCY SCORE 3.05

    DB:3.05:Frdm-Kl25z Bootloader Stops At The Resetmcu Function When I Use An2295 Sw. j3



    Hi, all.

    I'm practicing the bootloader system nowadays. I read the AN2295 application note for building bootload. And, i also download the AN2295 SW for practice.

    First, I modify the bootloader_cfg.h to matching the Kinetis L seires. Also, I modify MEMORY size in the AA295_LinkerFile.Icf.

    Build is running without problem.

    But the problem is when i start the debug, it always stops at the main function or Boot_RsetMCU function.

    Except the bootloader_cfg.h file, i didn't touch AN2295 SW file. (I changed baud rate from 115200 to 57600)

    I'm using FRDM-KL25Z and Codewarrior 10.3.

    Do you have any idea?

    Best,

    Eunseok.

    I noticed that it caused by Hard Fault.

    But i'm not sure what is hard fault and why it occured.

    Could you help me?

    DB:3.05:Frdm-Kl25z Bootloader Stops At The Resetmcu Function When I Use An2295 Sw. j3


    Hello Eunseok Jung:

    Unfortunately the AN2295 bootloader will not be updated to support CodeWarrior.

    It is possible to use the existing source code for Kinetis KL25, but not with the same project, because that project is using the Legacy Freescale compiler/linker for Kinetis. You need to create a new project for KL25 so the GCC build tools are used instead. Then recreate the startup code and copy the bootloader files and drivers to your new project, while modifying any necessary files to make it work with GCC. I could not say a specific list of changes since I do not know the AN2295 project so deeply.

    Altough it is possible, I would not recommend you to take the pain to do it, mainly because there are other UART bootloader alternatives, as those mentioned in the other post.

    Additionaly, in that post I forgot to mention the new Kinetis KBOOT, which is already available for KL25 and it includes UART interface as bootloading option. For details and download this is the link:

    Kinetis Bootloader|Freescale

    Regards!

    Jorge Gonzalez

  • RELEVANCY SCORE 3.04

    DB:3.04:Error In Loading Program On Program Flash And Internal Ram For K70f120m 8k



    I am working on TWR-K70F120M (PK70FN1M0VMJ12) board and trying to load my program with code, rodata and vectors on ROM (Program Flash = 1MB) while other data on internal RAM (SRAM=128KB) using OSJTAG.

    But could not find to connect and load the program.

    Is there any jumper setting, init script or board initialization for writing to program flash?

    or is there any special command sequence to write into program flash?

    Is there any jumper setting to use external probe like JLINK?

    DB:3.04:Error In Loading Program On Program Flash And Internal Ram For K70f120m 8k


    Hi,

    For this board, programming is typically done with a development environment or stand alone debug interface/programming utility. There are several options for development like CodeWarrior, IAR, and so on. These work with the built-in OSJTAG debug interface circuit. If you have a Jlink, you can use Segger Jlink or Jflash utilities to program. No special jumper settings as far as I know, but be sure to check the User's Guide for the board. There may be other tools like from PE Micro that can program as well.

    Best of Luck,

    Mac L

  • RELEVANCY SCORE 2.99

    DB:2.99:Mbed.Org Online Compiler Support For Frdm-Kl25z - It Works! a8



    Went to mbed.org 10 minutes ago. Re-configured my FRDM-KL25Z with the mbed loader and compiled and loaded my first demo application in less than 3 minutes. This is going to be fun!

    New $12.95 mbed-enabled Freescale board! | mbed

    Instructions here: mbed FRDM KL25Z Getting Started - Handbook | mbed

    Very cool!

    DB:2.99:Mbed.Org Online Compiler Support For Frdm-Kl25z - It Works! a8


    Went to mbed.org 10 minutes ago. Re-configured my FRDM-KL25Z with the mbed loader and compiled and loaded my first demo application in less than 3 minutes. This is going to be fun!

    New $12.95 mbed-enabled Freescale board! | mbed

    Instructions here: mbed FRDM KL25Z Getting Started - Handbook | mbed

    Very cool!

  • RELEVANCY SCORE 2.97

    DB:2.97:Mdk Version 5 - Legacy Support - Lua - Frdm-Kl25z - Include Problem ds



    Hi I am working with my thesis project which is porting the scripting language Lua to a FRDM-KL25Z platform. I downloaded the SDK from the official web which is MDK Version 5 - Legacy Support, since I am using a Version 4 project which is exported from mbed online project. I am able to debug and blinking the led. So I started to put the related .c and .h files which I want to use from the Lua src files. When I first put the lua.h and set the path in the options, there is an error says"error in include chain (luaconf.h) : invalid token at start of a preprocessor expression", but it does include this luaconf.h in the lua.h. So is there anyone who has any idea to fix the problem?

    DB:2.97:Mdk Version 5 - Legacy Support - Lua - Frdm-Kl25z - Include Problem ds


    Hi,Christopher

    The problem has been fixed. Cause Lua is written in C, but the mbed project is c++. So it needs c++ and c mixing code
    // This is C++ codeextern "C" { // Get declaration for f(int i, char c, float x) #include "my-C-code.h"}
    Thanks anyway dude xD

  • RELEVANCY SCORE 2.94

    DB:2.94:Frdm-Kl25z kf



    Hi,

    I've try to run the debugger in CodeWarrior.

    I've encounter the following error:

    "An error occured while connecting to the interface hardware or target specified in the launch configuration dialog.

    For this launch you may retry/ re-specify the connection with the following parametrs:....."

    Do anyone have an idea? help will be appreciated.

    Thanks.

    Roy Ed

    DB:2.94:Frdm-Kl25z kf


    Dear Jorge Gonzalez-san,

    Thank you very much for the information!

    I have just tried the firmware you mentioned with

    mbed

    CodeWarrior v10.6

    IAR EWARM v7.20

    KDS 1.0.1

    KDS 1.1.0

    and all of them worked fine!

    Since I had to switch firmwares between mbed and others, before,

    this is a great time saver!

    Best Regards,

    20-Aug-2014

    Motoo Tanaka

  • RELEVANCY SCORE 2.88

    DB:2.88:Sample Programs Fail 1c



    I have two FRDM-KL25 boards, I installed CW 10.3 and The Kinetis L sample code. Using the instructions in the FRDM-KL25Z-QSP document I compiled and ran the hello-world application without incident. When I try the other samples in the same folder they all fail with errors like:

    Description Resource Path Location Type

    ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c undefined reference to `WriteUARTN' accelerometer_demo line 151 C/C++ Problem

    or:

    Description Resource Path Location Type

    mingw32-make: *** [accelerometer_demo.elf] Error 1 accelerometer_demo C/C++ Problem

    Sample programs that fail are never a good sign. Can I expect an update soon?

    DB:2.88:Sample Programs Fail 1c


    Also, the reason WriteUARTN() is required is because of the ANSI library. Erich has a great post discussing using the ANSI library in CW10 at this link:

    Tutorial: Printf() with (and without) Processor Expert | MCU on Eclipse

  • RELEVANCY SCORE 2.83

    DB:2.83:Linux, Gcc, And The Frdm-Kl25z af



    Hi all,

    It took me a while to figure out how to build even a blinky-LED app for the FRDM-KL25Z using gcc from the Linux command-line, so maybe someone else will find the attached tar file useful. It contains a Makefile, header file, startup code, linker script, and blinky-LED app which I put together from various places. At least for me, I can now type "make" and "cp main.srec /media/FRDM-KL25Z" to build and upload. I used the Linux ARM GCC binaries from GCC ARM Embedded in Launchpad

    Have fun,

    G.

    DB:2.83:Linux, Gcc, And The Frdm-Kl25z af


    For public,

    The CPP demo is working now. (arm-gcc-none-eabi + Eclipse Kelper CDT + PEmicro gdbserver basic + Windows XP). Makefile has not been released, but will be available soon.

  • RELEVANCY SCORE 2.80

    DB:2.80:Freescale's Frdm Board pk



    I am trying to program MKL24Z32VFM4 using FRDM KL25Z as a SWD programmer.I am unable to program it.I am following the guidelines mentioned in the link below: http://mcuoneclipse.com/2013/04/21/using-the-freedom-board-as- jtag-programmer/

    Kindly suggest some solutions to this.Is the link follwed is correct? If not, can you suggest a better solution.

    regards

    Polash

    DB:2.80:Freescale's Frdm Board pk


    I am trying to program MKL24Z32VFM4 using FRDM KL25Z as a SWD programmer.I am unable to program it.I am following the guidelines mentioned in the link below: http://mcuoneclipse.com/2013/04/21/using-the-freedom-board-as- jtag-programmer/

    Kindly suggest some solutions to this.Is the link follwed is correct? If not, can you suggest a better solution.

    regards

    Polash

  • RELEVANCY SCORE 2.78

    DB:2.78:Error In Services Launch Sequence.Gdb Prompt Not Read s8



    Hello ,

    I am using Kinetis Design Studio [beta] version 1.0.1 with frdm board (KL25Z). .I have successfully installed KDS and launch it on Ubuntu 13.10. I have write code for blinking RGB LED simutenously.I have followed steps in Quickstart Guide for KDS v1.0.1 beta for setting debug environment using OpenOCD also installed driver for OpenOCD as per instrucion in maual.But I'm getting following problems

    1. Debugger didn't launch even if I followed all instruction in Quickstart Guide for KDS v1.0.1 beta

    2.When I'm tring to flash the code after pressing flash button it will get following error

    Error in services launch sequence GDB prompt not read

    so please guide me how to reslove this problems and how to flash code after this.

    I am attaching error screenshot with this post.

    Thanks and Regards

    Manish Baing

    DB:2.78:Error In Services Launch Sequence.Gdb Prompt Not Read s8


    Hello,

    I believe there is something missing in your debug configuration settings, or that your board does not have the CMSIS-DAP loaded.

    Can you share a screenshot of your launch configuration?

    Erich

  • RELEVANCY SCORE 2.78

    DB:2.78:How To Flash Code Freedom Board (Frdm Kl25z) On Linux Platform xz



    Hello all,

    I am Manish .I have been working on open-source Embedded technologies on Linux platform since 2 years.Now I have just started to learn about free scale freedom board .But I'm not able to flash (Load) same code take from this community using OpenSDA. Fllowing thing I have done successfully

    1.I have installed Drivers of OpenSDA and verified for ttyACM0 port .

    2.Went through Boot-loader mode of OpenSDA and found "/media/BOOTLOADER" directory on Linux platform .

    3.Compiled sample code given on this community and tried to copy main.srec to "/media/BOOTLOADER"

    But expected output not got.

    so please guide me

    1.How to flash code freedom board (FRDM KL25Z) .

    2.How to set Debug Environment and how to debug

    3.Is any utilities for flashing and Debugging available..?

    Regards

    Manish

    DB:2.78:How To Flash Code Freedom Board (Frdm Kl25z) On Linux Platform xz


    Thanks to all, your responses really helpful But I have few doubts.

    1.I have copied MSD-FRDM-KL26Z_Pemicro_v112.SDA file to "/media/BOOTLOADER" and then again repower device but till me not getting MBED folder which automatically appears when the freedom board is connected.

    2.I have checked /run/media but nothing was there.

    3.so how should i load code on freedoboard FRDM KL25Z..?

    please guide me related to that.

  • RELEVANCY SCORE 2.78

    DB:2.78:Frdm-Kl25z Utasker Usb Bootloader Application Program af



    I'm testing the FRDM-KL25Z board. I flash it with USB Bootloader uTaskerSerialLoader_FRDM-KL25Z.srec (download from utTasker site) .

    Similarly as FRDM-K20D50M FRDM-K20D50M uTasker USB Bootloader application program

    in an application program :

    1) I have disabled "Generate Linker file" in Build Option in PE, and edit it manually as :

    MEMORY {

    m_interrupts (RX): ORIGIN = 0x00008080, LENGTH = 0x000000F8

    m_cfmprotrom (RX) : ORIGIN = 0x00008400, LENGTH = 0x00000010

    m_text (RX) : ORIGIN = 0x00008410, LENGTH = 0x00017BF0

    m_data (RW): ORIGIN = 0x1FFFF000, LENGTH = 0x00004000

    }

    2) In "User code after PE Initializzation" in Build Option I have added , that is visible after building in CPU.c file:

    //:::::::::::::::::::::::::::::::::::::::::::::::::::::::

    // USER CODE AFTER PE INITIALIZATION

    uint32_t *pdst ;

    uint32_t *psrc;

    uint16_t i ;

    // Copy Application Stored Interrupt Vector table to RAM

    pdst=(uint32_t*) (0x1FFFF000 );

    psrc=(uint32_t*)( 0x8080 );

    for (i=0;i0xF8;i++,pdst++,psrc++)

    { (*pdst) = (*psrc);

    }

    // Then redirect the vector table to RAM by changing the SCB_VTOR like this:

    // Redirect the vector table to the new copy in RAM

    SCB_VTOR = (uint32_t)(0x1FFFF000);

    //:::::::::::::::::::::::::::::::::::::::::::::::::::::::

    I made a little code for blinking a led with Processor Expert, but

    DB:2.78:Frdm-Kl25z Utasker Usb Bootloader Application Program af


    Hi Jerry

    The .rar is damaged and the project can only be partly extracted.

    Could you post the binary that works and the one that doesn't work?

    I don't think that the boot loader operation will generally effect the application so are you sure that the application works correctly when operating by itself?

    See appendix B of the following document for a complete list of compatibility points to be considered: http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

    Regards

    Mark

    Kinetis: Tasker Kinetis support

    KL25: Tasker Kinetis FRDM-KL25Z support / http://www.utasker.com/kinetis/TWR-KL25Z48M.html

  • RELEVANCY SCORE 2.78

    DB:2.78:Frdm-Kl25z Sample Code Guide 1p



    I'm trying to get up and running with my FRDM board. On the FRDM-KL25Z web page (not sure if the link will come through):

    Freescale Freedom Development Platform for Ki|Freescale

    Under Jump Start...-Get Started With Code Warrior..., it says:

    "
    The FRDM-KL25Z sample code package includes:
    Sample Code Guide with step-by-step instructions to download tools, load projects, configure the hardware, run the code, and use the OpenSDA mass-storage flash programmer to program pre-compiled binaries onto your board
    "

    I downloaded and extracted the sample code package (kl25_sc_rev10), and there is no such "Sample Code Guide" in the download. I've tried searching Freescale's site, and googling it, and I can find no such file. From the description, that sounds EXACTLY what I need right now. Frustrating!

    Does anyone know where it went, or might anyone have it tucked away on their computer? Thanks.

    Joe

    DB:2.78:Frdm-Kl25z Sample Code Guide 1p


    Hello Joe:

    Sorry for the misleading information. Actually you are correct, there should be 3 guides in the sample code package (IAR, Keil and CW). I searched internally but so far I only found the guide for IAR. I will check with the developers what happened to the others.

    Meanwhile I attach to this response a guide for FRDM-KL26Z, which should be almost identical to the one for FRDM-KL25Z. Also attaching the guide I found for IAR.

    Regards!,Jorge Gonzalez

    -----------------------------------------------------------------------------------------------------------------------Note: If this post answers your question, please click the Correct Answer button. Thank you!-----------------------------------------------------------------------------------------------------------------------

  • RELEVANCY SCORE 2.78

    DB:2.78:Simple Flash Downloading Tool For Production Using Swd Port For Kl25 a9



    hi,

    can anyone help to suggest a simple flash downloading tool for production usage, which can support SWD programming?

    our board now is almost ready release to production. but we now found that we lack a simple downloading tool. we reserved the SWD port in our board. the MCU is MKL25 series.

    we have J-link and FRDM-KL25Z tools on hand.

    Thanks very much.

    best regards,

    sw

    DB:2.78:Simple Flash Downloading Tool For Production Using Swd Port For Kl25 a9


    Hi,

    PE company provides Cyclone MAX programmer tool, which supports Kinetis L series SWD interface.

    More detailed info, please check below link:

    http://tinyurl.com/P-E-Cyclone-Max

    Wish it helps.

  • RELEVANCY SCORE 2.77

    DB:2.77:An2295 Serial Bootloader Doesn't Work On Frdm-Kl25z, Why? 1z



    I am evaluating AN2295 bootloader on FRDM-KL25Z.

    After checking the source code, I found UART0(PTA1/PTA2) is used for bootloader, which is actually UART connects to OpenSDA on board. So I download the code into KL25Z128VLK4 on board and have a try.

    Since the bootloader only works after POR, I have to unplug and reconnect it to USB. Then I run "win_hc08sprg" client program, select COM, load S19 file, click "Connect".

    The connection always timeout.

    Waiting for HC(S)08/ColdFire/Kinetis reset ACK (timeout: 0s)...

    Error receiving reset ACK - TIMEOUT.

    Or it reports receiving wrong character like 0x00.

    received 0x00 (ignoring).

    received 0x00 (ignoring).

    received 0x00 (ignoring).

    received 0x00 (ignoring).

    received 0x00 Waiting for HC(S)08/ColdFire/Kinetis reset ACK (timeout: 0s)...

    Error receiving reset ACK - TIMEOUT.

    It seems USB VCP of OpenSDA takes quite a long time to work, maybe it requires more time? Or we have some issues on UART communication of bootloader?

    Attachment is my revision for AN2295.

    I tried to add LED as indicator, so far it doesn't work well. MCG/PORT/GPIO is processed, it still doesn't work.

    And I tried to enableBootMode by POR as well as reset PIN , but it doesn't help either to enter bootloader mode.

    DB:2.77:An2295 Serial Bootloader Doesn't Work On Frdm-Kl25z, Why? 1z


    Hi Kai,

    I just add comments on your new thread AN2295 again! Now it stuck on downloading custom firmware

    Please check it and thank you for the attention.

    B.R.

    Ma Hui

  • RELEVANCY SCORE 2.77

    DB:2.77:Frdm-Kl25z: Files Moved To Bootloader Don't Seem To Be Stored, Consequently Can't Run Anything. (Mac Osx) d3



    So I opened my FRDM-KL25Z for the first time today.

    The first time I plugged it in with the opensda usb port, a device appeared in finder called "FRDM-KL25Z" and the demo ran.Then I restarted it in bootloader mode, and the "BOOTLOADER" device appeared. I copied the MSD flash programmer over and restarted it.

    After it restarted, the demo was still working, but I couldn't see the "FRDM-KL25Z" device any more. The bootloader mode works exactly the same as it did the first time though, apart from the file I copied not being there.

    I have a suspicion of what is happening after reading this: http://www.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf (page 5)

    Note: Some operating systems cache the files on the BOOTLOADER drive. Because of this, files that were copied to the OpenSDA Bootloader drive may be seen in the file system even though they are not stored to the non-volatile flash memory of the OpenSDA controller. These files will no longer appear once power has been cycled to the OpenSDA device.

    DB:2.77:Frdm-Kl25z: Files Moved To Bootloader Don't Seem To Be Stored, Consequently Can't Run Anything. (Mac Osx) d3


    I have no Mac, but I remember some Linux distro do have same issues. We can use some command (sync?) to enforce writing data from RAM cache (i-node) to desired location HDD.

    You need to dig into Mac's user manual to find it.

  • RELEVANCY SCORE 2.77

    DB:2.77:Frdm-Kl25z How To Get Rtc Work Properly da



    Hello,

    I am new to freescale.

    I start on FRDM-KL25Z evaluation board. I am using cw 10.3 with PE. I added a RTC components using PE. I would like to measure the current consumed by RTC module. what I need to do is just run RTC keep time counting on. I set the time, and using the RTC_GetTime(RTC1_DeviceData, rtc) function which suppose to get the second, minute, hour, date, day, month, year values and stores into rtc object. however, when I run this in debug mode(using OpenSDA USB), I checked the rtc object. the value is just same as initial value. I dont know what is wrong. I did automatic initialize rtc device, and call rtc_enable() function as well.

    Can anyone give me a hint?

    Thanks in advance.

    DB:2.77:Frdm-Kl25z How To Get Rtc Work Properly da


    Dear Peng Liang

    I have to generate an hourly interrupt and wake up the KL05 from VLLSx mode. It's mentioned using 32k crystal instead of 8M crystal for RTC. I guess it means the processor ll run at 32kHz clock. I would like to know how RTC could use this clock. Could anything be done for preventing RTC registers from getting reset due to VLLSx wakeup interrupt?

  • RELEVANCY SCORE 2.76

    DB:2.76:A General Swd Interface Based Upon K20 ms



    PS: If anyone thinks this discussion is against interests of FSL, please let me know, I will remove the thread, anyway.

    FRDM offers a unique approach to reuse its USB interface with different appliation firmware as programmer, debugger and UART bridge. Although FRDM's K20 is close source, it is not very difficult to reuse the off-the-shelf firmware to make FRDM as a general SWD interface based upon K20D50.

    After reading blogs from mcuoneclipse.com, I found it is possible to design a standalone SWD interface based upon K20 micro. The hardware design comes from FRDM boards, the application firmware is ready. We just need a USB MSD bootloader, which has been offered by Freescale. I have checked the firmware, most of them starts from 32KB, which means the first 32KB is reserved for bootloader.

    I know PEmicro, JLINK lite are protected to support same micro with target one. But CMSIS-DAP is almost designed for open source.

    I have not evalueted all the firmware packages from PEmicro, Keil, mBed, Freescale, OSBDM, OSjtag. However I have successfully programmed off-chip microcontrollers (including FSL and non-FSL micro) with CMSIS-DAP firmware in Keil.

    But I do find error reports why I try to debug micro with CMSIS-DAP firmware.

    I would like to ask questions to whom have FRDM-K20D50M at hand.

    Has anyone ever tried to download these firmware to use K20D50M as a SWD programmer? Since OpenSDA K20 and target K20 are using different package. I would like to use QFP48 packge, instead of QFN and QFP80 to support easy soldering.

    I would like to open the design and when I finish evaluting all these questions.

    UPDATE:

    Currently I am trying to evalue all kinds of bootloaders for this projects, since there is no off-the-shelf solution from FSL. McHack's DFU bootloader may work, and I am going to port AN4379 to K20 as well.

    Allan K Liu

    DB:2.76:A General Swd Interface Based Upon K20 ms


    OpenSDA is not OPEN SOURCE, but it is open for reusing hardware and reloading user applications. PEmicro protects OpenSDA bootloader and SDA file format. So does Segger.

    However, we have following open source firmware packages.

    MSD bootloader from FSL and other open source projects. (Many people are working on it, DFU/MSD/CDC...)open source debugger firmware from Keil/mBedopen source debugger firmware from OSBDM/Kinetis

    However, OpenSDA hardware only supports SWD. In order to make it suitable for JTAG and other protocol like EZP. We have to design a dedicated clone OpenSDA hardware with additional buffers.

  • RELEVANCY SCORE 2.76

    DB:2.76:Frdm Kl25z As Air Mouse sc



    Has anyone worked on frdm-kl25z as air mouse in code warrior ? I need help as i m short of time.

  • RELEVANCY SCORE 2.75

    DB:2.75:Needs Frdm Kl25z A Bdm 1p



    Needs FRDM KL25Z a BDM device for upload some program of codewarrior to the microcontroller????

    DB:2.75:Needs Frdm Kl25z A Bdm 1p


    Hello

    I have made some labs that demonstrate all the debugging features of Freescale Cortex-M processors using on-board CMSIS-DAP and the free version of Keil MDK tools (to 32K code)

    These include Cortex-M0+ MTB instruction trace.

    For Serial Wire Viewer or ETM Instruction trace (on those parts where available) you need a Keil ULINK2/ME or ULINKpro or Segger J-Link (black case)

    KL25Z Freedom www.keil.com/appnotes/docs/apnt_232.asp

    K20D50M Freedom www.keil.com/appnotes/docs/apnt_243.asp

    Kinetis K60 Tower www.keil.com/appnotes/docs/apnt_239.asp

    Export Freescale Processor Expert Projects to Vision Projects www.keil.com/appnotes/docs/apnt_235.asp

    There is an appnote of Kinetis Flash Memory: www.keil.com/freescale

    and ARM Compiler Optimizations www.keil.com/appnotes/docs/apnt_202.asp

    Thanks

    Bob Boys

    San Jose, CA

    forums.arm.com

  • RELEVANCY SCORE 2.75

    DB:2.75:Mqx Lite: Pit-Adc-Dma Modulo Error c3



    Hi everybody,

    i want to sample Data continious from ADC (triggerd by an PIT). The result will be transferred by DMA to destination Buffer. I want to use the MQX lite RTOS on FRDM-KL25Z.

    Two problems accrued:

    - When i try to get values with a destination adress modulo 256Byte the CPU generate a interrupt (Cpu_ivINT_Hard_Fault). When i set the adress modulo of the DMA less or equal 256Byte it works.

    - At the moment i trigger the ADC every 5s (fs=200kHz), it would be great to get 4s. If i do so, i cant do anything else in the Tasks (at the moment only toggel an LED)

    IDE: CodeWarrior for MCU Version: 10.6

    DevBoard: FRDM-KL25Z (c) 2012

    Thanks for your help

    Menko Oldewurtel

    DB:2.75:Mqx Lite: Pit-Adc-Dma Modulo Error c3


    Hi everybody,

    i want to sample Data continious from ADC (triggerd by an PIT). The result will be transferred by DMA to destination Buffer. I want to use the MQX lite RTOS on FRDM-KL25Z.

    Two problems accrued:

    - When i try to get values with a destination adress modulo 256Byte the CPU generate a interrupt (Cpu_ivINT_Hard_Fault). When i set the adress modulo of the DMA less or equal 256Byte it works.

    - At the moment i trigger the ADC every 5s (fs=200kHz), it would be great to get 4s. If i do so, i cant do anything else in the Tasks (at the moment only toggel an LED)

    IDE: CodeWarrior for MCU Version: 10.6

    DevBoard: FRDM-KL25Z (c) 2012

    Thanks for your help

    Menko Oldewurtel

  • RELEVANCY SCORE 2.74

    DB:2.74:We Are Using Frdm-Kl25z With Frdm-Fxs-Multi-B , We Want The Bom Of Frdm-Fxs-Multi-B xx



    We want The BOM of the FRDM-FXs_MULTI-B rev c

    DB:2.74:We Are Using Frdm-Kl25z With Frdm-Fxs-Multi-B , We Want The Bom Of Frdm-Fxs-Multi-B xx


    I want the exact part number of the micro sd card connector used in FRDM-FXS-MULTI-B

  • RELEVANCY SCORE 2.73

    DB:2.73:Problems With Frdm-Kl25z Quickstart d7



    Hello!

    My first time using a Freescale kit. In QuickStart guide, to load an Open SDA Application, it says:

    " Copy paste or drag drop the MSD Flash Programmer Application (MSD-FRDM-KL25Z_vXYZ_Pemicro.SDA)to the BOOTLOADER drive."

    But when I try to copy, it just goes till 70% of copying and crashes.

    Can someone help me?

    DB:2.73:Problems With Frdm-Kl25z Quickstart d7


    Hey Erich,

    Im using a Win7, and it is really giving me problems to paste. Your method didn't work just with the first document I tried, the rest went ok.

    Thanks a lot!

  • RELEVANCY SCORE 2.72

    DB:2.72:Cannot Generate The S19 File For Frdm-Kl25z fx



    Hi,

    I have just started experimenting with the FRDM-KL25Z with Code Warrior 10.4 and I cannot for the life of me find the binary file to drag onto the device via the USB upload feature. I am brand new to this platform (I am assessing if I want to move away from Atmel) and this is doing my head in... :-)

    Previously I have been using MBED and the BIN files it generates have worked just fine. Now I am trying to build the sample project in Code Warrior and I cannot work out which is the right binary file to download (or if I need to run another tool to convert a file to the right format).

    I am playing with the sample project I2C_RGB Flash which is a Processor Expert project.

    Once again - sorry for the dumb question....

    Thanks

    Bryon

    DB:2.72:Cannot Generate The S19 File For Frdm-Kl25z fx


    I have found the problem :-). To make a long story short. The problem was caused by custom per file/folder settings. As a result, the post build step with S19 file generation is not called.

    The long story is here:

    Traps and Pitfalls: No Hex/Bin/S19 File Created with GNU? | MCU on Eclipse

    I hope this is useful for others who might run into that trap.

    As a general advise: perform project option changes on the *project* root folder, not on files or source folders inside the project.

    I hope this helps.

  • RELEVANCY SCORE 2.71

    DB:2.71:Does The Frdm-Kl25z Board Not Work With Windows 8 And Codewarrior? aa



    We just got an order from our customer for 5,000 units and we are planning on using the KL25 processor in our design. I just bought 12 FRDM-KL25Z boards to start testing with. I have now just wasted a week just trying to run simple code to blink an LED. The problem is when I go to run the code in Code Warrior it doesn't detect the device.

    I assume this is some sort of OpenSDA problem. I have read through all the posts on this forum and I am not able to get anything to work in order to connect to one of these boards. I tried the steps below(from Erich Styger) on all 12 boards and still can't connect to these boards in Code Warrior.

    - power board with reset button pressed
    - green LED blinks
    - copy BOOTUPDATEAPP_Pemicro_v111.SDA to the board
    - unpower the board, power the board again (wait a few seconds) (IMPORTANT: this step easily gets missed!)
    - unpower the board
    - power the board again with RESET pressed
    - copy the MSD-DEBUG-FRDM-KL25Z_Pemicro_v114.SDA to the board
    - wait a few seconds
    - power the board normally

    All our machines at work run windows 8 and my computer at home runs Windows 8.

    Has anyone been able to run code on a FRDM-KL25Z board in CodeWarrior?

    Thanks for the help,
    Mike

    DB:2.71:Does The Frdm-Kl25z Board Not Work With Windows 8 And Codewarrior? aa


    Hi

    Configure "Do not allow locations on removable drives to be added to libraries" as discussed here: http://answers.microsoft.com/en-us/windows/forum/windows8_1-hardware/how-do-i-prevent-system-volume-information-files/815b0046-d631-4419-a43e-44083a3733f5

    and you should be able to do updates from Windows 8.1.

    Regards

    Mark

    - Windows 8.1 writes system volume information files to a fresh disk and confuses the loader in the process, but it can be simply disabled.

  • RELEVANCY SCORE 2.70

    DB:2.70:Frdm-Kl25z And Freescale Usb Cdc Tutorial With Cw10.6: Stuck In The Middle ! dz



    Hello everybody,

    I am newbie with Kinetis and CW. I am currently using CW 10.6 with a FRDM KL25Z demo board.

    Trying to setup the tutorial found here:

    CodeWarrior Tutorial for FRDM-KL25Z: USB CDC wi... | element14

    I am walking around with no success since yesterday afternoon with the FSL_USB_CDC_Device getting the errors - see please attachment picture:

    Send Buffer : no inherited components assigned

    Receive Buffer: no inherited components assigned

    The other errors seem stupid as they should only be related to the length of the Value string: easy to fix (I suppose)

    Is there anyone that can help ?

    My aim is using the other USB (not the Open SDA) to exchange data with an external USB host, running my final application hw, where I will not have installed the Open SDA interface.

    Thank you for any support.

    Stefano

    DB:2.70:Frdm-Kl25z And Freescale Usb Cdc Tutorial With Cw10.6: Stuck In The Middle ! dz


    I forward here an answer got from Erich Steyger (by the way: thanks so much again) who fully solved this issue:

    Hello,

    have you loaded both *.PEupd files from GitHub (both Part1 and Part2)?

    Because it needs the RingBuffer component (have you this one present in your component library)?

    The other error you see with the strings is a bug in MCU10.6 :-(

    My component examples have spaces at the end for these strings, and this spaces are now removed in CodeWarrior 10.6 :-(

    The workaround is to use

    FSL CDC DEVICE56

    FREESCALE INC.12345678901234

    I hope this helps?

    Erich

  • RELEVANCY SCORE 2.70

    DB:2.70:Freemaster Setup Using Activex Controls On A Frdm-Kl25z c8



    Greetings!

    Here is a presentation to show how to set up a FreeMaster project using ActiveX controls. This presentation shows how the setup variables in real time, use the the O-scope functions, and create and use an .HTML page to use with ActiveX controls in FreeMaster.

    Here is the hardware you'll need to complete the presentation:
    Freescale Freedom Board - Part # is FRDM-KL25Z.

    Here are the steps IN ORDER to get the FRDM-KL25Z board programmed and get the HTML Editor and ActiveX Gauges installed.

    After everything is installed and the FRDM-KL25Z board programmed, start the presentation.

    ActiveXControlPadSetup.exeThis is the ActiveX HTML editor used for editing the ActiveX controls. Install this first.Ial_shareware.zip
    This is the sample collection of ActiveX gauges. We use two of these gauges in the FreeMaster project. Install this second.

    3. FreeMASTER HTML Template Page Rev2.htm This the HTML template used to link the ActiveX gauges to the FreeMaster Interface. Store this file on the desktop or in C:\...

    4. FRDM_KL25_Application_Code_Rev2.srec (UPDATED Oct. 17, 2014)

    This is the application program that needs to be programmed via OpenSDA MSD into the FRDM-KL25Z board.

    Just plug in the FRDM-KL25Z Board, and drag and drop this file onto the FRDM-KL25Zdrive letter in Window Explorer.

    More information on programming the FRDM-KL25Z using OpenSDA with MSD. http://cache.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf

    5. KL25_FreeMASTER_Map_File_Rev2.out

    This is the map file that FreeMASTER needs to point to referenced in the presentation.

    6. FRDM-KL25Z FreeMASTER Setup with ActiveX Controls OCT2014.pdf

    This is the powerpoint presentation giving set-by-step instructions from opening FreeMaster to inserting ActiveX controls.

    ENJOY!

    Michael Steffen

    Senior Field Applications Engineer

    Member of the Technical Staff

    Freescale

    Updated OCT. 17, 2014.
    - Added the FRDM_KL25_Application_Code_Rev2.srec

    DB:2.70:Freemaster Setup Using Activex Controls On A Frdm-Kl25z c8


    Greetings!

    Here is a presentation to show how to set up a FreeMaster project using ActiveX controls. This presentation shows how the setup variables in real time, use the the O-scope functions, and create and use an .HTML page to use with ActiveX controls in FreeMaster.

    Here is the hardware you'll need to complete the presentation:
    Freescale Freedom Board - Part # is FRDM-KL25Z.

    Here are the steps IN ORDER to get the FRDM-KL25Z board programmed and get the HTML Editor and ActiveX Gauges installed.

    After everything is installed and the FRDM-KL25Z board programmed, start the presentation.

    ActiveXControlPadSetup.exeThis is the ActiveX HTML editor used for editing the ActiveX controls. Install this first.Ial_shareware.zip
    This is the sample collection of ActiveX gauges. We use two of these gauges in the FreeMaster project. Install this second.

    3. FreeMASTER HTML Template Page Rev2.htm This the HTML template used to link the ActiveX gauges to the FreeMaster Interface. Store this file on the desktop or in C:\...

    4. FRDM_KL25_Application_Code_Rev2.srec (UPDATED Oct. 17, 2014)

    This is the application program that needs to be programmed via OpenSDA MSD into the FRDM-KL25Z board.

    Just plug in the FRDM-KL25Z Board, and drag and drop this file onto the FRDM-KL25Zdrive letter in Window Explorer.

    More information on programming the FRDM-KL25Z using OpenSDA with MSD. http://cache.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf

    5. KL25_FreeMASTER_Map_File_Rev2.out

    This is the map file that FreeMASTER needs to point to referenced in the presentation.

    6. FRDM-KL25Z FreeMASTER Setup with ActiveX Controls OCT2014.pdf

    This is the powerpoint presentation giving set-by-step instructions from opening FreeMaster to inserting ActiveX controls.

    ENJOY!

    Michael Steffen

    Senior Field Applications Engineer

    Member of the Technical Staff

    Freescale

    Updated OCT. 17, 2014.
    - Added the FRDM_KL25_Application_Code_Rev2.srec

  • RELEVANCY SCORE 2.69

    DB:2.69:How To Remove Bootloader Mode In Frdm-Kl25z cj



    FRDM-KL25Z opening in bootloader mode. How to open it in frdm-kl25 mode so that i can run my projects . Tried copying .sda ,, but no success please help...

    DB:2.69:How To Remove Bootloader Mode In Frdm-Kl25z cj


    Please check below link and download OpenSDA firmware there:

    http://www.pemicro.com/opensda/index.cfm

    Then you need to refer OpenSDA user guide section 2.1 to let OpenSDA enter into bootloader mode, then Drag/drop or copy/paste DEBUG-APP_Pemicro_v108.SDA file.

    After that unplug the USB cable and plug it in again, your PC will find OpenSDA debugger and install related driver to make it works.

    Wish it helps.

    Best regards,

    Ma Hui

  • RELEVANCY SCORE 2.69

    DB:2.69:Vision 5 Debugger: Error 65: Access Violation At 0x40048100 : No 'Write' Permission k7


    I am using the Vision Simulator on a FRDM KL25z device.
    When I start the simulator via the debugger, I get the following error:

    *** error 65: access violation at 0x40048100 : no 'write' permission

    The debugger runs well with the FRDM KL25z device.

    How can I configure the simulator to run?

    Thanks

    DB:2.69:Vision 5 Debugger: Error 65: Access Violation At 0x40048100 : No 'Write' Permission k7


    This will help to run the simulator, but as the address range is reserved for peripherals, they will become mere RW memory locations as there is no simulation available for your device!

  • RELEVANCY SCORE 2.69

    DB:2.69:Frdm-Kl25z And Kds - Any Example Applications? 8k



    After getting myself a FRDM-KL25Z, I looked up which IDE to use and went for the KDS, as CW will not support future KLxxx devices.

    Now, I am looking for sample code for the FRDM-KL25Z. However, all I find is for CW. Do I need to uninstall the KDS and go back to CW? Or did I miss something?

    Max

    DB:2.69:Frdm-Kl25z And Kds - Any Example Applications? 8k


    Thanks, Erich!

    That works! I could start using your sample code for UART. Another thing i make mistake is that I didn't copy the sample code to my workspace at first which caused compilation error. After I import again with ticking the option to copy the code into workspace, it's ok again.

    Bryan

  • RELEVANCY SCORE 2.68

    DB:2.68:Usb Host Hid Demo Times Out On Frdm-Kl25z With Reproduced Usb Host xf



    Hi,

    I am trying to design a USB OTG board with KL24/25. I want to reuse FRDM-KL25Z for firmware development before making my own board. It is surprised to find out TWR-KL25Z has OTG port with 64KB ROM, while FRDM-KL25Z HAS NOT OTG port with 128KB ROM. So I have to reproduce an additional USB OTG port with FRDM. Check out the following images:

    Fig 1: USB device for FRDM-KL25Z

    Fig 2: USB OTG for TWR-KL25Z

    Fig 3: My add-on OTG port for FRDM-KL25Z, with a DELL mouse attached

    Description of re-produced OTG port

    Basically, I made a mini USB cable connecting D-/D+/GND from USB KL25Z port to a USB standard A socket, and a separate wire connecting P5V_SDA to VBUS of USB std A socket. I know VBUS power supply should be controlled by a dedicated USB pwr switch with enable pin to GPIO of KL25Z. But I think it is enough for simple hardware. Once plug in SDA USB, the VBUS from PC should supply to VBUS of reproduced USB port.

    Regarding pull-up/pull-down, it should be implemented by USB internal PU/PD resistors controlled by firmware.

    The code is usb-host demo, with small modification on preprocessor in EWARM for FRDM. The terminal reports as following:

    External Pin Reset
    KL2580pin 100pin
    Low Power Line with Cortex M0+
    SRAM Size: 16 KB
    Silicon rev 15
    Flash size: 128 KB program flash, 4 KB protection regionMain OK

    Timer Init OK
    USB HOST Init OK

    USB HID Mouse
    Waiting for USB Mouse to be attached...

    USB host can not detect mouse at all. So I traced the code.

    hidmouse.c::main() Mouse_Task(main_buffer,main_hid_com); // hid_device.DEV_STATE is always USB_DEVICE_IDLE _usb_khci_task(); // times out and keep reset bus khci.c::_usb_khci_task() switch (msg.type){ case TR_MSG_SETUP: _usb_khci_atom_tr(...) // always timeout

    ...... }

    ...... if ((khci_event.VALUE KHCI_EVENT_MASK)){

    ...... /* bus reset */ USB0_CTL |= USB_CTL_RESET_MASK; // mouse laser is turned off time_delay(10); USB0_CTL = ~USB_CTL_RESET_MASK; // mouse laser is turned on

    ......

    }

    The result is: when mouse is plugged-in, USB host can detect and find out its speed (LS). However the following transaction always timeout. And it keeps reset the bus, I can find it from laser LED toggling. I am pretty sure VBUS/D-/D+/GND is connected correctly between USB mini B and USB std A. I assume the code should have been verified on TWR board.Can anyone tell me why its transaction times out? Any suggestions are highly appreciated.

    I found the desired device should be populated into a table, but its PID/VID are all zero. Should I touched the const table with my DELL mouse? (HID\VID_0461PID_4D15\7A65A7C400000 for my mouse)

    DB:2.68:Usb Host Hid Demo Times Out On Frdm-Kl25z With Reproduced Usb Host xf


    Finally it works for both hardware and software, check another thread of my discussion.

    Add-on OTG port hardware/register setup.

  • RELEVANCY SCORE 2.67

    DB:2.67:Kl25z - Wakeup Using Tsi 8m



    Hi All,

    Good day!

    I'm currently using frdm-kl25z board. I was able to test the sample program for touchpad using TSS. In this example, the board will go to sleep mode after several second when no touch is detected.

    You can wake-up the board by touching the right electrode. My question is that, is there a way to wakeup the board by touching any of the 2 (left or right) electrodes?

    Thanks in advance.

    DB:2.67:Kl25z - Wakeup Using Tsi 8m


    Hello Pedro,

    Can you give an example how to wake-up using tss in processor expert?

    Thanks in advance..

  • RELEVANCY SCORE 2.67

    DB:2.67:Error 17926 With A External Mcu On Frdm Board.. kj



    Hi! This is my first post. I do not write English very well so I am using a translator.

    I commented that I am using CodeWarrior 10.5 with KL25Z FRDM.

    To start from scratch, a few months ago, create a project with Processor Expert for KL25Z plate using Code Warrior 10.3. I compile and debug without problems. With the same board i debug external MCU. This was a KL05Z, I read the User Guide from the FRDM KL25Z and it said it was to cut a track J11, it worked perfect, I could debug. The cable VCC, GND, SWD_DIO, SWD_CLK and RESET were connected from the FRDM towards external KL05 pin. As shown in the attached image.

    This was a few months ago, now install the new CodeWarrior 10.5.

    Using the same FRDM, I could download a code without problems KL25Z FRDM interno.tilizando it, I could download a code without internal KL25Z problems.

    The problem begins when I try to use an external MCU, the connection is the same he had used before, the external MCU is the same (KL05Z), the problem is that the MCU does not recognize me .. Or so I think.

    The CodeWarrior detected OpenSDA (I can debug the internal KL25Z FRDM), but produces the error 17926 (Picture Attached). Try installing in a virtual machine the CodeWarrior 10.3, but it gives me the same error, in the CodeWarrior 10.3 17926 Error window says, too, "Target MCU mismatch. OpenSDA debugging hardware supports only the resident target processor".

    I checked all the connections between the FRDM and external MCU. Tensions are fine. The truth may be not understand that, try another FRDM KL25Z a colleague, but neither worked.

    Thank you very much, hope you can help me. Greetings!Franco.

    DB:2.67:Error 17926 With A External Mcu On Frdm Board.. kj

    Thanks for the reply!
    I can not understand how, about a month ago, I could debug external MCU and now I can not (same FRDM).

    I was watching this post http://mcuoneclipse.com/2013/05/16/freedom-board-with-segger-opensda-debug-firmware/

    I could solve the problem using a OpenSDA firmware from Segger. This could debug external MCU perfectly, even more, I noticed that it is faster.

    In that post is perfectly explained.

    What debugger do you recommend for professional use? I need one for a work project.
    If it can be any economic, much better.

    Thank you!

  • RELEVANCY SCORE 2.66

    DB:2.66:How To Program Frdm-Kl25z Board Using Ros? xm



    Hi,

    I need to build a controller based on FRDM-KL25Z board. Practically, the program of the controller come from ROS ubuntu. So, how should it start and is there any USED program that I can refer to?

    DB:2.66:How To Program Frdm-Kl25z Board Using Ros? xm


    Hi,

    I need to build a controller based on FRDM-KL25Z board. Practically, the program of the controller come from ROS ubuntu. So, how should it start and is there any USED program that I can refer to?

  • RELEVANCY SCORE 2.66

    DB:2.66:Freescale Frdm-Kl25z - Breadboard And Sensors 9p



    How do I connect the FRDM-KL25Z to a breadboard and/or how do I connect sensors to it? Where can I find sensors that are compatible with the FRDM-KL25Z?

    I know nothing about this technology at this point but I want to learn. I found Xlively which lead me to mBed which lead me to Freescale which lead me to the FRDM-KL25Z which lead me here, lol.

    Help me get started.

    Thanks in advance.

    DB:2.66:Freescale Frdm-Kl25z - Breadboard And Sensors 9p


    Yes, that's correct.

    For example I'm using this prototype shield:

    http://uk.farnell.com/jsp/search/productdetail.jsp?SKU=2289765MER=baynote-2289765-pr

    as it has dual headers. If you need just the outer Arduino pins, than a normal Arduino one is ok too.

  • RELEVANCY SCORE 2.65

    DB:2.65:Timeout While Unsecuring Device? c9



    connect k20 board to jlink,reported secured

    DB:2.65:Timeout While Unsecuring Device? c9


    Please do not cross-post your question in the forums. It makes it difficult for people to answer your question.

    ---Tom

  • RELEVANCY SCORE 2.65

    DB:2.65:Can't Erase Flash Sector On Kl25z,But Error_Ok' p7



    Hi,i'm trying to erase a Flash sector on FRDM-KL25Z Freedom board using IntFlahs Bean.From the data sheet:

    27.1.1.1 Program Flash Memory Features Sector size of 1 Kbyte

    I've prepared 3 sectors in Flash for store my code data,and i'have limited the code area to 64KB,then i've initialized some bytes in the 3 sectors

    unsigned char __attribute__((section (".ParametersSection1"))) ParametersFlash1[512]={'S','e','c','1'};
    unsigned char __attribute__((section (".ParametersSection2"))) ParametersFlash2[512]={'S','e','c','2'};
    unsigned char __attribute__((section (".ParametersSection3"))) ParametersFlash3[512]={'S','e','c','3'};

    DB:2.65:Can't Erase Flash Sector On Kl25z,But Error_Ok' p7


    May be it could be caused because when you have loaded the J-link emulator you did not set connection with J-link instead of defualt OpenSDA.

    This is all I can say about it, if you could share more information regard your process to load J-link I will be glad to check in order to determine which could be the problem.

    Have a nice day,Perla Moncada

    -----------------------------------------------------------------------------------------------------------------------Note: If this post answers your question, please click the Correct Answer button. Thank you!-----------------------------------------------------------------------------------------------------------------------

  • RELEVANCY SCORE 2.65

    DB:2.65:Xtrinsic Sensor Boards 78



    Where or how can I purchase additional Xtrinsic Sensors Boards like the daughter board that came with the FRDM-KL25Z?

    DB:2.65:Xtrinsic Sensor Boards 78


    Where or how can I purchase additional Xtrinsic Sensors Boards like the daughter board that came with the FRDM-KL25Z?

  • RELEVANCY SCORE 2.63

    DB:2.63:Frdm-Kl25z Now Talks To Android Phone xm



    Hi,

    I have just finished my work on running ADB protocol on FRDM-KL25Z.

    ADB (Android Debug Bridge) is an important debug interface used in Android, ranges from Android 1.5 to lastest 4.2.2.

    Any MCU running ADB can talks to any Android Phone (OS version4.2.2), that means appcessory ecosystem can be built on a low cost Cortex-M0 MCU like KL25Z.

    I port ADB protocol from UHS project for Arduino, with a lot of re-write code to adapt to FSL USB host stack. Yes, they are using totally different approaches, not only the registers, but also program structure.

    If anyone is interested, you can follow my step to run it on your board as well.

    Built an add-on OTG port on FRDM-KL25Z (USB host HID demo times out on FRDM-KL25Z with reproduced USB host), alternatively, you must buy FRDM RevD.Put your FRDM into MSD programmer mode, according to QSP of KL25Z.Download attached srec file (USBH_Adb.srec) into programmer driver.Put your FRDM back into PEmicro debugger mode, according to QSP of KL25Z, otherwise you lose your serial port print on terminalInstall apk in ServoControl.zip file to Android Phone. (Don't use Jelly Bean 4.2.2, older phone is all right)Connect your Android Phone to add-on OTG port.

    If successful, you can find USB activities on serial terminal. And found ADB protocol talks as well.

    In my code, the LPTMR value will be sent to Android phone as a bar, the user can touch the red block and move it, and its co-ordinate will be sent back to KL25Z. It is a simple demo.

    Have fun. Your comments are highly welcome.

    ==================

    Limitations

    The source code is messy, I need more time to re-organize it.The ADB only works Android phone with OS 1.5+ to 4.2.1. The latest 4.2.2 has enforced RSA authentication, which is not available so far.The ADK/AOA protocol is implemented.

    Plan
    Reorganize source code for ADB for FSLOffer API interface to high level applicationsOffer more complex demos (Video surveillance with Android phone with PTZ control)Evaluate serial bootloader (AN2295) and change it to adapt with bootloader.Support RSA authentication if possibleSupport AOA/ADK w/o audioA new KL25Z USB OTG board called "GAP" (Generic Android/Application Peripheral) under development, in form of Arduino or mini board.

    Long-term Plan (more aggressive, but only with more time, effort and human resources)
    Support USB WiFi/Blutetooth dongle.Support USB CDC with Android phone.Support codesourcery toolchainSupport Arduino/Maple IDESupport license in firmware.

    Sorry for my poor English, and I updated URL to another thread. In fact, FRDM-KL25Z RevD supports USB OTG with wiring VBUS from OpenSDA to KL25Z. But use it at your own risk.

    I am not sure if I should go open source or close source like traditional approach. Before I make my decision, I will release my hex code anyway, and release a library and related header file to user application development.

    Message was edited by: Kai Liu

    DB:2.63:Frdm-Kl25z Now Talks To Android Phone xm


    A library makes sense if it's part of a product. I'm just knee deep in the USB stack trying to get a very simple AOA project up and running and was looking for some resources.

  • RELEVANCY SCORE 2.63

    DB:2.63:Unable To Program Kl25z With Pe Multilink cd



    Dear friends,

    we need help with our first KL25Z128 custom board, we are unable to program using the "PE Multilink Universal". For the CPU, we have based our design in the FRDM-KL25Z (see attached sch, please). We can program the FRDM-KL25Z using the Multilink (J6 header) but not our board. Any help will be appreciated.

    As difference, note:

    - we don't have mounted external clock

    - reset pin, 0.1 uF instead (also tested with1 uF)

    The progammer have the following lines connected, as the FRDM-KL25Z:

    - VCC

    - GND

    - SWD_DIO_TGTMCU

    - RST_TGTMCU

    - SWD_CLK_TGTMCU

    Thank you,

    Juan A Luna

    DB:2.63:Unable To Program Kl25z With Pe Multilink cd


    More info:

    When I plug the Multilink to my board (that have only the mcu and power) the voltage to Reset pin goes low permanently.

    Regards,

    Juan A

  • RELEVANCY SCORE 2.62

    DB:2.62:How To Read Flash Memory? mz



    Hi everyone,

    I write data to flash memory(eeprom emulation) using FRDM-KL25Z. however, I want to check what data I wrote(since I dont have LCD). Is there a way to check the data that I wrote using codewarrior IDE?

    Thanks in advance

    DB:2.62:How To Read Flash Memory? mz


    I'm still confused about writing into the flash, the FLASH1Pointer should be what ? and in the Erasing Flash sectors in KL25 on the Freedom Board. the user memories area setting is grey, and in cw10.5 the flash_ldd component doesn't have a FLASH1_GetOperationStatus function?

  • RELEVANCY SCORE 2.62

    DB:2.62:Can Frdm-Kl25z Be Used With Kl02? z1



    Hello All,

    Can I program and debug KL02 series MCUs (MKL02Z8VFG4) with FRDM-KL25Z? If not, What is the difference, SWD Protocol, OpenSDA?

    Would FRDM-KL02Z a proper candidate for this job?

    Thanks in advance

    Best Regards

    DB:2.62:Can Frdm-Kl25z Be Used With Kl02? z1


    I have replaced MCU with MKL02Z32VFG4. Now everything works fluent. Though I am having hard time to understand what was wrong.

    I have checked the binary footprint it was 6KB which is OK to fit in 8KB of former MCU. Application is a blinking LED example produced with Processor Expert like in Tutorial: Enlightning the Freedom KL25Z Board | MCU on Eclipse

  • RELEVANCY SCORE 2.62

    DB:2.62:Connect Frdm-Fxs-Multi-B To Kl25z s7



    Hello,

    as in the title i would like to know if its possible to connect the frdm-fxs-multi-b with the KL25z and the FRDM-TFC shield used in the Freescale Cup?

    FRDM-TFC

    |||||||||||||||||||||

    frdm-fxs-multi-b

    |||||||||||||||||||||

    KL25z

    I think of something like this (the fxs in between the other two boards). The Goal is to use the bluetooth communication from the fxs board to controll the Freescale Cup car remote.

    Thanks in advance

    Michael

    DB:2.62:Connect Frdm-Fxs-Multi-B To Kl25z s7


    Hello,

    as in the title i would like to know if its possible to connect the frdm-fxs-multi-b with the KL25z and the FRDM-TFC shield used in the Freescale Cup?

    FRDM-TFC

    |||||||||||||||||||||

    frdm-fxs-multi-b

    |||||||||||||||||||||

    KL25z

    I think of something like this (the fxs in between the other two boards). The Goal is to use the bluetooth communication from the fxs board to controll the Freescale Cup car remote.

    Thanks in advance

    Michael

  • RELEVANCY SCORE 2.61

    DB:2.61:Freedom With A Breadboard 8z



    This is a pretty neat little mount I found on Thingiverse. It holds your Freescale FRDM-KL25Z Freedom Development Platform and a 400-point breadboard, allowing you to prototype new projects easily.

    Freescale FRDM-KL25Z Sled by builttospec - Thingiverse

    DB:2.61:Freedom With A Breadboard 8z


    This is a pretty neat little mount I found on Thingiverse. It holds your Freescale FRDM-KL25Z Freedom Development Platform and a 400-point breadboard, allowing you to prototype new projects easily.

    Freescale FRDM-KL25Z Sled by builttospec - Thingiverse

  • RELEVANCY SCORE 2.60

    DB:2.60:Frdm-Kl25z 3c



    On the FRDM-KL25Z development board is it possible to use the flash memory at U5. It is an AT45DB161E chip, and I need to store program variables.

    DB:2.60:Frdm-Kl25z 3c


    Hi, Mark

    Yes, you are correct. As I mentioned, you need to connect SPI flash to KL25 freedom board separately.

    Best Regards

    Paul

  • RELEVANCY SCORE 2.59

    DB:2.59:How Do You Read Coefficient Values Of Mpl115a1? zf



    Im using FRDM KL25Z, Codewarrior 10.5 IDE and SPIMaster_LDD Component of processor expert. Ive followed the MPL115A1 datasheet but still i am experiencing difficulties.

    Below are the contents of my code

    Contents of PorcessorExpert.c:

    ReceiveFlag=FALSE;

    TransmitFlag=FALSE;

    Command=0x88;

    Error=Master_ReceiveBlock(Master_DeviceData,A0_MSB,1U);

    Error=Master_SendBlock(Master_DeviceData,Command,1U);

    Command=0x00;

    Error=Master_SendBlock(Master_DeviceData,Command,1U);

    while(!ReceiveFlag){

    }

    ReceiveFlag=FALSE;

    TransmitFlag=FALSE;

    Contents of Events.c:

    void Master_OnBlockSent(LDD_TUserData *UserDataPtr)

    {

    /* Write your code here ... */

    TransmitFlag=TRUE;

    }

    void Master_OnBlockReceived(LDD_TUserData *UserDataPtr)

    {

    /* Write your code here ... */

    ReceiveFlag=TRUE;

    }

    Ive tried sending Commands 0x88,0x8A,0x0C,0x0E,0x90,0x92,0x94,0x96 and the data i receive is always 0x00. What am I doing wrong? Please help.

    DB:2.59:How Do You Read Coefficient Values Of Mpl115a1? zf


    Im using FRDM KL25Z, Codewarrior 10.5 IDE and SPIMaster_LDD Component of processor expert. Ive followed the MPL115A1 datasheet but still i am experiencing difficulties.

    Below are the contents of my code

    Contents of PorcessorExpert.c:

    ReceiveFlag=FALSE;

    TransmitFlag=FALSE;

    Command=0x88;

    Error=Master_ReceiveBlock(Master_DeviceData,A0_MSB,1U);

    Error=Master_SendBlock(Master_DeviceData,Command,1U);

    Command=0x00;

    Error=Master_SendBlock(Master_DeviceData,Command,1U);

    while(!ReceiveFlag){

    }

    ReceiveFlag=FALSE;

    TransmitFlag=FALSE;

    Contents of Events.c:

    void Master_OnBlockSent(LDD_TUserData *UserDataPtr)

    {

    /* Write your code here ... */

    TransmitFlag=TRUE;

    }

    void Master_OnBlockReceived(LDD_TUserData *UserDataPtr)

    {

    /* Write your code here ... */

    ReceiveFlag=TRUE;

    }

    Ive tried sending Commands 0x88,0x8A,0x0C,0x0E,0x90,0x92,0x94,0x96 and the data i receive is always 0x00. What am I doing wrong? Please help.

  • RELEVANCY SCORE 2.59

    DB:2.59:Frdm-Kl25z: Device Could Not Be Powered Up. pk



    Hi,

    I'm trying to debug/program FRDM-KL25Z with Keil uVision without success. I have message:

    AGDI - Cortex-M Error: Device could not be powered up.

    More detailed information about this error:
    Debug block on the device could not be powered. Debug block on the target is not working properly. Mainly caused by target problems: debug block not powered and clocked properly
    Device works with last application programmed but I can not program it any more.

    This error has appeared after I debugged application with RTC/LPTMR with direct register modification. Could it be the main reason or something else?

    Is that means chip is broken?

    DB:2.59:Frdm-Kl25z: Device Could Not Be Powered Up. pk


    I tried to place resistor of 1M in R25 and in programmer settings I only chose 'Erase Full Chip'. Erasing succeeded. Then I took out resistor and tried to debug /program and it seems to work.

  • RELEVANCY SCORE 2.59

    DB:2.59:Usbdm Arm Programmer On Win7 64bit kj



    Hello,

    I have a FRDM-KL25Z board to debug/program a MKL02Z8VFG4 on a custom application board. Host system is 64 bit Win7 Professional SP1. It is a company PC, I have the local administrator rights.

    - codewarrior 10.6

    - USBDM_Drivers_1_2_0_Win_x64.msi

    - USBDM_4_10_6_170_Win.msi are installed without any problems.

    - USBDM Serial Port (COM12)

    - Universal Serial Bus devices USBDM BDM Interface

    devices are listed properly in Device Manager.

    Setup is done as explained in USBDM: Setting Up the FRDM-KL25Z

    (Last step of flashing BootloopKL25.elf to the on board application microcontroller is not done. Because there is already an application on the board which can be considered as " similar harmless ")

    My problem is that I can NEITHER debug using the Codewarrior NOR program using usbdm ARM programmer.

    When I open Usbdm ARM Programmer BDM Firmware Ver 70.224.70 is shown.

    When I press Detect then BDM Firmware Ver is changed to 40.240.40.

    If I use the debug version of the ARM programmer

    75.113.245 before detect 0.0.0 after detect is shown and

    USBDM log says:

    bdm_usb_open(): libusb_claim_interface(0) failed, rc = (-5):LIBUSB_ERROR_NOT_FOUND

    bdm_usb_open(): Exit ================ (i=2, l=100)

    USBDM_GetErrorString(): 8 = 'BDM Open Failed - Unknown USB error'

    USBDM_Open(): Failed - rc = BDM Open Failed - Unknown USB error

    xusb 16D0:0567 says:

    libusbx: error [libusb_get_bos_descriptor] failed to read BOS (-5) no descriptor

    Complete log and output of the xusb 16D0:0567 are attached.

    Can someone help and promote me from DesperateStruggler to CodeWarrior?

    DB:2.59:Usbdm Arm Programmer On Win7 64bit kj


    Hello,

    I have a FRDM-KL25Z board to debug/program a MKL02Z8VFG4 on a custom application board. Host system is 64 bit Win7 Professional SP1. It is a company PC, I have the local administrator rights.

    - codewarrior 10.6

    - USBDM_Drivers_1_2_0_Win_x64.msi

    - USBDM_4_10_6_170_Win.msi are installed without any problems.

    - USBDM Serial Port (COM12)

    - Universal Serial Bus devices USBDM BDM Interface

    devices are listed properly in Device Manager.

    Setup is done as explained in USBDM: Setting Up the FRDM-KL25Z

    (Last step of flashing BootloopKL25.elf to the on board application microcontroller is not done. Because there is already an application on the board which can be considered as " similar harmless ")

    My problem is that I can NEITHER debug using the Codewarrior NOR program using usbdm ARM programmer.

    When I open Usbdm ARM Programmer BDM Firmware Ver 70.224.70 is shown.

    When I press Detect then BDM Firmware Ver is changed to 40.240.40.

    If I use the debug version of the ARM programmer

    75.113.245 before detect 0.0.0 after detect is shown and

    USBDM log says:

    bdm_usb_open(): libusb_claim_interface(0) failed, rc = (-5):LIBUSB_ERROR_NOT_FOUND

    bdm_usb_open(): Exit ================ (i=2, l=100)

    USBDM_GetErrorString(): 8 = 'BDM Open Failed - Unknown USB error'

    USBDM_Open(): Failed - rc = BDM Open Failed - Unknown USB error

    xusb 16D0:0567 says:

    libusbx: error [libusb_get_bos_descriptor] failed to read BOS (-5) no descriptor

    Complete log and output of the xusb 16D0:0567 are attached.

    Can someone help and promote me from DesperateStruggler to CodeWarrior?

  • RELEVANCY SCORE 2.58

    DB:2.58:Swd Error Using Mbed On Frdm-Kl25z sp



    I have been using mbed on my FRDM-KL25Z board to test code as well as to deploy code onto custom boards. Recently I have been encountering a problem while trying to program the FRDM board or my custom boards. A fail.txt is created which has "SWD ERROR" printed inside. After which point I am not able to program the FRDM board or my custom boards.

    I have gone through 3-4 FRDM boards, which cannot be used anymore and any help would be much appreciated, before I go on to ruin other boards...

    Thanks in advance!

    DB:2.58:Swd Error Using Mbed On Frdm-Kl25z sp


    Yes, mass earse is to KL25 chip.

    You don't need to mass erase the opensda chip, the opensda chip already have the bootloader code in it, you's best don't earse it, if you want to use the different debugger in the opensda chip, just change the firmware which you can download from pemicro or segger website.

    Have a great day,Jingjing

    -----------------------------------------------------------------------------------------------------------------------Note: If this post answers your question, please click the Correct Answer button. Thank you!-----------------------------------------------------------------------------------------------------------------------

  • RELEVANCY SCORE 2.58

    DB:2.58:Which Mbed Library Should I Be Using For Tfc? kx



    There are two libraries listed in mbed:

    Also, there is one at URL https://mbed.org/users/johnmc/code/Freescale-Cup-with-FRDM-KL25Z

    Of these three, the first one does not have a sample main.cpp. The latter two do.

    Which library should I be using because I have seen posts where bugs have been found in these and I am not sure what to be using.

    DB:2.58:Which Mbed Library Should I Be Using For Tfc? kx


    Exactly. I powered the servo first and set it to use 90 degree as the center, then assembly the gear and put it to chassis.

  • RELEVANCY SCORE 2.57

    DB:2.57:Frdm-Kl46z And Frdm-Kl25z zz



    hi there.....is these FRDM-KL46Z and FRDM-KL25Z are same pin to pin compatible? can i use same codes for both when do some application?

    DB:2.57:Frdm-Kl46z And Frdm-Kl25z zz


    hi there.....is these FRDM-KL46Z and FRDM-KL25Z are same pin to pin compatible? can i use same codes for both when do some application?

  • RELEVANCY SCORE 2.57

    DB:2.57:Mpl115a1(Spi Version) d9



    Ive been working on project using MPL115A1 with FRDM-KL25Z board. Its been three weeks and the MPL115A1 does not respond to the commands I send. I noticed that the DO pin of the MPL115A1 is always 0. Is this normal? Is the DO pin normally low?

    DB:2.57:Mpl115a1(Spi Version) d9


    Ive been working on project using MPL115A1 with FRDM-KL25Z board. Its been three weeks and the MPL115A1 does not respond to the commands I send. I noticed that the DO pin of the MPL115A1 is always 0. Is this normal? Is the DO pin normally low?

  • RELEVANCY SCORE 2.56

    DB:2.56:I Can Not Debbug In The Kl25z Frdm... m3



    Hi, I am new in this of the kinetis microcontroller, and i have the FRDM KL25Z but when i wanna debbug, codewarrior shows a error alert....Can somebody help me please??...

    DB:2.56:I Can Not Debbug In The Kl25z Frdm... m3


    Hello,

    By default the firmware running in the OpenSDA device is the MSD, you have to program the debug application into OpenSDA.

    Follow the OpenSDA User Guide.

    http://cache.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf?fpsp=1WT_TYPE=Users GuidesWT_VENDOR=FREESCALEWT_FILE_FORMAT=pdfWT_ASSET=Documentation

    Getting into Bootloader ModeProgram the PE Debug Application

    Then CW will detect your debugger device.

    Best Regards,

    Luis

  • RELEVANCY SCORE 2.56

    DB:2.56:Where To Get Source Code Of Frdm-Kl25z_Qsp kd


    FRDM-KL25Z_QSP: FRDM-KL25Z Quick start package includes a set of "Precompiled Examples", where can i get the source code of them?

    DB:2.56:Where To Get Source Code Of Frdm-Kl25z_Qsp kd


    Hi,

    As Zhou commented, you can download sample code (including .c and .project) from the following link:

    KL25_SC: FRDM-KL25Z and TWRKL25Z48M Sample Code Package.

    It is an .exe file, first you need to extract the content. It contains two folders,

    1) klxx-sc-baremetal.

    For baremetal projects including CW, IAR and Keil examples.Similar projects than "Precompiled Examples" on FRDM-KL25Z_QSP file can be found here.

    2) klxx-sc-pex.

    For Processor Expert examples.

    I hope it helps.

  • RELEVANCY SCORE 2.56

    DB:2.56:Kinetis L Adc Offset Correction km



    Hi all,

    I'm trying to acquire the value of many ADC inputs on my FRDM-KL25Z. Actually, I saw the example Measuring all ADC inputs on FRDM-KL25 using DMA and i'm trying to do this. But, I don't understand very well the ADC Offset Correction Register.

    In this example, that register is set to 4U. I just don't understand why. Can someone explain that?

    Thank you!

    DB:2.56:Kinetis L Adc Offset Correction km


    Hi,Oliverira

    This register is used to correct ADC calibration. For example, you calibration our ADC module by a external standard power supply. Then you can transfer data to register ADCx_OFS after you compare testing result and expected result.

    Best Regards

    Paul

  • RELEVANCY SCORE 2.56

    DB:2.56:How To Enable Internal Pullup Resistors In Kds 1p



    Hello everyone!

    I am using the KDS to program a FRDM-KL25Z board. Table 10.2 of the KL25Z Reference Manual indicates that all GPIO pins can be configured so that Pull Enable = 1 (i.e., an internal pullup resistor is enabled on the corresponding pin). How do I set Pull Enable on the KL25Z in the KDS?

    Thank you,

    Nick

    DB:2.56:How To Enable Internal Pullup Resistors In Kds 1p


    It's in the Init_GPIO component, see Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse

  • RELEVANCY SCORE 2.55

    DB:2.55:What's The Minimum Circuit Requirement For Kl/K Mcu Programming? kf



    I am trying my best to use FRDM on board OpenSDA debugger to program hex/srec/bin code into off-board KL25Z/K20 boards.

    I got the following errors:
    Keil + CMSIS-DAP firmware, SWD/JTAG communication errorIAR + PEmicro OpenSDA firmware, a setup window popup to show no target MCU found.Coocox + CoLinkEX + CoFlash, "Flash not blank !!! - Can NOT Stop MCU !!!"

    SWD should be the simplest way to program a cortex micro. (VCC/GND, DIO/CLK/RST) I have double checked the connections. They are good.

    But I have changed a TXC 8MHz crystal in these boards. I want to know if the crystal can influence the SWD programming? Is it possible to program a bare KL25Z chip (only MCU mounted on board, not crystal, only SWD connections are available, and power source comes from SWD as well) ?

    So far I don't think cystal issue is the root cause of programming failure, because KL25Z can run from IRC. FSL can not enforce customer to add crystal for programming.

    It is surprise to me when I failed in programming KL25Z with FRDM+CMSIS-DAP. This CMSIS-DAP programming configuration is even working well for other MCU.

  • RELEVANCY SCORE 2.54

    DB:2.54:Almacenamiento No Voltil En La Frdm-Kl25z sx



    Hola a todos!

    Quisiera saber si existe una forma de almacenar datos durante la ejecucin de un programa en la KL25Z y que no se borren al apagar la tarjeta. Sera algo as como una EEPROM y que se pudiera acceder byte por byte... en la MPC5604 logr emular una EEPROM en la memoria FLASH del micro con la ayuda de un cdigo de ejemplo que me pasaron, pero no se si exista para la KL25Z. Alguna idea sobre esto?

    Gracias!

    DB:2.54:Almacenamiento No Voltil En La Frdm-Kl25z sx


    Gracias por el aporte Andrs! Saludos desde Chihuahua.

  • RELEVANCY SCORE 2.53

    DB:2.53:Frdm-Kl25z And Multiple Hall Sensors a7



    Hi All,

    Requirement :

    Count the pulses generated by hall sensor inside a flow meter. The hall sensor produces around 330 pulse / second. There would be around 6-10 flow meters connected to a circuit for calculating the total consumption.

    Is frdm-kl25z my best bet to start this project or is there any other better alternative available.

    I am thinking of using the GPIO pins in interrupt mode to count the pulse. Can multiple interrupts work without data loss parallely. Can the MKL25Z128VLK4 MCU handle this.

    DB:2.53:Frdm-Kl25z And Multiple Hall Sensors a7


    Hi Zhe Tian,

    Thanks for help.

    Just ordered the FRDM-KL25Z kit. Will update once I have it working.

    Regards,

    Rajakumar.S

  • RELEVANCY SCORE 2.53

    DB:2.53:Recovering Bricked Boards (Frdm, Reset, Swd And Low Power) 33



    Hello,

    I was running recently into issues where I was not able to access my FRDM-KL25Z board any more, and ended up with a number of bricked boards.

    This was *not* around securing the boards with flash erase disabled: this was about using Reset/SWD as GPIO, plus about Low Power modes.

    To make the story short: PE has a recovery utility released (http://www.pemicro.com/downloads/download_file.cfm?download_id=393, requires registration) which allowed me to recover my boards.

    See Bricking and Recovering FRDM-KL25Z Boards: Reset, SWD Clock and Low Power | MCU on Eclipse for the full story.

    I hope this helps, in case you are not able to talk with the debugger to an SWD based Kinetis.

    Erich

    DB:2.53:Recovering Bricked Boards (Frdm, Reset, Swd And Low Power) 33


    Hello,

    I was running recently into issues where I was not able to access my FRDM-KL25Z board any more, and ended up with a number of bricked boards.

    This was *not* around securing the boards with flash erase disabled: this was about using Reset/SWD as GPIO, plus about Low Power modes.

    To make the story short: PE has a recovery utility released (http://www.pemicro.com/downloads/download_file.cfm?download_id=393, requires registration) which allowed me to recover my boards.

    See Bricking and Recovering FRDM-KL25Z Boards: Reset, SWD Clock and Low Power | MCU on Eclipse for the full story.

    I hope this helps, in case you are not able to talk with the debugger to an SWD based Kinetis.

    Erich

  • RELEVANCY SCORE 2.53

    DB:2.53:Printf Error On Mqx Lite z8



    Hi all,

    I'm using the MQX Lite on my FRDM KL25Z.

    I'm having a problem with printf inside a loop. This is the code:

    void Initial_task(uint32_t task_init_data)
    {
    uint32 ptr;

    #ifdef DEBUG
    for(ptr = 0; ptr 10; ptr++)
    {
    printf("\n"); //Clear terminal
    }
    printf("\n start \n\n");
    #endif

    HardwareInitialize();
    printf("\n Hardware Initializated\n");

    SetAudio(2);

    for(;;)
    {
    int i;
    if (LED_GetVal())
    {
    printf("\nLED on");
    _time_delay_ticks(2000);
    }
    }

    DB:2.53:Printf Error On Mqx Lite z8


    Hi Zhang

    I'm using CW 10.6, Build Id:140329.

    A demo project with this same error is attached.

    Regards

  • RELEVANCY SCORE 2.53

    DB:2.53:Cw10.5 Interrupt Don't Work 8x



    the chip is FRDM-KL25Z using . the IDE is coderwarrior for 10.5 .there is two module used ,there are PIT0 timer and GPIO .But the timer interrupt don`t work . codes is gengered is PE of coderwarrior .always stop cpu_interrupt .who help me ?thank !

    DB:2.53:Cw10.5 Interrupt Don't Work 8x


    the chip is FRDM-KL25Z using . the IDE is coderwarrior for 10.5 .there is two module used ,there are PIT0 timer and GPIO .But the timer interrupt don`t work . codes is gengered is PE of coderwarrior .always stop cpu_interrupt .who help me ?thank !

  • RELEVANCY SCORE 2.53

    DB:2.53:Bootloader Error xd



    My board (freescale FRDM-KL25Z) have a LED that is blinking 8 times after 2 seconds off.

    What the procedure should I follow to the board get back to normal?

    DB:2.53:Bootloader Error xd


    My board (freescale FRDM-KL25Z) have a LED that is blinking 8 times after 2 seconds off.

    What the procedure should I follow to the board get back to normal?

  • RELEVANCY SCORE 2.53

    DB:2.53:Assemble Error Of The Kinetis Sample Code When Used The Code Size Limit Ewarm On The Frdm Board s1



    Hello all,

    I am facing the trouble regarding the FRDM board IDE.Could anyone solve my issue?I had been using IAR EWARM 30 days evaluation version for programming on the FRDM board (KL25Z and K20D50M), using the kinetis sample codes provided from the freescale (i.e. KL25_SC and kinetis_50MHz_sc).There had been no problem when I had used the 30 days evaluation version.However, after changing the EWARM from the 30 days evaluation version to the 32k/16k code size limit version, the assemble error such as the following had happened in case of building the sample codes ."[Og007]:Assembler list file generation not allowed in this version of the compiler"I could not find any solutions for the error.Are there any workaround for it?

    Best regards,Yasuhiko Koumoto.

    DB:2.53:Assemble Error Of The Kinetis Sample Code When Used The Code Size Limit Ewarm On The Frdm Board s1


    Hello all,

    the problem was solved by myself.

    I had misunderstood the meaning of the "Assembler list file generation".

    As the result, it would be solved by inhibiting the assembler list output from the "list" tab of the EWARM option menu for "C/C++ compiler".

    I think it was a trivial thing after finding the solution.

    Best regards,

    Yasuhiko Koumoto.

  • RELEVANCY SCORE 2.52

    DB:2.52:Flash Programming Fails On Frdm-Kl25z By Code Warrior. jz



    Hello all,

    I am working on FRDM-KL25Z with Code Warrior from Freescale site.I face the trouble that the build code cannot be written to the flash.Could anyone help me?

    The below is the message when the flash programming was performed.I think everything would be OK. However, nothing happens after pushing the reset switch. I cannot understand what happened on the board. Probably it seems that flash programming failed.

    Also, in addition to this behavior, IAR EWARM (i.e. Embedded Workbench for ARM) flash loader became no working. This problem was solved by putting (or dragging and dropping) the correct srec file into MSD. I am unclear whether it is the right way to solve the problem.

    By the way, I can find the discussion in this community as "Problem programming srec on FRDM board". In the discussion, it was described how to make the srec file and I have succeeded to make 's19' file. By putting this s19 file into the MSD, the flash program seems to be done successfully. Is it the only way to make s19 file for flash programming with Code Warrior?

    Best regards,Yasuhiko Koumoto.

    P.S. When the specified file of the flash programmer is converted from the elf (default) to the srec file, the downdload to the flash succeeded.

    Is there any inconvenient with the elf for the flash download?

    ----[snip]------fl::target -lc "LC for Simple Flash"fl::target -b 0x1ffff000 0x4000fl::target -v off -l offcmdwin::fl::device -d "FTFA_PFlash128S1RAM16" -o "32Kx32x1" -a 0x0 0x1ffffcmdwin::fl::image -f "C:\\Users\\koumoto\\Desktop\\CQ2\\KINETIS\\FRDM\\KL25 Sample Code\\kl25_sc_rev10\\klxx-sc-baremetal\\build\\cw\\sample\\RemoteSystemsTempFiles\\.project" -t "Auto Detect" -re on -r 0x0 0x1ffff -oe offcmdwin::fl::erase imageBeginning Operation ... ------------------------- Auto-detection is successful. File is of type Binary/Raw Format.

    Performing target initialization ... Downloading Flash Device Driver ... Reading flash ID ...Erasing Sector 0x00000000 to 0x000003FF Erasing ...Erase Command Succeeded cmdwin::fl::write

    -------------------------

    Using restricted address range 0x00000000 to 0x0001FFFF

    Programming file C:\Users\koumoto\Desktop\CQ2\KINETIS\FRDM\KL25 Sample Code\kl25_sc_rev10\klxx-sc-baremetal\build\cw\sample\Remote

    SystemsTempFiles\.project

    Auto-detection is successful.

    File is of type Binary/Raw Format.

    Downloading Flash Device Driver ...

    Reading flash ID ...

    Auto-detection is successful.

    File is of type Binary/Raw Format.

    Downloading 0x00000121 bytes to be programmed at 0x00000000

    Executing program ....

    Program Command Succeeded

    ----[snip]------

    メッセージ編集者: Yasuhiko Koumoto Because some parts of the whole messages were lost, I added the rest of message.

    メッセージ編集者: Yasuhiko Koumoto
    Additional information was added.

    DB:2.52:Flash Programming Fails On Frdm-Kl25z By Code Warrior. jz


    Hello all,

    I'm very sorry for confusing everyone.

    I could solve the problem by myself.

    The key point is directly to specify the 'File to Flash' file of the 'Flash programmer' dialog.

    With the default setting and no specification of the source file, the file programming had gone wrong

    although the result message looked good.

    Form the wrong message, the default setting of the source file is a binary file. The flash loader cannot

    distinguish elf and bin formats, can it?

    I will close this issue.

    Best regards,

    Yasuhiko Koumoto.

  • RELEVANCY SCORE 2.52

    DB:2.52:Frdm-Kl25z Board Is Not Getting Detected If Connected To Host Usb sf



    Hi all,

    I have stated working on "KIT33816FRDMEVM" Evaluation Board.

    First I have installed SPIGEN latest version and connected to USB Host and it has worked fine. Again we thought of programming the controller on FRDM-KL25Z board, so we have moved to "mbed" mode using SDA-USB Port and we are able to control the ports. Now again if we are trying to connect Host USB the device is not getting detected and if I open the SPIGEN application it is showing that "The USB to SPI Device was not found".

    By reading some queries in freescale forum we have followed the below procedure to solve the issue:
    - power board with reset button pressed
    - green LED blinks
    - copy BOOTUPDATEAPP_Pemicro_v111.SDA to the board
    - unpower the board, power the board again (wait a few seconds) (IMPORTANT: this step easily gets missed!)
    - unpower the board
    - power the board again with RESET pressed
    - copy the MSD-DEBUG-FRDM-KL25Z_Pemicro_v114.SDA to the board
    - wait a few seconds
    - power the board normally
    Now it has the new bootloader plus the MSD+Debug application loaded.
    By this if I connect the board again to SDA-USB port it is showing a drive as "FRDM-KL25Z"
    Still the board is not getting detected if I connect to Host USB. Please help us in this context ASAP.

    Regards,
    Siva

    DB:2.52:Frdm-Kl25z Board Is Not Getting Detected If Connected To Host Usb sf


    Hi all,

    I have stated working on "KIT33816FRDMEVM" Evaluation Board.

    First I have installed SPIGEN latest version and connected to USB Host and it has worked fine. Again we thought of programming the controller on FRDM-KL25Z board, so we have moved to "mbed" mode using SDA-USB Port and we are able to control the ports. Now again if we are trying to connect Host USB the device is not getting detected and if I open the SPIGEN application it is showing that "The USB to SPI Device was not found".

    By reading some queries in freescale forum we have followed the below procedure to solve the issue:
    - power board with reset button pressed
    - green LED blinks
    - copy BOOTUPDATEAPP_Pemicro_v111.SDA to the board
    - unpower the board, power the board again (wait a few seconds) (IMPORTANT: this step easily gets missed!)
    - unpower the board
    - power the board again with RESET pressed
    - copy the MSD-DEBUG-FRDM-KL25Z_Pemicro_v114.SDA to the board
    - wait a few seconds
    - power the board normally
    Now it has the new bootloader plus the MSD+Debug application loaded.
    By this if I connect the board again to SDA-USB port it is showing a drive as "FRDM-KL25Z"
    Still the board is not getting detected if I connect to Host USB. Please help us in this context ASAP.

    Regards,
    Siva

  • RELEVANCY SCORE 2.52

    DB:2.52:Frdm-Kl25z As Mouse 98



    Has anyone worked on frdm-kl25z as air mouse in code warrior ? I'm facing problem with cursor movement. I need help as so as possible, I'm short of time.

    DB:2.52:Frdm-Kl25z As Mouse 98


    hi Erich Styger

    Thank you for the great contribution. I have been following your site and it had helped me a lot in learning kl25z.

    The code works good

  • RELEVANCY SCORE 2.52

    DB:2.52:Adc Readings On Frdm Kl25z 93



    Hi,

    I configured the ADC for the FRDM KL25Z board as in:

    This is my code:

    (void)AD1_Calibrate(TRUE);

    for(;;) {

    (void)AD1_Measure(TRUE); /* do conversion and wait for the result */

    (void)AD1_GetValue16(value); /* get the result into value variable */

    }

    The readings are (with the PTD5 pin connected to 3.3v):

    any idea?

    Thanks

    DB:2.52:Adc Readings On Frdm Kl25z 93


    Hi, P/N for part number, which op amp is recommended to interface the ADC?

    I tried the example code in the help page, it still doesn't work, most probably the impedance seen at the 3.3v pin is high/very high.

  • RELEVANCY SCORE 2.51

    DB:2.51:Frdm-Kl25z Error : Usb Communication Failed 8z



    Hello friends,

    I am using Freedom KL25Z.

    The problem is when i am programming the MKL25Z128VLK4 chip using the tool CooCox CoIDE 1.7.2, i am getting the error "Flash: Flash program

    failed" and following that i get "USB communication failed". I get this error continuously and i cannot flash and run it.

    Please anyone suggest your ideas to overcome this problem. Thanks in advance.

    DB:2.51:Frdm-Kl25z Error : Usb Communication Failed 8z


    Hi

    I do not use Coocox however I feel you need to follow their instructions from the included link, the debugger should not be the PE-OSDA but CMSIS-DAP

    http://www.coocox.org/downloadfile/CoIDE/How_to_use_OpenSDA.pdf

    there is getting started package on Freescale pages (the link is on the box of your FRDM), where you can download the CMSIS-DAP.

    http://www.frescale.com/FRDM-KL25Z

    Pavel

  • RELEVANCY SCORE 2.51

    DB:2.51:Mkl25z128vlh4 Interrupts xx



    We're working on a project with MKL25Z series microcontrollers. We choose FRDM-KL25Z board as our development platform and we're using IAR Embedded Workbench for ARM(latest version) with Segger j-link debugger. By using the SWD port on the FRDM-KL25Z board we download and run our code just fine.

    On our custom board(uses MKL25Z128VLH4 instead of MKL25Z128VLK4) everything works perfectly except the intterupts. We couldn't manage to activate any of the interrupts. Projects are exactly the same(so are the vector tables). Our custom board design is also very similar to FRDM-KL25Z board.

    What could be the source of this issue?

    DB:2.51:Mkl25z128vlh4 Interrupts xx


    Hello Bora Mutluer:

    What is the status of your issue?

    If interrupts are not working, please refer to answer from Carlos Chavez for a similar problem in the next thread:

    Fresh MCUs refuses interrupts

    In case your custom board is somehow connecting NMI pin to a low level (e.g. ground), then NMI interrupt might be preventing any other interrupt from happening.

    Hope this helps!

    /Jorge Gonzalez

  • RELEVANCY SCORE 2.51

    DB:2.51:Mqx_Lite Based Printf With Debugger Console And Pe Exception. Any News To Fix This? jd


    In FRDM-KL25Z board.
    Using printf() with parameters to print in debugger console int, char... result:
    PE_ISR(Cpu_Interrupt)
    {
    /* This code can be changed using the CPU component property "Build Options / Unhandled int code" */
    PE_DEBUGHALT();
    }

    Many posts talk about this. But no results... Any news to fix this?

    Thanks!

  • RELEVANCY SCORE 2.50

    DB:2.50:Dac Examples On Frdm-Kl05z Board For Keil? 7p



    I am looking for an example that uses DAC examples on FRDM-KL05Z board. The sample code package from the website seems to contain ADC example only. Can anybody point me to a place to start?

    I am using Keil so preferably I can have an example that uses Keil. I found this example, but it uses KL25Z board and it seems to be using ProcessorExpert, and I have no idea how to convert to Keil....

    mcuoneclipse/Examples/FRDM-KL25Z/Freedom_DAC at master ErichStyger/mcuoneclipse GitHub

    Thanks a lot! I am very new to embedded programming and I appreciate all your input.

    DB:2.50:Dac Examples On Frdm-Kl05z Board For Keil? 7p


    Yesterday i tried the same and found a collision of the DAC12 pin with the OpenSDA-CDC UART connection. I gave up the KL05Z UART0_RX connection and kept the UART0_TX connection for debug output from the board. I removed one of R16 and R17 and put the other one diagonally. Then in the UART driver file i put the UART0_TX on PTB2 (MUX alternative 3 instead of 2). And finally i got the DAC12 output on PTB1. Then measurements demonstrated that there was no real reference voltage deserving that name, but some 2.92 V behind the schottky D3.

  • RELEVANCY SCORE 2.50

    DB:2.50:Gdb Debugging On Kinetis With Segger Gdb Server On Linux z9


    Hi,
    I'm a Kinetis guy with most of my embedded experience with CodeWarrior or IAR IDEs on Windows. However, I just started to work with free GNU tools on a Linux host for compiling, debugging code for Kinetis MCUs. With gcc and gdb client from ARM, and gdb server and J-Link pod from Segger, you can compile, flash, and debug Kinetis devices with just command line operations. For me, its a different and very powerful model to work in.

    If you are interested in Kinetis development using gdb and Segger's gdb server and j-link, here are steps I used to get started. This does not cover makefiles and compiling with gcc.

    I'm using Ubuntu 12.04 running in VirtualBox. I have a J-Link connected to a FRDM-KL25Z.

    1. Install gcc (comes with gdb for ARM) maintained by ARM
    (Details at https://launchpad.net/gcc-arm-embedded )

    mac@mac-VirtualBox:/$ sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
    mac@mac-VirtualBox:/$sudo apt-get update
    mac@mac-VirtualBox:/$sudo apt-get install gcc-arm-none-eabi

    2. Install Segger J-Link software and documentation pack for Linux (DEB Installer 32-bit version)
    http://www.segger.com/jlink-software.html

    3. Start GDB Server
    mac@mac-VirtualBox:/$ JLinkGDBServer -device MKL25Z128xxx4 -if SWD -speed 1000 -endian little

    For the FRDM-KL25Z, select MKL25Z128xxx4 as the device. See list of all Segger supported devices here.
    Kinetis L-series devices use SWD for debugging, so that is selected as the interface.

    4. Start GDB client (command line):
    mac@mac-VirtualBox:/$ arm-none-eabi-gdb

    5. Connect to GDB Server
    (gdb) target remote localhost: 2331

    There are many references to gdb commands online.

    6. flash target
    (gdb) load myapp.elf

    7. Set symbols for debugger
    (gdb) file myapp.elf

    8. Use target specific commands. Here are some examples.

    (gdb) monitor reset
    (gdb) monitor go
    (gdb) monitor halt
    (gdb) dump srec memory file 0x0000 0x1000

    For target specific commands the gdb client can pass commands to the gdb server by adding monitor in front on the gdb server command. This is shown above. See Segger gdb server documentation for list of gdb server commands.

    See other great posts and blogs on related topics.
    https://community.freescale.com/message/348225#348225

    DIY Free Toolchain for Kinetis: Part 1 GNU ARM Build Tools | MCU on Eclipse

    Good luck!

    DB:2.50:Gdb Debugging On Kinetis With Segger Gdb Server On Linux z9

    Hello ,
    I am Manish .I have been working on open-source Embedded technologies on Linux platform since 2 years.Now I have just started to learn about free scale freedom board .But I'm not able to flash (Load) same code take from this community using OpenSDA. Fllowing thing I have done successfully
    1.I have installed Drivers of OpenSDA and verified for ttyACM0 port .
    2.Went through Boot-loader mode of OpenSDA and found "/media/BOOTLOADER" directory on Linux platform .
    3.Compiled sample code given on this community and tried to copy main.srec to "/media/BOOTLOADER"
    But expected output not got.

    so please guide me
    1.How to flash code freedom board (FRDM KL25Z) .
    2.How to set Debug Environment ?
    3.Is any utilities for flashing and Debugging available..?

    Regards
    Manish

  • RELEVANCY SCORE 2.50

    DB:2.50:Ayuda! ax



    Como puedo resolver este error de conexin "CANT+CONECT+(ARM+GDI+PROTOCOL+ADAPTER)+KL25Z" aparece a la hora de ejecutar el FLASH?

    DB:2.50:Ayuda! ax


    Como puedo resolver este error de conexin "CANT+CONECT+(ARM+GDI+PROTOCOL+ADAPTER)+KL25Z" aparece a la hora de ejecutar el FLASH?

  • RELEVANCY SCORE 2.50

    DB:2.50:New To Mqx On Frdm-K64f 9x



    Hello,

    I have used Codewarrior and Processor Expert on the FRDM-KL25z quite a bit although I've never used an RTOS and I need to use the full MQX RTOS so I can access the RTCS (If I understand it correctly, I can't just use MQX-Lite for SNMP which is included in the RTCS).

    I've found papers using either Kinetis Design Studio, Kinetis SDK, as well as others using Codewarrior and they are all very inconsistent. I'm curious if there is any third party or up to date documentation on how to get introduced to MQX on the FRDM-K64F

    On a more technical note, I currently have MQX loaded into processor expert with kinetis design studio although it has an error with the clock configuration for the fsl-uart, "

    DescriptionResourcePathLocationTypeTiming setting failed in Clock configuration 3 - it is impossible to set the following items: selected value (Baud rate)Networking Finalfsl_uart1/Baud rateProcessor Expert Problem

    If anybody could help with either issue, please answer and I would be much happy.

    Thanks!

    DB:2.50:New To Mqx On Frdm-K64f 9x


    Hello,

    Freescale MQX RTOS 4.1.1 has support for the Kinetis K64 (FRDM-K64F Freescale Freedom platform and TWR-K64F120M Development Kit). You can download it from the next link:

    Freescale MQX Software Solutions|Freescale

    After install MQX you can find some documents and examples that you can use as reference. I suggest to check the application note MQX_Writing_Your_First_Application, this is located at the path : C:\Freescale\Freescale_MQX_4_1\doc\mqx

    For UART please check the chapter Chapter 5 (Serial-Device Families) in the Freescale MQX RTOS I/O Drivers Users Guide, this document is located at the same path.

    Regarding the SNMP, you can find an example at the path C:\Freescale\Freescale_MQX_4_1\rtcs\examples\snmp Attached you can find the readme document for this example.

    In addition, other Freescale MQX products are pre-integrated by a broad ecosystem of Freescale Connect partner program. If you cannot find the protocols you require, please contact our partners, for up to date information.
    Network Management: Support for SNMP version 1 and 2 is built into RTCS. EAI offers MQX SNMPv3XML Parsing and Framing: The MQX XML component enables your device to accept data in XML, as well as send data packaged in XMLE-Mail Communications: The MQX SMTP module provides your device with outbound e-mail communication, and MQX POP3 provides the capability to accept incoming e-mail communication
    Available from Embedded Access MQX Design, Products, Services

    Have a great day, Sol

    -----------------------------------------------------------------------------------------------------------------------Note: If this post answers your question, please click the Correct Answer button. Thank you!-----------------------------------------------------------------------------------------------------------------------

  • RELEVANCY SCORE 2.50

    DB:2.50:Can't Boot Twr-K60n512 Standalone... j1



    I've been building a small app on a TWR-K60N512 (includes the serial card) for several days using a Segger JLink programmer connected to the 20-pin debug header. This has been working just fine. Now I tried removing the programmer to allow the board to run standalone and it doesn't boot. I'm not using the JLINK for power (J13/USB does that); so I'm confused.

    With JLINK attached, I can power cycle the board and then just run a JLINK script (see below) to restart it and that works fine; so that tells me that the boot flash is properly programmed (doesn't it?).

    I noticed that with the JLINK attached, the "RESET" button on the TWR-K60N512 also just locks up the board (I assume it goes to the same "space" as a powerup). Any ideas what I might be doing wrong?

    Thanks

    JLINK reset script:
    device=MK60DN512xxx10
    speed auto
    r
    h
    go
    exit

    DB:2.50:Can't Boot Twr-K60n512 Standalone... j1


    Mark,

    You're right!!!

    After reading your response and looking at my code (again), I realized I moved my call

    to SystemInit() (where I was disabling the WD) to a point much deeper in my startup.

    I now do the watchdog disable right out of the reset handler and it boots fine!!!

    Thanks very much!!

    Ed

    PS...

    An interesting take-away from this is that somehow the SEGGER (or something that is associated

    with that connection) magically disables the WD when connected.

  • RELEVANCY SCORE 2.48

    DB:2.48:About The Frdm-Kl25z Design Package ps



    Hello everyone.

    I was wondering, has anyone found the FRDM-KL25Z Design Package?

    The FRDM-KL25Z Quick Start Guide lists that zip file as part of the additional reference documents available on the FRDM-KL25Z web page on Freescale, www.freescale.com/FRDM-KL25Z, and it says that it's a "zip file containing all design source files for the FRDM-KL25Z hardware". However, I haven't been able to find it anywhere.

    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.

    Hope someone has found it and could post a link.

    Thanks.

    DB:2.48:About The Frdm-Kl25z Design Package ps


    Hello Roger.

    Thanks for the link. That's what I was looking for.

    It's too bad they're only available in OrCad/Allegro formats, and not in some more open software like EAGLE or DesignSpark.

  • RELEVANCY SCORE 2.48

    DB:2.48:Jlink With Imx25 ? c3



    Has anyone successfully used the Segger JLink with the iMX25, using the Linux toolset from Segger ? I'm trying to load a custom version of u-boot into RAM (and run it) to burn the fuses, so that we can use the ATK to program the FLASH. I've had little to no luck in getting this working. I've seen many people use OpenOCD with the JLink under Linux, but having never used OpenOCD, I'm hesitant to go down that road.

    DB:2.48:Jlink With Imx25 ? c3


    Has anyone successfully used the Segger JLink with the iMX25, using the Linux toolset from Segger ? I'm trying to load a custom version of u-boot into RAM (and run it) to burn the fuses, so that we can use the ATK to program the FLASH. I've had little to no luck in getting this working. I've seen many people use OpenOCD with the JLink under Linux, but having never used OpenOCD, I'm hesitant to go down that road.

  • RELEVANCY SCORE 2.48

    DB:2.48:Has Anyone Use The Frdm Kl25z With The Cc1125 Rf Narrowband Transceiver From Texas Instruments ? az



    I`m having problems transmitting packets. The configuration seem to be working correctly. I`m using a logic analyzer so I am pretty sure that the cicuit is set up correctly. Strobing the transmit command (0x35) should start a transmission of the FIFO buffer but nothing seems to happen. I`m using a spectrum analyzer with antenna to detect the signal.

  • RELEVANCY SCORE 2.48

    DB:2.48:Kinetis Kl14 Flash Programming Failed dc



    Hi.

    I am using Kinetis KL14 chip and jlink to program and debug code in iar. I have some problems. Some of chips can be programmed at the first few times, after that When i programmed it ,it appear the "Kinetis (connect):Timeout while halting CPU.CPU does not stop." and can't be programmed,

    But i use J-Link commander ,the Cortex-M0 can be identified.

    Thanks and regard,

    Yunhang.

    DB:2.48:Kinetis Kl14 Flash Programming Failed dc


    Hi.

    I am using Kinetis KL14 chip and jlink to program and debug code in iar. I have some problems. Some of chips can be programmed at the first few times, after that When i programmed it ,it appear the "Kinetis (connect):Timeout while halting CPU.CPU does not stop." and can't be programmed,

    But i use J-Link commander ,the Cortex-M0 can be identified.

    Thanks and regard,

    Yunhang.

  • RELEVANCY SCORE 2.47

    DB:2.47:Frdm-Kl25z Rev F Documentation ss



    Hello,

    I have a customer who has recently purchased a Rev F FRDM-KL25Z board. We cannot find any documentation indicating what changes have been made to the board between Rev E and Rev F. Is this information available?

    Thanks,

    Brad

    DB:2.47:Frdm-Kl25z Rev F Documentation ss


    Hello,

    I have a customer who has recently purchased a Rev F FRDM-KL25Z board. We cannot find any documentation indicating what changes have been made to the board between Rev E and Rev F. Is this information available?

    Thanks,

    Brad

  • RELEVANCY SCORE 2.47

    DB:2.47:How To Use Speed Sensor (Kinetis Frdm-Kl25z) ax



    Hi,

    I have an issue with the speed sensor. I use the Kinetis FRDM-KL25Z. On the FRDM-TFC there are 3 pins for a speed sensor. But I do not know how to use. I looked at the sample code but there is nothing. Do you have a code to exploit this sensor.

    thank you

    DB:2.47:How To Use Speed Sensor (Kinetis Frdm-Kl25z) ax


    Hello Berland,

    I hope you are doing great. As Eli mentioned on another discussion, there is no Sample Code on the speed sensor. But check the videos provided by Eli Hughes, they explain how the pins work and you will need to work on the code yourself.

    Regards,

  • RELEVANCY SCORE 2.47

    DB:2.47:Hid Bluetooth With Frdm Kl25z cf



    I'm trying to make a bluetooth air mouse with the help of FRDM-KL25Z.

    I have found two hid bluetooth- 1.Sparkfun's BlueSmirf hid 2. Adafruit's Bluefruit EZ-key

    Has anyone used this bluetooth modules in their projects?

    I'm searching for their component library in codewarrior.

    DB:2.47:Hid Bluetooth With Frdm Kl25z cf


    I'm trying to make a bluetooth air mouse with the help of FRDM-KL25Z.

    I have found two hid bluetooth- 1.Sparkfun's BlueSmirf hid 2. Adafruit's Bluefruit EZ-key

    Has anyone used this bluetooth modules in their projects?

    I'm searching for their component library in codewarrior.

  • RELEVANCY SCORE 2.47

    DB:2.47:Print Time And Date With Frdm-Kl25z Board 11



    I have the FRDM-KL25Z board and I am trying to print the current time and date to the console using the TimeDate_LDD driver. Right after the time and date are printed to the console it gets stuck in the routine below. Has anyone ever seen this problem and know how to fix it??

    PE_ISR(Cpu_Interrupt)

    {

    /* This code can be changed using the CPU component property "Build Options / Unhandled int code" */

    PE_DEBUGHALT();

    }

    DB:2.47:Print Time And Date With Frdm-Kl25z Board 11


    Hi Mike,

    I suspect you run into a stack overflow or heap problem. Printf() and its friends are very problematic in my view, see the links below.

    Anyway, as you still desire to use it, I have attached an example project for the KL25Z using Kinetis Design Studio.

    It asks for a name and a number, and prints it to the OpenSDA USB CDC connection:

    Links to the printf() topic:
    Why I dont like printf() | MCU on EclipseTutorial: Printf() with (and without) Processor Expert | MCU on EclipseTutorial: printf() and Hello World! with the Freedom KL25Z Board | MCU on Eclipseprintf() with the FRDM-KL25Z Board and without Processor Expert | MCU on Eclipse

    I hope this helps,

    Erich

  • RELEVANCY SCORE 2.47

    DB:2.47:Two Different Clock Configurations Using Processor Expert With Frdm-Kl25z Board? 9j



    Is there anyway to use two different clock configurations using Processor Expert? If so, how do I do this. I am using MQX Lite with the FRDM-KL25Z board. I want to put the application in low power mode after I go through a state machine talking on the serial port. My problem is that when I try enabling low power mode, I am not able to produce 9600 baud with the AsynchroSerial driver.

    Thanks,

    Mike

    DB:2.47:Two Different Clock Configurations Using Processor Expert With Frdm-Kl25z Board? 9j


    Hi,

    First you need to have two clock configurations for the CPU component, check the image below, here configuration 0 is configured in PEE mode and the configuration 1 is configured in BLPI mode allowing low power modes.

    In the Serial component enable the component in both clock configurations and set a baud rate that both configurations can achieve.

    I hope this information can help you.

    Regards,
    -----------------------------------------------------------------------------------------------------------------------
    Note: If this post answers your question, please click the Correct Answer button. It would be nice!
    -----------------------------------------------------------------------------------------------------------------------

  • RELEVANCY SCORE 2.47

    DB:2.47:Opensda Not Working For Kds V1.0.1 In Linux. fx



    Linux: Ubuntu 12.04 64-bit in VirturalBox 4.3.10

    Host: Win7 64-bit

    Problem: Unable to run OpenSDA in either PEMicro or MBED with FRDM-KL25Z

    I still have problems with PE OpenSDA in Linux (and MBED CMSIS-DAP version as wellsee last paragraph).

    I downloaded the latest KDS 1.0.1 debian version for Ubuntu 12.04 64-bit in a Win7 64-bit VirtualBox virtual machine.

    The file name is kinetis-design-studio_1.0.1-1_i386.deb.bin. I had to remove the .bin. Not sure why this is done.

    Also, Id recommend a separate docs tarball as its very difficult to extract the docs if you dont know how to use dpkg to extract the package.

    The previous package (KDS 1.0.0) was not removed, so I removed it manually.

    I reviewed all the PEMicro docs.

    Both libc6-i386 and libusb-0.1-4:i386 are installed to support 64-bit Linux.

    I installed the latest drivers and ran the scripts in opt/Freescale/KDS_1.0.1/pemicro/drivers. The target runs MSD-DEBUG_FRDM_KL25Z_Pemicro_V114.SDA
    NOTE: the line /sbin/udevcontrol reload_rules in /opt/Freescale/KDS_1.0.1/pemicro/drivers/libusb_64_32/setup.sh causes an error since udevcontrol is not on my system.

    I can build a KL25Z example that uses PEx to blink an LED. No errors or warnings.

    However, I cannot connect to OpenSDA. It almost works. Below is the message I get:

    PE GDB Server, Version 2.02.00.03

    Copyright 2014, PE Microcomputer Systems Inc, All rights reserved

    Loading library /opt/Freescale/KDS_1.0.1/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_1.0.4.201404181439/lin/gdi/unit_ngs_arm_internal.so ... Done.

    Command line arguments: -device=KL25Z128M4 -startserver -serverport=7224 -interface=OPENSDA -port=USB1 -speed=5000 -USE_CYCLONEPRO_RELAYS=0 -FORCE_MASS_ERASE=0

    Device selected is kl25z128m4

    User Specified Hardware Selection : Interface=OPENSDA and Port=USB1

    Connecting to target.

    OpenSDA detected - Flash Version 1.14

    Device is KL25Z128M4.

    Mode is In-Circuit Debug.

    'Kinetis' is a registered trademark of Freescale.

    (C)opyright 2012, PE Microcomputer Systems, Inc. (www.pemicro.com)

    API version is 101

    PE-EConnection from "127.0.0.1" via 127.0.0.1

    PE-ERROR: Target is not connected

    Disconnected from "127.0.0.1" via 127.0.0.1

    Here is my debug configuration setting:

    Note on MBED Firmware:

    It seems the GDB OpenOCD using the CMSIS-DAP driver is broken. The command lsusb returns a device named NXP LPC1768. Following the instructions in the quick start guide, I get timeout errors. The target is running mbed_if_v2.1_frdm_kl25z.s19 which is the latest version.

    So for now, Im putting this on hold.

    DB:2.47:Opensda Not Working For Kds V1.0.1 In Linux. fx


    Linux: Ubuntu 12.04 64-bit in VirturalBox 4.3.10

    Host: Win7 64-bit

    Problem: Unable to run OpenSDA in either PEMicro or MBED with FRDM-KL25Z

    I still have problems with PE OpenSDA in Linux (and MBED CMSIS-DAP version as wellsee last paragraph).

    I downloaded the latest KDS 1.0.1 debian version for Ubuntu 12.04 64-bit in a Win7 64-bit VirtualBox virtual machine.

    The file name is kinetis-design-studio_1.0.1-1_i386.deb.bin. I had to remove the .bin. Not sure why this is done.

    Also, Id recommend a separate docs tarball as its very difficult to extract the docs if you dont know how to use dpkg to extract the package.

    The previous package (KDS 1.0.0) was not removed, so I removed it manually.

    I reviewed all the PEMicro docs.

    Both libc6-i386 and libusb-0.1-4:i386 are installed to support 64-bit Linux.

    I installed the latest drivers and ran the scripts in opt/Freescale/KDS_1.0.1/pemicro/drivers. The target runs MSD-DEBUG_FRDM_KL25Z_Pemicro_V114.SDA
    NOTE: the line /sbin/udevcontrol reload_rules in /opt/Freescale/KDS_1.0.1/pemicro/drivers/libusb_64_32/setup.sh causes an error since udevcontrol is not on my system.

    I can build a KL25Z example that uses PEx to blink an LED. No errors or warnings.

    However, I cannot connect to OpenSDA. It almost works. Below is the message I get:

    PE GDB Server, Version 2.02.00.03

    Copyright 2014, PE Microcomputer Systems Inc, All rights reserved

    Loading library /opt/Freescale/KDS_1.0.1/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_1.0.4.201404181439/lin/gdi/unit_ngs_arm_internal.so ... Done.

    Command line arguments: -device=KL25Z128M4 -startserver -serverport=7224 -interface=OPENSDA -port=USB1 -speed=5000 -USE_CYCLONEPRO_RELAYS=0 -FORCE_MASS_ERASE=0

    Device selected is kl25z128m4

    User Specified Hardware Selection : Interface=OPENSDA and Port=USB1

    Connecting to target.

    OpenSDA detected - Flash Version 1.14

    Device is KL25Z128M4.

    Mode is In-Circuit Debug.

    'Kinetis' is a registered trademark of Freescale.

    (C)opyright 2012, PE Microcomputer Systems, Inc. (www.pemicro.com)

    API version is 101

    PE-EConnection from "127.0.0.1" via 127.0.0.1

    PE-ERROR: Target is not connected

    Disconnected from "127.0.0.1" via 127.0.0.1

    Here is my debug configuration setting:

    Note on MBED Firmware:

    It seems the GDB OpenOCD using the CMSIS-DAP driver is broken. The command lsusb returns a device named NXP LPC1768. Following the instructions in the quick start guide, I get timeout errors. The target is running mbed_if_v2.1_frdm_kl25z.s19 which is the latest version.

    So for now, Im putting this on hold.

  • RELEVANCY SCORE 2.46

    DB:2.46:U4 Ic Is Mismatched In Frdm-Fxs-Multi-B Rev C js



    Hi freescale,

    We are using FRDM-KL25z with FRDM-FXS-MULTI-B rev C, In FRDM-FXS-MULTI-B rev C schematic U4 placement you have used FXAS21000cq but in board you used another vendor ic, its top marking is LEON-LOT08-C3908-DJJZT. if you used freescale ic means its not reflecting the freescale code 263 in top please clarify to me

    DB:2.46:U4 Ic Is Mismatched In Frdm-Fxs-Multi-B Rev C js


    Hi Deepi,

    It is indeed Freescale IC, LEON is an internal nickname for the FXAS21000CQ. It looks like some preproduction samples use such a top marking.

    That said, the FXAS21000CQ is no longer manufactured and has been replaced by FXAS21002CQR1. Our AN4917 describes the hardware and software differences between these parts and provides information on transitioning from FXAS21000CQ to FXAS21002CQR1.

    I hope it helps.

    Regards,
    Tomas

    PS: If my answer helps to solve your question, please mark it as "Correct" or Helpful. Thank you.

  • RELEVANCY SCORE 2.46

    DB:2.46:First Impression With Kds 1.1.0 Can't Debug Frdm-K64f With Openocd/Cmsis-Dap f7



    Just installed KDS 1.1.0.

    Wrote a simple program using Processor Expert to blink an LED.

    I tried an FRDM-KL25Z. It works with OpenOCD/CMSIS-DAP and OpenSDA/PE GDB Server.

    I tried an FRDM-K64F. Was able to get it to work with OpenOCD/Segger J-Link firmware but can't get it to go into debugger with OpenOCD/CMSIS-DAP.

    I tried the latest firmware 20140530_k20dx128_k64f_if_mbed.bin. It displayed these messages in the Console then went silent:

    When I manually switched to Debug perspective, I see this:

    I tried an older version of the firmware: DEBUG_K64F_MBED_PEMICRO_V108.bin, which gave me the following error:

    When I tried DEBUG-FRDM-K64F_Pemicro_v108.bin firmware, it would not communicate with PE GDB Server.

    Any suggestions are appreciated.

    DB:2.46:First Impression With Kds 1.1.0 Can't Debug Frdm-K64f With Openocd/Cmsis-Dap f7


    Hi Eric

    I have experienced an error with OpenOCD. Please have a look my reply for details

    Debugging on FRDM-K64F on KDS 1.1.1

    I will appreciate your help in this regard

    Bilal

  • RELEVANCY SCORE 2.46

    DB:2.46:Basic Question About Gpio Usage In Kinetis Devices 7j



    Hi! I have a very basic question about the use of the GPIO ports in Kinetis devices (I'm using FRDM-KL25Z and CW v10.6).

    I have been using a library for an LCD 16x2 display with the HCS08 family, but now I wanted to port it to the KL25Z.

    My question is with the following function:

    void LCD_send_byte(char address, char data)
    {
    unsigned int temp;
    PTBD_PTBD0 = address; // config the R/S line
    LCD_ENABLE = 0; // set LCD enable line to 0
    LCD_send_nibble(data 4); // send the higher nibble
    LCD_send_nibble(data 0x0f); // send the lower nibble
    for (temp=1000; temp; temp--);
    }

    DB:2.46:Basic Question About Gpio Usage In Kinetis Devices 7j


    Hi

    I don't know what the S08's PTBD_PTBD0 does but the Kinetis has the ability to set, clear or toggle single/multiple pins. What the Kinetis can't do is set of clear single pins based on a variable in a single instruction.

    However, even with more instructions it will do it much faster than an S08 with its single one ;-)

    Regards

    Mark

    Kinetis: Tasker Kinetis support

    KL25: Tasker Kinetis FRDM-KL25Z support / Tasker Kinetis TWR-KL25Z48M support

    LCD: http://www.utasker.com/docs/uTasker/uTaskerLCD.PDF

    For the complete "out-of-the-box" Kinetis experience and faster time to market

  • RELEVANCY SCORE 2.46

    DB:2.46:Frdm-Kl25z Rtc Problem f8



    We are using FRDM-KL25Z evaluation board. I am using CW 10.3 with PE. I added a RTC component using PE. What I did is just kept RTC keep time counting on. My intension is to get the current RTC time at some instant. So I call the function RTC_GetTime(RTC1_DeviceData, rtc) which is suppose to return second, minute, hour, date, day, month, year values and stores into a rtc object. However, when I am running this code in debug mode(using OpenSDA USB), and at point where it executes the function RTC_GetTime(RTC1_DeviceData, rtc), the code stops at an unknown interrupt,

    PE_ISR(Cpu_Interrupt)//code stops

    {

    /* This code can be changed using the CPU component property "Build Options / Unhandled int code" */

    PE_DEBUGHALT();

    }

    I did automatic initialize rtc device, and called rtc_enable() function as well.

    Can anyone provide a possible solution for this?

    Thanks in advance.

    DB:2.46:Frdm-Kl25z Rtc Problem f8


    could you give me more details on the clock settings?

  • RELEVANCY SCORE 2.46

    DB:2.46:Usb Host Hid Problems To Attach Multi-Interface Usb Keyboard Device On Frdm-Kl25z f8



    Hello! I try to make USB host using FRDM-KL25Z but it has some

    problem to attach multi-interface USB keyboard.

    I installed USB Stack v4.1.1 and CWv10.4.

    I have gaming keyboard and multimedia keyboard which have two

    interface in a single usb device. If I connect it to the PC, it install two keyboards.

    Anyway I programmed USB host on the FRDM-KL25Z like below in a ProcessorExpert.C.

    Made two keyboard tasks.

    ...

    _usb_event_init(USB_Keyboard1_Event); _usb_event_init(USB_Keyboard2_Event); ... for(;;){ if(keyboard1_hid_device.DEV_STATE != USB_DEVICE_IDLE) { Keyboard1_Task(); } if(keyboard2_hid_device.DEV_STATE != USB_DEVICE_IDLE) { Keyboard2_Task(); }

    Poll();

    }

    ...

    In a Device_driver.info.c

    const USB_HOST_DRIVER_INFO DriverInfoTable[] ={ { // Keyboard1 {0x00,0x00}, /* Vendor ID per USB-IF */ {0x00,0x00}, /* Product ID per manufacturer */ USB_CLASS_HID, /* Class code */ USB_SUBCLASS_HID_BOOT, /* Sub-Class code */ USB_PROTOCOL_HID_KEYBOARD, /* Protocol */ 0, /* Reserved */ usb_host_hid_keyboard1_event /* Application call back function */ }, { // Keyboard2 {0x00,0x00}, /* Vendor ID per USB-IF */ {0x00,0x00}, /* Product ID per manufacturer */ USB_CLASS_HID, /* Class code */ USB_SUBCLASS_HID_BOOT, /* Sub-Class code */ USB_PROTOCOL_HID_KEYBOARD, /* Protocol */ 0, /* Reserved */ usb_host_hid_keyboard2_event /* Application call back function */ }, { {0x00,0x00}, /* All-zero entry terminates */ {0x00,0x00}, /* driver info list. */ 0, 0, 0, 0, NULL }};

    But it does not working properly, for gaming keyboard, Only Keyboard2_Task() working properly. When i press more than 6 keys at the same time KL25Z does not working any more until reset the MCU.

    I think the usb host stack may some problems to initiate multi-interface USB device.

    Below is the logo message when attach the 2-interface keyboard usb device to KL25Z usb host.

    ===========================================

    USB HID Keyboard Waiting for attached...

    [KBD1] ----- Attach Event -----

    [KBD1] State = 0 Class = 3 SubClass = 1 Protocol = 1

    [KBD2] ----- Attach Event -----

    [KBD2] State = 0 Class = 3 SubClass = 1 Protocol = 1

    [KBD1] ----- Attach Event -----

    [KBD1] State = 1 Class = 3 SubClass = 1 Protocol = 1

    [KBD1] HID device already attached

    [KBD2] ----- Attach Event -----

    [KBD2] State = 1 Class = 3 SubClass = 1 Protocol = 1

    [KBD2] HID device already attached

    [KBD1] ----- Interfaced Event -----

    [KBD2] ----- Interfaced Event -----

    [KBD1] ----- Interfaced Event -----

    [KBD2] ----- Interfaced Event -----

    [KBD1] Keyboard device interfaced, setting protocol...

    [KBD1] Error in usb_class_hid_set_protocol! STATUS 0xca

    [KBD2] Keyboard device interfaced, setting protocol...

    [KBD2] Keyboard device ready, try to press the keyboard

    ===========================================

    How can I solve this issue?

    DB:2.46:Usb Host Hid Problems To Attach Multi-Interface Usb Keyboard Device On Frdm-Kl25z f8


    Hello! I try to make USB host using FRDM-KL25Z but it has some

    problem to attach multi-interface USB keyboard.

    I installed USB Stack v4.1.1 and CWv10.4.

    I have gaming keyboard and multimedia keyboard which have two

    interface in a single usb device. If I connect it to the PC, it install two keyboards.

    Anyway I programmed USB host on the FRDM-KL25Z like below in a ProcessorExpert.C.

    Made two keyboard tasks.

    ...

    _usb_event_init(USB_Keyboard1_Event); _usb_event_init(USB_Keyboard2_Event); ... for(;;){ if(keyboard1_hid_device.DEV_STATE != USB_DEVICE_IDLE) { Keyboard1_Task(); } if(keyboard2_hid_device.DEV_STATE != USB_DEVICE_IDLE) { Keyboard2_Task(); }

    Poll();

    }

    ...

    In a Device_driver.info.c

    const USB_HOST_DRIVER_INFO DriverInfoTable[] ={ { // Keyboard1 {0x00,0x00}, /* Vendor ID per USB-IF */ {0x00,0x00}, /* Product ID per manufacturer */ USB_CLASS_HID, /* Class code */ USB_SUBCLASS_HID_BOOT, /* Sub-Class code */ USB_PROTOCOL_HID_KEYBOARD, /* Protocol */ 0, /* Reserved */ usb_host_hid_keyboard1_event /* Application call back function */ }, { // Keyboard2 {0x00,0x00}, /* Vendor ID per USB-IF */ {0x00,0x00}, /* Product ID per manufacturer */ USB_CLASS_HID, /* Class code */ USB_SUBCLASS_HID_BOOT, /* Sub-Class code */ USB_PROTOCOL_HID_KEYBOARD, /* Protocol */ 0, /* Reserved */ usb_host_hid_keyboard2_event /* Application call back function */ }, { {0x00,0x00}, /* All-zero entry terminates */ {0x00,0x00}, /* driver info list. */ 0, 0, 0, 0, NULL }};

    But it does not working properly, for gaming keyboard, Only Keyboard2_Task() working properly. When i press more than 6 keys at the same time KL25Z does not working any more until reset the MCU.

    I think the usb host stack may some problems to initiate multi-interface USB device.

    Below is the logo message when attach the 2-interface keyboard usb device to KL25Z usb host.

    ===========================================

    USB HID Keyboard Waiting for attached...

    [KBD1] ----- Attach Event -----

    [KBD1] State = 0 Class = 3 SubClass = 1 Protocol = 1

    [KBD2] ----- Attach Event -----

    [KBD2] State = 0 Class = 3 SubClass = 1 Protocol = 1

    [KBD1] ----- Attach Event -----

    [KBD1] State = 1 Class = 3 SubClass = 1 Protocol = 1

    [KBD1] HID device already attached

    [KBD2] ----- Attach Event -----

    [KBD2] State = 1 Class = 3 SubClass = 1 Protocol = 1

    [KBD2] HID device already attached

    [KBD1] ----- Interfaced Event -----

    [KBD2] ----- Interfaced Event -----

    [KBD1] ----- Interfaced Event -----

    [KBD2] ----- Interfaced Event -----

    [KBD1] Keyboard device interfaced, setting protocol...

    [KBD1] Error in usb_class_hid_set_protocol! STATUS 0xca

    [KBD2] Keyboard device interfaced, setting protocol...

    [KBD2] Keyboard device ready, try to press the keyboard

    ===========================================

    How can I solve this issue?

  • RELEVANCY SCORE 2.46

    DB:2.46:Frdm-Kl25z Motor Control Shield Purchase fd



    Hi.. Is there any possibility to purchase an additional FRDM KL25Z motor control shield?

    DB:2.46:Frdm-Kl25z Motor Control Shield Purchase fd


    The FRDM Motor Control Shield is not available for individual sale at this time. However, we do plan to provide that ability in the future.

  • RELEVANCY SCORE 2.46

    DB:2.46:Question About Setup For Receiving Break Character On Frdm-Kl25z k8



    Hi,

    I have two FRDM-KL25Z boards and I am making them communicate back and forth using their UART. The boards are comunicating via RS485 so each FRDM board has an Adreno RS485 shield board mounted to it to provide the RS485 transceiver. I am using 9 bits of data with the 9th bit being the address wakeup since I want to have multiple nodes on the same bus. I am also using DMA on the receiver side of the Uart to make it faster and more efficient.

    So far everything has been working perfectly. I have one board acting as the master and the other as a slave. They have been passing 1K data packets back and forth without any errors. However, I want to add the capability where the master can send a break character and cause the slave to abort the current data packet and reset the receive buffer back to the beginning. I used processor expert to set up the break event for the Uart. I believe that when a break character is received it should cause a receive interrupt on the Uart with a framing error. The framing error will cause the interrupt to call my OnBreak event. Processor expert generated this code for me, but the problem is I am never seeing a receive interrupt with a framing error. I am trying to figure out what I am doing wrong.

    Processor expert did not generate any code to set LBKDIE (LIN Break Detect interrupt enable) in the Baud rate register high. LBKDIE uses LBKDIF in status register 2. Is this a completely separate feature from receiving break characters from a framing error?

    Can someone please help me get my setup correct such that I can receive a break character?

    Thank You,

    David Bon

    DB:2.46:Question About Setup For Receiving Break Character On Frdm-Kl25z k8


    Hi,

    I have two FRDM-KL25Z boards and I am making them communicate back and forth using their UART. The boards are comunicating via RS485 so each FRDM board has an Adreno RS485 shield board mounted to it to provide the RS485 transceiver. I am using 9 bits of data with the 9th bit being the address wakeup since I want to have multiple nodes on the same bus. I am also using DMA on the receiver side of the Uart to make it faster and more efficient.

    So far everything has been working perfectly. I have one board acting as the master and the other as a slave. They have been passing 1K data packets back and forth without any errors. However, I want to add the capability where the master can send a break character and cause the slave to abort the current data packet and reset the receive buffer back to the beginning. I used processor expert to set up the break event for the Uart. I believe that when a break character is received it should cause a receive interrupt on the Uart with a framing error. The framing error will cause the interrupt to call my OnBreak event. Processor expert generated this code for me, but the problem is I am never seeing a receive interrupt with a framing error. I am trying to figure out what I am doing wrong.

    Processor expert did not generate any code to set LBKDIE (LIN Break Detect interrupt enable) in the Baud rate register high. LBKDIE uses LBKDIF in status register 2. Is this a completely separate feature from receiving break characters from a framing error?

    Can someone please help me get my setup correct such that I can receive a break character?

    Thank You,

    David Bon

  • RELEVANCY SCORE 2.46

    DB:2.46:Is Codewarrior Free For The Frdm-K20d50m Board? 3a



    Is Codewarrior free for the FRDM-K20D50M board?

    Also a couple of questions about the hardware:

    Is the Segger Jlink compatible, and if so which model?

    and how do I reprogram the original touch application?

    I've tried dragging and dropping some of the precompiled examples into the FRDM-K20D50 folder and while the blue LED comes on and the green LED blink,

    the original app does not come up. I can change the the color of the multicolor LED by using the blink_red and blink_blue srec, but can't get the slider to work??

    Many thanks,

    Tim

    DB:2.46:Is Codewarrior Free For The Frdm-K20d50m Board? 3a


    Yes, there is 64 KByte code size limitation for Kinetis-L, and 128 KByte for Kinetis-K. But this limitation applies to the debugger only, and only for .elf (debug information) files.

    There is no limiation with the gcc compiler (default since 10.3), so no limits apply to the compiler/assembler/linker. And there is no code size limit if you download e.g. the S19 or assembly application (or downloading just the file to the target: Flashing with a Button (and a Magic Wand) | MCU on Eclipse).

  • RELEVANCY SCORE 2.45

    DB:2.45:Any Plans For Mac Osx Firmware Drivers For The Frdm Kl25z Board? zd



    Are there any plans to supply Mac OSX firmware drivers for the FRDM KL25Z board?

    "Note: The MSD Flash Programmer currently only operates correctly on Windows operating systems", quote from page 6 OpenSDA User's Guide.

    DB:2.45:Any Plans For Mac Osx Firmware Drivers For The Frdm Kl25z Board? zd


    I do not have a Mac :-(, but PE has released a new firmware (V1.14) (https://www.pemicro.com/opensda/), so you might give it a try.

  • RELEVANCY SCORE 2.45

    DB:2.45:Frdm-Kl25z - Cant Load Precompiled Examples fj



    Hi,

    The title might be completely wrong, but I'm going to explain what I can and cant do and hopefully it will make sense.

    I plug the board in using the SDA usb port. A virtual com port enumerates as a "OpenSDA - CDC Serial Port" (v1.1.2600.1). I also have v11.1.0.0 of Jungo installed. I dont have the PEMicro OpenSDA Debug Driver installed. A flash drive ("FRDM-KL25Z") appears with a couple of HTML files, some driver info, and a LASTSTAT.txt.

    No software seems to be running on the Freescale ARM - no LEDs are flashing.

    If I cycle the power holding the reset button, then the green LED flashes, and a flash drive "BOOTLOADER" appears. I copy "DEBUG-APP_Pemicro_v102" into the drive and cycle the power again. I dont get any prompts for the PEMicro OpenSDA Debug Driver.

    Going back into BOOTLOADER, I load the "MSD-FRDM-KL25Z_Pemicro_v105" back into the device. Next I go into BOOTLOADER and try copying the *.srec files.

    But nothing I do gets the tricoloured LED back up and flashing, or installs the OpenSDA debug drivers.

    Am I doing something drastically wrong, and how can I get it back to the world of the living?

    I've installed CodeWarrior 10.3 Beta and would desperately like to start some development.

    Regards,

    Stephen

    DB:2.45:Frdm-Kl25z - Cant Load Precompiled Examples fj


    Hi Stephen,

    no, the K20 cannot be re-programmed, as it is secured with mass erase disabled. See

    Use removed MK20 part from freedom board

    Erich

  • RELEVANCY SCORE 2.45

    DB:2.45:I Recently Purchased Frdm-Kl25z Board. I Am Using Keil Ide For Debugging. Anybody Having Uart,Spi Driver Code . Please Share zd



    i recently purchased frdm-kl25z board. i am using Keil IDE for debugging. anybody having UART,SPI driver code . please share

  • RELEVANCY SCORE 2.45

    DB:2.45:How Can I Use Single Ended And Differential Pairs Channels Together In A Same Application Using Processor Expert? mk



    I already used it in differential mode only. But when I configured the ADC with differential channels and single ended channels together, the processor expert reported me an error: All channels have to be in the same mode!. I was using the FRDM KL25Z.