10 years, 8 months ago.

Download a compiled mbed file

K, I am stick. I was able to compile the helloworld program and changed the timing to see it goes into the FRDM-LK25Z. However it builds successful, but I do not see any information how to load this into the board.

1 Answer

10 years, 8 months ago.

mbed works based on a "drag and drop" programmer on most boards, including the FRDM-KL25Z. By default, the FRDM-KL25Z comes with a CMSIS-DAP debugger function programmed into the boards on-board programmer. To use this board with mbed, you need to follow the instructions on the Getting Started page for this board in the mbed handbook. There are detailed instructions there on how you do it. Most important is to perform the Firmware Update steps first to replace the default CMSIS-DAP debugger with the mbed drag-and-drop programmer. Once you have done this, reset your board and reconnect and you should see a USB Storage Device appear with the MBED.HTM file in it. Then you can follow the Getting Started guide. From there, when you compile a program, your browser will download a .BIN file. You just need to drag and drop this .BIN file onto your mbed's virtual USB disk to program your board. When you reset your board, it will start running your newly compiled firmware.

Just one addendum to this otherwise fine explanation: Check your browser's settings to determine where the default file download location is. After a successful compilation, that's where you'll find the binary to drag-and-drop onto the mbed device. For example, on a Mac using Safari, it's typically /Downloads.

posted by Aaron Minner 18 Mar 2014

I've also just remembered - you also need to make sure that before you compile, that you have added the FRDM-KL25Z to your list of registered platforms, and that the FRDM-KL25Z has been selected as the current compile platform for this particular project. Otherwise you may be generating code for a different platform.

posted by Jason Tay 18 Mar 2014