-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Nov 8, 2012 10:25 AM (in response to FreescaleTools_and_Software)QUESTION
Where are the FRDM-KL25Z Design Package?
The FRDM-KL25Z Quick Start Guide lists that zip file as part of the additional reference documents available www.freescale.com/FRDM-KL25Z
It says that it's a "zip file containing all design source files for the FRDM-KL25Z hardware".
I've only found the pdf with the schematics. I'd like to have the design files as I find it easier to understand and follow the schematics, being able to select lines and components.
ANSWER
You can download the hardware design source file of FRDM-KL25Z including PCB file (available in OrCad/Allegro formats) at the following link FRDM-KL25Z Product Summary Page
Select the Downloads option.
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Nov 8, 2012 10:25 AM (in response to FreescaleTools_and_Software)QUESTION
Does anyone know if the source code for the OpenSDA software is available?
Or failing this, a specification of the SDA format to create a compatible module for loading on the KL25 Freedom board?
A search shows quite a few references but they all seem to be rather thin on technical details.
ANSWER 1
According to P&E: "We (via Freescale) are planning a release in the next couple of weeks which has an open source version of the bootloader as well as a sample application which can be loaded into the OpenSDA design (a small data logger application)."
ANSWER 2
You can find the source code for OpenSDA on ARM.com website, which is part of CMSIS-DAP.
You need to register a silver account ID on ARM.com website, then search the CMSIS-DAP, download the code samples for CMSIS-DAP which also includes the OpenSDA source code.
CMSIS-DAP Beta 0.01 does include a MK20 project unfortunately it appears to not be possible to build it using the Free version of the KEIL tools.
It is likely to be the RL-USB component.
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Nov 8, 2012 10:57 AM (in response to FreescaleTools_and_Software)QUESTION
I would like to buy a Kinetis Freedom Board FRDM-KL25ZFRDM-KL25Z which comes with the MKL25Z128VLK4MKL25Z128VLK4 MCU. I also want to buy some units of the MCU and it's respective programmer/flasher, to be able to build some custom circuits.
But the tool listed as the programmer ( Cyclone Max - Cyclone MAX Product Summary Page ) seems to have many extra features that I don't need right now. So I would like a cheaper programmer.
Would the P&E U-MultilinkP&E U-Multilink interface allows me to perform in circuit programming/flashing of the MKL25Z128VLK4 MCU?
ANSWER
P&E USB Multilink Universal will allow you to perform in circuit USB flash programming of the MKL25Z128VLK4 MCU.
Then this is just the question of the quantity of pieces that you would like to program and the accessibility/flexibility of the tool.
Less than 1000pcs to program UMultilink is the right tool and Umultilink FX would be faster which is insteresting for high memory sizes.
More than 1000pcs to program in a classical factory assembly chain, it would be recommanded to choose a standalone flash programming tool, embedding its own memory or an sd-card port to store the project code (no computer needed) and a simple button to push to avoid handling errors.
Please find below a long list of Hardware Debuggers and Programming tools from 3rd parts vendors compatible with Freescale MCUs
http://www.freescale.com/webapp/sps/site/overview.jsp?code=HARDWARE_INTEF
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Jan 9, 2013 8:32 AM (in response to FreescaleTools_and_Software)QUESTION
You are writing some datas to flash memory (eeprom emulation) using FRDM-KL25Z.
You want to check what data you wrote (since you don't have LCD).
Is there a way to check the data that you wrote using codewarrior IDE ?
ANSWER
You can use Processor Expert to read and write the flash:
First, you have to reserve some Flash pages for data storage. Do that in the CPU Build Options, Reduce the Flash for code, for example :
Then, configure those pages to be used by Flash component:
Then, enable the Flash methods you need:
Now, you can save the data in the code:
Read:
FLASH1_Read(FLASH1Pointer,0x1F000, &savedData.red, sizeof(savedData));
do {
FLASH1_Main(FLASH1Pointer);
OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
Erase one page, in case is not 0xFF the locations to write:
FLASH1_Erase(FLASH1Pointer, 0x1F000, 1024);
do {
FLASH1_Main(FLASH1Pointer);
OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
And then write the data in Flash:
FLASH1_Write(FLASH1Pointer, FromPtr, 0x1F000, Size);
do {
FLASH1_Main(FLASH1Pointer);
OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
-
Re: Freescale Freedom Development Platform (Questions and Answers)
mbiuki Mar 11, 2014 6:25 PM (in response to FreescaleTools_and_Software)I did the same thing but the erase function is not working!
I did this:
data = 0x11;
ADDR = ((SHARED_MEM_SPACE << 16) | ALT3CONF_SECTOR<<4| ALT3CONF1); //this is my macro definition for address
printf("ADDR = 0x%x\n", ADDR);
ProgramFlash_Write(Program_Flash, &data, ADDR, sizeof(data));
do {
ProgramFlash_Main(Program_Flash);
OpStatus = ProgramFlash_GetOperationStatus(Program_Flash);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
ProgramFlash_Read(Program_Flash, ADDR, &data, sizeof(data)); /* Start reading from the flash memory */
do {
ProgramFlash_Main(Program_Flash);
printf("here\n");
OpStatus = ProgramFlash_GetOperationStatus(Program_Flash);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
printf("data read is = 0x%x\n", data);
ProgramFlash_Erase(Program_Flash, ADDR, 2048);
do {
printf("yes\n");
ProgramFlash_Main(Program_Flash);
OpStatus = ProgramFlash_GetOperationStatus(Program_Flash);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
ProgramFlash_Read(Program_Flash, ADDR, &dump, sizeof(data)); /* Start reading from the flash memory */
do {
ProgramFlash_Main(Program_Flash);
printf("yes2\n");
OpStatus = ProgramFlash_GetOperationStatus(Program_Flash);
} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));
printf("dump read is = 0x%x\n", dump);
and I am reading this:
ADDR = 0x12811
here
here
data read is = 0x11
yes
yes2
yes2
dump read is = 0x11
I also set the user space in flash, but not sure if that matters:
do you have any idea why mine is not erasing?!!
-
Re: Freescale Freedom Development Platform (Questions and Answers)
FreescaleTools_and_Software Mar 31, 2014 8:22 AM (in response to mbiuki)Hi Mehdi,
I saw you figured out the issue on the Freescale community. I've repasted your answer below for anyone who is also looking for the answer:
Mehdi
https://community.freescale.com/message/387507#387507
It is working now, I had to edit my routines, it looks something like this now:
in events.c:
/* ===================================================================*/
void ProgramFlash_OnOperationComplete(LDD_TUserData *UserDataPtr)
{
uint8_t *OpStatus = (LDD_TUserData*) UserDataPtr;
*OpStatus = TRUE;
}
-----------------------------
bool ReadFlash(LDD_TDeviceData *DeviceData, LDD_FLASH_TAddress FromAddress, LDD_TData* DataPtr, LDD_FLASH_TDataSize Size, uint8_t* OpStatus)
{
LDD_TError Error;
*OpStatus = FALSE;
Error = FLASH_Read(DeviceData, FromAddress, DataPtr, Size);
if (Error) {
return FALSE;
}
do{
FLASH_Main(DeviceData);
}
while(FLASH_GetOperationStatus(DeviceData) != LDD_FLASH_IDLE);
return TRUE;
}
bool WriteFlash(LDD_TDeviceData *DeviceData, LDD_TData* DataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size, uint8_t* OpStatus)
{
LDD_TError Error;
*OpStatus = FALSE;
Error = FLASH_Write(DeviceData, DataPtr, FromAddress, Size);
if (Error) {
return FALSE;
}
while(*OpStatus != TRUE); /* Wait while operation done */
return TRUE;
}
bool EraseFlash(LDD_TDeviceData *DeviceData, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size, uint8_t* OpStatus)
{
LDD_TError Error;
*OpStatus = FALSE;
Error = FLASH_Erase(DeviceData, FromAddress, Size);
if (Error) {
return FALSE;
}
while(*OpStatus != TRUE); /* Wait while operation done */
return TRUE;
}
int main(void)
{
/* Write your local variable definition here */
LDD_TDeviceData *FlashDevData;
uint8_t OpStatus;
bool err;
uint8_t data[256];
uint8_t buffer[256];
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Initialization of FLASH controller */
FlashDevData = FLASH_Init(&OpStatus);
printf("*********************************************************\n\r");
printf("*** DEMO project for the FLASH component - begin\n\r");
printf("*********************************************************\n\r");
printf("\n\r");
printf("Project description:\n\r");
printf("Flash memory erase, write, read example.\n\r");
printf("\n\r");
/* Step 0 */
printf("+++ Step 0 - begin +++\n\r");
printf("Description: Erase FLASH memory sector\n\r");
err = EraseFlash(FlashDevData, FLASH_USER_AREA0_UserData_ADDRESS, FLASH_USER_AREA0_UserData_SIZE, &OpStatus);
if (err) {
printf(" Erase PASSED\n\r");
}
else {
printf(" Erase FAILED\n\r");
}
printf("+++ Step 0 - end +++\n\r");
/* Step 1 */
printf("+++ Step 1 - begin +++\n\r");
printf("Description: Write data to FLASH memory sector\n\r");
memset(&data, '#', sizeof(data)); /* Fill the data[] with '#' characters */
if (err) {
err = WriteFlash(FlashDevData, &data, FLASH_USER_AREA0_UserData_ADDRESS, sizeof(data), &OpStatus); /* Write data[] to FLASH */
}
if (err) {
printf(" Write PASSED\n\r");
}
else {
printf(" Write FAILED\n\r");
}
printf("+++ Step 1 - end +++\n\r");
/*Step 2 */
printf("+++ Step 2 - begin +++\n\r");
printf("Description: Read and verify the written data\n\r");
if (err) {
err = ReadFlash(FlashDevData, FLASH_USER_AREA0_UserData_ADDRESS, &buffer, sizeof(buffer), &OpStatus); /* Read FLASH memory */
}
if ((err) && (!memcmp(&buffer, &data, sizeof(buffer)))) { /* Verify written data */
printf(" Read PASSED\n\r");
}
else {
printf(" Read FAILED.\n\r");
}
printf("+++ Step 2 - end +++\n\r");
printf("\n\r");
printf("*********************************************************\n\r");
printf("*** DEMO project for the Flash component - end\n\r");
printf("*********************************************************\n\r");
-------------
-
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Jan 9, 2013 8:59 AM (in response to FreescaleTools_and_Software)QUESTION
You would like to use the KL25 Freedom board and run the RTC.
But the clock sources for the RTC are RTC_CLKIN or 32KHz crystal, which need external component or the LPO 1KHz signal.
Is there a way to get 1 second time base with the LPO as you don't know how to configure the RTC to manage this not 32KHz frequency ?
ANSWER
Download the FRDM-KL25Z Sample Code Package available on Freescale website www.freescale.com/frdm-kl25z
Extract this compressed file and follow the path kl25_sc \ klxx-sc-baremetal \ src \ drivers \ rtc
You will find an example of RTC configuration
Additional driver examples available : adc16, cmp, i2c, llwu, lptmr, mcg, pmc, prelim_flash, rcm, smc, uart
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Jan 9, 2013 9:10 AM (in response to FreescaleTools_and_Software)QUESTION
You need to use the Freescale FRDM-KL25Z Freedom Board to run a small robot project.
You need 2 PWM channels to run 2 motors, 2 to 3 channels to send 10 us trigger pulse for Ultrasonic sensors and 3 to 5 channels to capture the return pulses from Ultrasonic sensors.
You are having trouble setting up the timer module TPM2 on Codewarrior 10.3 to have 2 PWM channels with 4kHz to control the duty cycle of the motors ( L293D)
How to get the right set-up for the timer ?
ANSWERIf you are using different channels from the same TPM and you want 4 kHz in both, use the same Timer Unit in channel 0 and channel 1.
The TimerUnit component uses different channel for your configuration, you can see this in the image.
This configure the same frequency of 4kHz in channel 0 and channel 1 but you can set the duty cycle for each channel.
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Jan 9, 2013 9:27 AM (in response to FreescaleTools_and_Software)QUESTION
You are looking for a simple Processor Expert example to make a single channel conversion with the ADC ?
ANSWER
You can use the typical example code below or download the FRDM-KL25Z Sample Code Package available on Freescale website : www.freescale.com/FRDM-KL25Z
There is a driver example for adc16 in the folder : kl25_sc \ klxx-sc-baremetal \ src \ drivers \
AD1_TResultData MeasuredValue[SAMPLE_GROUP_SIZE];
LDD_TDeviceData *MyADCPtr;
LDD_TError Error;
MyADCPtr = AD1_Init((LDD_TUserData *)NULL); /* Initialize the device */
Error = AD1_SelectSampleGroup(MyADCPtr, 1U);
Error = AD1_StartSingleMeasurement(MyADCPtr); // Start continuous measurement
while (!AD1_GetMeasurementCompleteStatus(MyADCPtr)) {}; // Wait for conversion completeness
Error = AD1_GetMeasuredValues(MyADCPtr, (LDD_TData *)MeasuredValue); // Read measured values
FsrReadings[1] = MeasuredValue[0];
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
gert234 Jan 27, 2013 2:47 PM (in response to FreescaleTools_and_Software)I tried creating a PE ADC example, but the AD1_Init generated in AD1.c reads: void AD1_Init(void)
so your example code MyADCPtr = AD1_Init((LDD_TUserData *)NULL); /* Initialize the device */
incurs both an argument error and a result void can't be used error.
I looked around a bit, and AD1_Init is actually called by PE initialization. So where do I get MyADCPtr from?
Can you redo the example?
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Feb 7, 2013 9:57 AM (in response to gert234)Hello Gerrit
If you want to produce a simple project using the ADC with Processor Expert,
I would recommend to download the KL25 SampleCode V4 on Freescale website HERE (direct download link),
as new release now include a project example, called TPM Demo, featuring the ADC peripheral.
- Extract the package
- Launch CodeWarrior 10.3
- Right-clik in the Codewarrior Project Explorer Panel
- Choose Import, General, Existing Projects into Workspace, Browse directory ... Kinetis-L Sample Code
- Select TPM Demo PE then Finish
If you want to access the ADC parameters, used for this project, double-clik on ProcessorExpert.Pe and Select ADC0 in the component panel.
Tricks : In Codewarrior, if you have lost some windows or if you simply want to reorganize your views, simply select "Windows", "Reset Perspective ..."
PS: don't hesitate to share with the community if this answer was helpfull to solve your issue
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
gert234 Feb 8, 2013 4:39 PM (in response to FreescaleTools_and_Software)Thanks, I'll review the TPM Demo. I was experimenting last weekend, and used Processor Expert to set up sampling on two pins. Looked at the code it generated and was able to invoke it and achieve correct 12b sampling at 33 kHz both inputs, purely in a software loop on the FRDM-KL25Z. Pretty impressive.
I'm now going to switch from FRDM-KL25Z to KL05Z to be closer to final production part, so if you happen to be creating another example, would be nice to have it for the KL05Z as well.
regards, Gerrit
-
-
-
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
mconnersJan 10, 2013 4:41 AM (in response to FreescaleTools_and_Software)
I ordered one of these when it first came out (actually pre ordered) and when I received the item it had all the headers in bags for me to solder on.
I liked the board so I ordered another, it seemed that the base board did not come with the headers, so I ordered the FRDMKL25Z Basic Bundle, and it came with single row headers, not the dual row headers. You guys need to make this clear because the
header pins have different signals side by side, now I have to research the proper headers and purchase those, which it looks like like are about $10 more plus shipping.
Mike
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Jan 10, 2013 11:19 AM (in response to mconners)Hello Michael
If you really need the dual row headers, I have posted the reference of the dual row headers HERE (I have checked the pn ordering samples).
My colleague Erich has posted HERE a nice document detailing his experience with those headers and an Arduino Datalogger Shield.
Element14 has posted HERE a document with the PIN Layout.
Correct me if I am wrong, but in my understanding, just the external rows are necessary to warranty the compatibility with Arduino shields, so Element14 choice to provide single row connectors seems justified.
Even if it embeds many features innovative and comprehensive, FRDM-KL25Z must stay cheap to be accessible to a large number of customers (10$ seems to be the target cost). To achieve this goal, Freescale has decided to remove the connectors from in the orginal version of the board.
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
mconnersJan 10, 2013 12:20 PM (in response to FreescaleTools_and_Software)
After I received the board and saw they were single row headers,I found the headers that I needed, I just thought that was what I was buying when I bought the basic bundle, I don't really care about arduino shield compatibility, and I don't mind paying extra for the headers. I would have preferred to save the money on the basic bundle and put it towards the headers and not have to pay an additional shipping charge. Perhaps a bundle with dual row headers would be a nice offering as well.
BTW, I like the board, that's why I bought multiples, I just didn't seem clear from this page http://www.newark.com/jsp/search/productdetail.jsp?SKU=46W9880 that those were the single row headers. After I received the package and looked really close at the photo I see that those are single row headers.
I'm not really unhappy about any of this, just a caution to those buying in the future, and it might be nice in the decription of the bundle to mention that those are the single row headers, and a link from the accessories section on the page to the two row headers would be nice.
Mike
-
-
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
Avinesh Mar 4, 2013 10:45 PM (in response to FreescaleTools_and_Software)QUESTION?
i started using the frdm-kl25z from the freescale, i had followed the instruction given on the FRDM-KL25Z user mannual, and the opensda primilinary mannual, now i got strucked in the opensda mode. my problem is i can able to enter the BOOTLOAD mode, but can't able to enter to the opensda (FRDM-KL25Z) mode for application, and i done the basic instruction which has given in the opensda user mannual and loadded the .SDA application by copying and past on the bootload drive, when ever i unplug the usb and inserted again it is not at all responding, even the led which is on board also not on,,,
Did anybody know this problem, what should i do for this board to enter the normal execution,,,,
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Mar 5, 2013 3:39 AM (in response to Avinesh)Hello
Could you please check that you respected following steps :
1. Remove USB Cable
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 ?
Thanks in advance
Greg-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
Avinesh Mar 5, 2013 5:08 AM (in response to FreescaleTools_and_Software)Thanks Greg
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.
For your Confirmation
1. my antivirus (avast) is not disable the USB or removable drive,
2. DEBUG Application
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Mar 5, 2013 9:26 AM (in response to Avinesh)Can you tell me what is the Kinetis-L marking / Part-Number (the biggest package on the board) ?
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
Avinesh Mar 5, 2013 10:15 PM (in response to FreescaleTools_and_Software)Hi Greg
I am using the MKL25Z128FRDM Package in the FRDM Board, My boad bootloade version is 1.05, can u help me out....
-
-
-
-
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Mar 28, 2013 10:10 AM (in response to FreescaleTools_and_Software)Hi Avinesh bala
First could you just tell me if your FRDM-KL25Z board is a commercial (bought on element14/Farnell) or a prototype version ?
Then could you please indicate which SDA file are you trying to use ?
After copy-paste MSD-FRDM-KL25Z_Pemicro_v107.SDA in BOOTLOADER drive via Windows Explorer, a new drive "frdm-kl25z" should appear in Windows Explorer
After copy-paste DEBUG-APP_Pemicro_v102.SDA in BOOTLOADER drive via Windows Explorer, a new peripheral "PEMicro OpenSDA Debug Driver" should appear in Windows Device Manager without drive neither BOOTLOADER nor frdm-kl25z in Windows Explorer
Please keep me updated about your evaluations
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
habtamuab Aug 11, 2013 2:16 PM (in response to FreescaleTools_and_Software)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!!
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Aug 12, 2013 4:22 AM (in response to habtamuab)Hello
May I ask you what is the operating system of the computer connected to the FRDM board ?
You don't see in the Explorer the BOOTLOADER drive when you release the reset button after plugging the USB cable, keeping reset button pressed ?
Could you just confirm that you plugged the the USB cable on the right mini-USB connector SDA (the right one when the touch sensor is on the top) ?
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
habtamuab Aug 12, 2013 7:46 AM (in response to FreescaleTools_and_Software)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?
thanks.
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Aug 12, 2013 8:08 AM (in response to habtamuab)Hello
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.
-
FRDM-KL25Z_Blinky_green.zip 7.2 KB
-
MSD-FRDM-KL25Z_Pemicro_v112.zip 214.9 KB
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
habtamuab Aug 12, 2013 8:34 AM (in response to FreescaleTools_and_Software)Thanks again, it is working. I want to use open SDA for debugging. I want to download a project from CodeWarrior to FRDM-KL25Z, it says java.lang.NullPointerException. Can you help me with tha?
Thanks!!
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Aug 12, 2013 8:42 AM (in response to habtamuab)If you want to start OpenSDA DEBUG mode for Codewarrior or IAR, you need to return in BOOTLOADER mode and drag'n drop the DEBUG-APP_Pemicro_v106-All-Freedom.SDA file attached to this message.
To debug with Keil MDK-ARM or Coocox CoIDE, drag'n drop in the BOOTLOADER drive the CMSIS_DAP_All-Freedom.SDA file.
To develop with Mbed online tool, drag'n drop in the BOOTLOADER drive the "mbed_if_v2.0_frdm_kl25z.s19" file.
-
mbed_if_v2.0_frdm_kl25z.zip 39.5 KB
-
CMSIS_DAP_All-Freedom.zip 7.0 KB
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
habtamuab Aug 12, 2013 9:17 AM (in response to FreescaleTools_and_Software)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.
thanks again!
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Aug 12, 2013 9:21 AM (in response to habtamuab)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.
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
habtamuab Aug 12, 2013 9:58 AM (in response to FreescaleTools_and_Software)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?
thanks!!
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
prajas Sep 26, 2013 4:49 PM (in response to habtamuab)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.
-
Re: Freescale FRDM-KL25Z Freedom Board (Questions and Answers)
FreescaleTools_and_Software Oct 14, 2013 7:06 AM (in response to prajas)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.
-
-
-
-
-
-
-
-
-
-
-
-
Re: Freescale Freedom Development Platform (Questions and Answers)
FreescaleTools_and_Software Oct 25, 2013 8:28 AM (in response to FreescaleTools_and_Software)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).
-
Re: Freescale Freedom Development Platform (Questions and Answers)
mconnersOct 25, 2013 9:03 AM (in response to FreescaleTools_and_Software)
Freescale Tools_and_Software wrote:
Also note that the board still works correctly with all other operating systems (even Windows 8.0).
Should this be "all other versions of Windows", cause I don't think the bootloader works with linux.
Mike
-
Re: Freescale Freedom Development Platform (Questions and Answers)
mconnersOct 25, 2013 9:06 AM (in response to mconners)
To clarify, once you update the firmware, the flash programming mode works in linux, but not bootloader mode.
While you're working with P & E why not figure that out as well? :-)
Mike
-
Re: Freescale Freedom Development Platform (Questions and Answers)
FreescaleTools_and_Software Nov 7, 2013 11:06 AM (in response to mconners)Michael:
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.
-
Re: Freescale Freedom Development Platform (Questions and Answers)
FreescaleTools_and_Software Nov 28, 2013 7:09 AM (in response to mconners)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)
-
Re: Freescale Freedom Development Platform (Questions and Answers)
mconnersNov 28, 2013 9:32 AM (in response to FreescaleTools_and_Software)
Great news. Another thing to be thankful for :-)
MIke
-
Re: Freescale Freedom Development Platform (Questions and Answers)
mconnersDec 17, 2013 8:55 PM (in response to mconners)
I finally got around to trying the newest version of firmware (12/13/13) on linux. Worked great. Thanks.
Mike
-
Re: Freescale Freedom Development Platform (Questions and Answers)
FreescaleTools_and_Software Dec 19, 2013 3:46 AM (in response to mconners)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.
-
-
-
-
-
-
Re: Freescale Freedom Development Platform (Questions and Answers)
estellrum Nov 5, 2013 9:06 AM (in response to FreescaleTools_and_Software)Hi,
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.
Estellrum
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.