How to use your mbed board with uVision instead of the online compiler

Create a new project in Uvision and then open the project properties

write /media/uploads/alexan_e/text1.jpg in the "run user program after build" command.

This command generates the bin file from the elf file

/media/uploads/alexan_e/mbed_uvision1.jpg

Create a MBED_Flash.bat with the following content and place it in the project folder

:Batch file for copying to MBed
:argument 1: .bin output file
:argument 2: MBed root directory
copy %1 %2

Now set the following dialog to use the bat file and write in the arguments /media/uploads/alexan_e/text2.jpg where E:\ is the mbed drive

/media/uploads/alexan_e/mbed_uvision2.jpg

Now when you press compile the bin file will be created in the project folder and when you press download the bin file will be copied to to the flash drive

That's it, press reset to see the code running

Alex

P.S. this guide is based on http://mbed.org/users/mbed2f/notebook/using-uvision--to-create-a-bin-file-for-any-projec/


Please log in to post comments.