Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 4 months ago.
Program loaded into FRDM-KL25Z is erased after a couple of seconds of working
Good morning,
I got this board (www.freescale.com/FRDM-KL25Z) from freescale and want to create some stuff on it. I have installed all the drivers and I have loaded some basic project into the memory of chip.
What i did it and how the board is acting. 1 when i plug the usb cable the green led status goes in HIGH state and wait for my program. OK 2 when i copy my *.bin file inside of the board, the green led goes in blinking mode. OK 3 the program works ok. 4 after few seconds the program (for e.g. change the RGB led) is "erased" and the green status do as below.
The problem is that my program stops after few seconds and the green led status blink for few times fast and then goes in low state for 2 seconds and repeat this forever.
I have attached 2 images.
This is when the program is loaded and it is working.
when the board has erased my program.
Thanks and i hope i write detailed for this small problem.
Cheers, Gabriel
2 Answers
11 years, 4 months ago.
First of all, what you see regarding the file being removed is intended behavior: it doesn't store the current firmware on the interface IC, so it programs it, and doesn't store it.
That your program doesn't properly work is of course not intended behavior. However looking at the name of the drive it is still running the original firmware, which expects a different type of files (hex I believe instead of bin). Here is the firmware upgrade procedure: http://mbed.org/handbook/Firmware-FRDM-KL25Z (the upgrade procedure works best on windows 8.0 and earlier, but it looks to me like you got windows 7, so that shouldn't be a problem).
Thanks to both of you. I have updated and it's working the firmware!
Edit.
I have for now the following printscreens :
But still, if I let the USB cable connected to openSDA port, the board seems to restart repetitional after few seconds and the program is erased. After the reset is done, it appears a fail.txt file where i have "BAD EXTENSION FILE" and after a couple of resets the flash disappeared from my computer.
If i power it using the other port the board is not reseted.
Sorry for dump questions but it's my first time with mbed and freescale products. I have read that page and i didn't find any solution
Thanks.
posted by 11 Jul 201411 years, 4 months ago.
Hello,
as Erik noted, the original P&E interface accepts only .s19 files, therefore it does not work out of the box with binaries.
Update the firmware (follow the instructions in the link Erik provided - firmware) to mbed CMSIS-DAP.
Regards,
0xc0170