11 years, 8 months ago.

How do I send a compiled program to my kl25z?

I have the feeling that I must be missing something obvious, but I just can't work out how to send a program I have compiled with the mbed web ide to my kl25z board. I have followed all the instructions (install the mbed bootloader so it appears as a "mbed" mass storage device, install the windows com port driver so I can see the console output from the pre-installed example program)

I have now created a new program in the web ide which appears populated with LED flashing code. The ide is set to the kl25z device, and when I click the compile button it reports success in the bottom panel. Clicking the build details shows 0.5kb code and 1.7kb libraries.

So far everything seems fine, but now I am stuck. I can't find anything in the documents or any buttons on the ide to actually send the compiled program to the board. It's still happily sitting there running the pre-installed demo.

The forums and this questions section seem full of people who have obviously worked out how to do this.

What am I missing? Someone please help me out!

Thanks in advance, Frank.

2 Answers

11 years, 8 months ago.

It should try to download a .bin file to your computer. If it isnt doing that, your browser probably blocks it (I have had google chrome do it, was a pita to unblock that). When you got that bin file you can drag and drop it to the KL25Z.

So if your browser doesnt report it wants to download a file I would first simply try another browser if you have another one.

Accepted Answer
11 years, 8 months ago.

Fantastic! many thanks.

I was using it in Chrome. When I switched to IE it asked me if it could save a file. Oddly enough it looks like Chrome had saved the files as well, but just not told me about it.

This was enough information for me to work out what to do next - copy the .bin file to the MBED drive and then press the reset button on the board. So I now have my software installed and working.

I still think that it is odd that the vital step of downloading the generated file and copying it to the drive is not covered in the getting started instructions. http://mbed.org/handbook/mbed-Compiler-Getting-Started stops at the point of creating a project and does not cover any of the steps to get the code onto the board :(

Anyway, thanks again. This has been a lot of help, Frank.

That is covered in the device specific getting started: http://mbed.org/handbook/Creating-a-program. But good to hear it works now :)

posted by Erik - 26 Mar 2013