The following instructions demonstrate how to download the first program to your Microcontroller, and start it running.
Download the appropriate "Hello World!" binary:
Note: the source code for this program can be seen in the next section, Creating a program
Save the program binary file to your mbed Microcontroller Disk, just like you would with a normal USB disk. The Status LED will flash as the PC writes the file to the Microcontroller disk.

When the Reset Button in pressed, the newest program on the mbed Microcontroller Disk will be loaded in to the Microcontroller FLASH memory. The Status LED will flash as this happens.
When the program is has been loaded onto the microcontroller, it will then start it running.
The Microcontroller is now running the program; flashing LED1 forever! If you reset the Microcontroller, or disconnect and reconnect the power, the program will simply restart.
It is the newest program on the mbed Microcontroller that is run after reset. We can therefore download a new program or overwrite an existing one to update the program that will run.
Make sure you save the file to the mbed Microcontroller!
Don't try and "Open" or "Run" the program files. Always "Save" them to the Microcontroller.
Make sure you set it running!
When you unplug the Microcontroller, you may get a "Device Removal" error message; don't worry!
If you have any problems, or think this tutorial could be improved, please tell us in the Forum!
No tags
|
18 comments
Please login to post comments.
Hi, the link "FAQs/Firefox-Save-As" above leads to "Access denied". Anything wrong ??