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).
I just got my KL25z board this week, and I was going through all the startup guides and got the precompiled srec files working on the board.
I am wondering if anyone can point me to a guide to get the OOTB demo source code given in the KL25z sample code folder working, i.e. making the Project in Code Warrior 10.5.
I am looking at this folder:
C:\...\workspace\KL25 Sample Code\kl25_sc_rev10\klxx-sc-baremetal\src\projects\FRDM_KL25ZDemo
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?
many thanks in advance.
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.
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.
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.
Hello FRDM-KL25Z buyer
You are already thousands of customers who ordered this board.
In order to make your life easier, with a single place where to find relevant informations concerning this tool, I will try to collect in this post the answered questions concerning FRDM-KL25Z, found in different places like Freescale community, groups from Element14 Community or anywhere on the web ...
I will publish regularly (in the document section from this group) some very instructive tutorials produced by my colleague Erich Styger, which should help you to take in hand FRDM-KL25Z and its software tools (Codewarrior 10.3beta, Processor Expert ...).
Don't hesitate to post here your new questions that we can answer it and share it with the community.