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

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

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

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

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

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

ANSWER 1

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

ANSWER 2

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

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

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

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

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

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

ANSWER

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2. Keep Reset button pressed when you are connecting USB Cable on OpenSDA Port (closest one from the silver package oscillator)

3. Release Reset button

4. Drag'n drop or copy-paste the OpenSDA application file MSD.SDA if you want to use the Flash Programmer Mode or the DEBUG.SDA if you want to debug with IAR or Codewarrior or the CMSIS-DAP.SDA if you want to debug with Keil or Coocox in the BOOTLOADER drive in windows explorer

5. Unplug and replug the usb port WITHOUT PRESSING THE RESET BUTTON

6. With MSD app a new drive frdm-kl25z should appear in windows explorer (where you must drag'n drop or copy-paste the precompiled srec projects), with DEBUG a new component should appear in device manager / jungo "Opensda debug ..." and same with CMSIS-DAP without any drive available in windows explorer.

Could you just confirm :

1. Do you have an antivirus or a firewall installed, which encrypt any new removable drive connected to the usb ports of your computer (like Sophos for example) ?

2. Which SDA application are you trying to use ? MSD, DEBUG or CMSIS-DAP ?

i had done the BOOTLOADER mode in FRDM-KL25Z board, and i had loadded the MSD_FRDM-KL25Z_PEMICRO_v102.SDA file to the board, after this i unpluged the usb and repluged it again, but there is no response from the board, there is no drive is created like FRDM-KL25Z, and also led is not blinking. it goes blank, please guid me with this issue.

cant able to load the example .srec file which is given on the .zip file for testing weather the board is entering the MSD mode or Debug mode. And i am using the IAR EW for this opensda application.

Well I have almost same problem. I wanted to use SDA for dubugging so I hold reset button while plugging in usb cable. After that I can't see the bootloader drive. I have tried again to use in normal mode and couldn't see FRDM-KL25Z drive. When I connect the board to my computer, I see nothing. I really need help.

Thanks a lot for your immediate response. The operating system of my computer is windows8 and now I managed to see Bootloader drive in windows explorer but not FRDM-KL25Z for drive. I still don't know the reason. Can you help me with that?

First of all download and extract the two zip files attached to this message.

When you are in BOOTLOADER mode with BOOTLOADER drive available in Windows Explorer (keep reset button pressed when pugging USB to SDA connector then releasing reset button), copy-paste or drag'n drop the MSD-FRDM-KL25Z_Pemicro_v112.SDA file in the BOOTLOADER drive.

After copy/drag ended, unplug and replug the USB cable to the SDA connector and a new drive "frdm-kl25z" should appear in Windows explorer.

To check that your board has been successfully upgraded in MSD mode, simply copy-paste or drag'n drop the FRDM-KL25Z_Blinky_green.srec precompiled project example in the "frdm-kl25z" drive and verify that the RGB led is blinking green.

ok, do I have to stay in BOOTLOADER mode or do I have to switch to MSD mode for openSDA debugging? I have tried from MSD mode and got java.lang.NullPointerException. I have created my project with OpenSDA debugging.

You must return in BOOTLOADER mode (keep reset button pressed when pugging USB to SDA connector then releasing reset button) to load the OpenSDA Debug mode (drag'n drop the SDA file in the BOOTLOADER drive in Explorer), or each time you want to change the OpenSDA mode (MSD, Debug, CMSIS-DAP, MBED ...) draging'n droping the corresponding SDA file in the BOOTLOADER drive.

I did the same thing you have said and get the following error message.

Besides, I can not see the driver for OpenSDA in device managemet in BOOTLOADER mode. Remember that I get this error when I want to debug, still in BOOTLOADER mode after copying DEBUG-APP_Pemicro_v106-All-Freedom.SDA. When I exit Bootloader mode and connect the board again, I can see the drivers and when I try to debug I get the following error.

I know I asked to much, can you help me with errors? or refer me to wel documented tutorial on how to debug from CodeWorrior?

I am connecting freedom board KL25 and KL05 to my computer. It is going to Bootloder mode and MSD mode(green led is blinking)but when i copy paste the CMSIS_DAP_OpenSDA.s19 file into freedom board then nothing showing up in the windows explorer or in the keil. any help is really appriciated. Iam using windows 7 and keil.

Habtamu Tolera: When in bootloader mode, you cannot use the board with the debugger. The only thing the board can do is load new OpenSDA applications. You must unplug, and then re-plug in the board before the debug OpenSDA application will begin running (as you've have seen in your tests).

The error about the missing memory configuration file is likely an issue with the particular project not being able to find the .mem configuration file, and is not related to OpenSDA. To check to see where your project thinks that file is at, bring up the Debug Configuration window (Run > Debug Configurations) and select the debug configuration you are using. On the "Main" tab, there should be a box that says "Connection". Click on the Edit button next to it. That will bring up another dialog box which will have a "Target" field. Click on the "Edit..." button next to that field, which will bring up another dialog box. In that dialog box, there will be two tabs labeled "Initialization" and "Memory". Make sure the paths to the .tcl and .mem files are correct on those tabs, as that is likely where the issue is. The correct path will depend on the particular project you are using, but hopefully it'll be somewhat obvious what the error is (perhaps a hard coded address) so that you can point it to the correct address on your hard drive.

Prajas John: After you have loaded the CMSIS-DAP application (and then unplugged and re-plugged in your board so that the CMSIS-DAP application begins to run then), you will no longer see anything in Windows Explorer. You will also not see the green LED turn on, except for a short blink immediately after pluggging in the board. You can follow this Keil app note for setting up a Keil project to use OpenSDA, as by default the sample code still uses the PEMicro connection. Which on a related note, you can also use the P&E Micro debugger OpenSDA app to debug with Keil as well, so you are not required to use the CMSIS-DAP debug app.

I'd also like to warn anyone using Windows 8.1 that the FRDM Bootloader will not download new applications successfully. It will enumerate as a mass storage device like normal, but when copying the new app to the board (like the MSD or debug apps), the download will fail.

We're working with P&E to see what types of solutions are available to get it working again on Win 8.1. Also note that the board still works correctly with all other operating systems (even Windows 8.0).

There was an update a few months back to get even the app bootloader to work under Linux, and newer Freedom boards come with that firmware already loaded (and thus work with Linux out of the box). P&E is making further improvements though, and the firmware update for older FRDM boards is not currently available for download on their website, but it should be up "within a few days". I'll post when that becomes available.

They're also still working on getting Windows 8.1 to work. The problem is unintended untyped writes by Windows 8.1, and filtering those out from desired writes by doing the drag-and-drop. They're working on patching that up, but did not have a date yet for that support.

Kevin:

The bare-metal CW10 project files can be found in \klxx-sc-baremetal\build\cw. However you'll probably notice that there are not CW project files for all the project source available. Instead the focus for CW was put on Processor Expert, which you can find those projects in the \kl25_sc_rev9\klxx-sc-pex\projects folder.

If you still want to bring in the bare-metal projects though into a CW10 project, I would recommend taking one of the pre-existing CW10 bare-metal projects, and bringing in the source files into that, rather than creating a brand new CW10 project. The errors you were seeing were very likely due to it not having the paths properly set to find all the header and C files, and the pre-done CW10 projects will have that already setup.

Thạch:

I'd need to look into that more, but maybe someone can help point you in the right direction in the meantime.

The P&E apps are now updated to support both Linux and Mac. Unfortunately you will still need to find a Windows 7/XP/8.0 computer first in order to load the bootloader firmware update, but after that one initial time, you can use it with Linux without a problem. Note that Windows 8.1 support is still being worked on.

Detailed OpenSDA bootloader firmware upgrade instructions:

Download the latest OpenSDA Firmware Apps zip, then extract the OpenSDA_Bootloader_Update_App_v110_2013_11_19.zip inside it to get access to BOOTUPDATEAPP_Pemicro_V110.SDA

Also read the BOOTUPDATEAPP_release_notes.txt file

Hold down the reset button on your FRDM board

While holding it down, plug in the board, and then release the reset button

The board will enumerate as BOOTLOADER

Explore the new drive, and double click on SDA_INFO.HTM to see your current firmware revision. Newer FRDM boards already have the necessary revision to work on Linux out of the box.

Drag and drop the BOOTUPDATEAPP_Pemicro_V110.SDA file to the BOOTLOADER drive

After it finishes copying, unplug the FRDM board, and then replug it back in. This is the point is where the bootloader firmware is updated.

Wait for it to enumerate as a drive labeled BOOTLOADER (this will happen automatically and reset should not be held down during this process)

Open up the drive and double click on SDA_INFO.HTM to ensure the bootloader is now updated to 1.10

The bootloader firmware update process will erase the previous OpenSDA application you had loaded, so you will need to load it again using the standard application loading process.

Unplug the board

Hold the reset button

Plug in the board while holding reset

See it enumerate as BOOTLOADER and let go of the reset button

Drag and drop the appropriate application (such as MSD-FRDM-KL26Z_Pemicro_v112.SDA for the FRDM-KL26Z board I have)

Wait for it to copy

Unplug, then replug in the board, and now the MSD app will run (you will see a FRDM-KL26Z drive come up)

Windows 8.1 now works with the new v1.11 (BOOTUPDATEAPP_Pemicro_v111.SDA) bootloader firmware. Use the same instructions as above to update the firmware on a non-Windows 8.1 computer.

The new v1.14 MSD app (the MSD-DEBUG-FRDM-<board_name>_Pemicro_v114.SDA file) was updated as well to support Windows 8.1. It also now does the Mass Storage Device (MSD) programming, Debug, and CDC Serial communication all in the same app. There's no longer a need to switch between the MSD and Debug apps.

as these are just the source, i cant import it into Code Warrior. I have tried for hours now, trying to put the source files into a new Project, but to no avail, there is always some error ... i stopped when the errors grew from 13 to 90 ...

Does anyone have a working Code Warrior Project folder for the out of the box demo sample?

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

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

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