Using Uvision to create a Bin file for any project that was not made with online Compiler

We need to do these three things

/media/uploads/mbed2f/_scaled_these_three.jpg

Make me Big

http://mbed.org/media/uploads/mbed2f/these_three.jpg

Add this .bat Batch file to your project .obj Object directory

/media/uploads/mbed2f/_scaled_mbed_flash.jpg

Make me Big

http://mbed.org/media/uploads/mbed2f/mbed_flash.jpg

Click on Target options

/media/uploads/mbed2f/_scaled_click_on_target_options.jpg

Make me Big

http://mbed.org/media/uploads/mbed2f/click_on_target_options.jpg

Click on Utilities in the Target options

/media/uploads/mbed2f/_scaled_options_target_flash.jpg

Make me Big

http://mbed.org/media/uploads/mbed2f/options_target_flash.jpg

Click the checker box to use :Use the external tools for flash programming, change the Command directory and navigate to your project Object directory and click on the MBed_Flash.bat, copy paste or write this into Arguments @L.bin E:\ Click the checker box for Run Independent

/media/uploads/mbed2f/_scaled_options_for_target_flash_changed.jpg

Make me Big

http://mbed.org/media/uploads/mbed2f/options_for_target_flash_changed.jpg

Now click on user in the Target options:)

/media/uploads/mbed2f/_scaled_options_user.jpg

Make me Big

http://mbed.org/media/uploads/mbed2f/options_user.jpg

Now we want to click the checker box in Run User Program After Build/Rebuild, click the checker box for Run #1.. now change the Run #1 directory to the same directory as the Command directory where you navigated the command directory to your project Object directory where the MBed_Flash.bat is.

and add these lines into the Run #1 fromelf bin -o @L.bin !L

Just copy and paste the line above it will still work, some kinda html syntax error which is making a line in the words.

/media/uploads/mbed2f/_scaled_add_from_elf_to_bin.jpg

Make me Big

http://mbed.org/media/uploads/mbed2f/add_from_elf_to_bin.jpg

Make sure you set the check box in options for target output to Create Executable and uncheck the check box for create Hex file.

/media/uploads/mbed2f/_scaled_output.jpg

Make me Big

http://mbed.org/media/uploads/mbed2f/output.jpg

And here is the zip with MBed_Flash.bat. file in and pdf of how to use Uvision with the Blinky project:)

/media/uploads/mbed2f/apnt207-1-.zip

And that is it really, hopefully it will work for you.. you might having trouble finding the bin, it did not end up in the target directory I had it pointed to, it ended up in the directory before the Object directory where I put MBed_Flash.bat, so press the back button, when in the Object directory and you should find your bin hopefully.


1 comment on Using Uvision to create a Bin file for any project that was not made with online Compiler :

22 Jul 2011

The is what it should be.. something wrong with the snytax of page fromelf bin -o @L.bin !L...

--

:: you will just have to look at the picture it is missing the two abbreviations for the minus sign before the bin and one minus sign before o if you were to take away something

Please log in to post comments.