Society of Robots
     | Robot Forum | Robot Tutorials | Robot FAQ |
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2009, 09:07:39 PM

Login with username, password and session length
Search:     Advanced search
Sept 30th - The 5th SoR Robot contest is now open! Win an Axon II!

Robot Forum
72,665 Posts in 9,267 Topics by 5,290 Members
Latest Member: robertelson
* Home Help Help Login Register
0 Members and 1 Guest are viewing this topic.
Pages: [1] Print
Author Topic: Guide: How to create bootloader shortcuts  (Read 1887 times)
GertlexTopic starter
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 195


Nuclear Engineer Wannabe


View Profile WWW
« on: August 11, 2008, 11:08:18 AM »

I personally find opening cmd.exe, changing directory, and then copy pasting the fboot17.exe stuff from a text file to be tedious.

In the past, I've run java programs of mine by creating a shortcut on the desktop.  I finally got around to looking at how I did this (I had to connect my ext. HD, since this predates my reformatting a couple months ago).

To create this initially, right click in explorer or the desktop and create a new shortcut.  A window pops up and you browse to the folder with the code in it, then select the fboot17.exe.  It will ask you for a name (which defaults to FBOOT17.EXE). You should give it the same name as the project folder, probably.  You also get to select an icon. I like the dynamite one, personally Cheesy

Here's a screenshot of the properties window that I use for my Photovore's code updates:

To properly set this up, go to the properties of the shortcut.  In the General tab, the only thing of note is the shortcut's name, next to the icon. In my case, I put Photovore1.

Then in the Program tab:
The space next to the icon can be left blank. If you put something here, it will be the title of the cmd.exe window that opens when the shortcut is clicked.  (in this case, I again use Photovore1)
"Cmd line:" has a full entry of:
C:\DOCUME~1\Eric\AVRSTU~1\PHOTOV~1\FBOOT17.EXE -b115200 -c2 -pAxon.hex -vAxon.hex
And "Working:" has:
C:\DOCUME~1\Eric\AVRSTU~1\PHOTOV~1

With this setup, it should work right off. Just make sure the COM port is connected. (in my case, COM2, or -c2)

For other programs, you can simply copy the shortcut and edit the properties.  The only parts you need to change are the names, and the project folder (highlighted in red in screenshot).

This second screenshot is the one that I had set up for a java program.  The shortcut properties window is different, despite the fact that in both cases, my computer has been Windows XP Pro.  I'm able to get this one again if I use a .exe in the system32 folder. *shrug*

If your properties window looks like this, just modify Target and Start-in to have the same contents as "Cmd line" and "Working", respectively.

And this is what it looks like while running.  After it finishes, the cmd.exe window closes. You just have to open the shortcut again to do it again.
« Last Edit: August 11, 2008, 05:16:00 PM by Gertlex » Logged

I
pomprocker
Supreme Robot
*****

Helpful? 15
Offline Offline

Posts: 1,411


Sorry miss, I was giving myself an oil-job.


View Profile WWW
« Reply #1 on: August 11, 2008, 01:32:21 PM »

Thanks for this, I've been really irritated with the command line also and changing directories
Logged

Admin
Administrator
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 8,610



View Profile WWW
« Reply #2 on: August 11, 2008, 05:37:59 PM »

Something I should have done long ago . . .

I just linked this thread to the Axon tutorial.

Thanks! Smiley
Logged

Ocelot
Jr. Member
**

Helpful? 0
Offline Offline

Posts: 15


View Profile
« Reply #3 on: July 07, 2009, 08:58:46 AM »

Hi I just saw this thread and thought I'd post another way to automate the bootloader cmd commands.

Step 1: Open Notepad or any other text editor
Step 2: Type the following lines...

cd C:\My_Robots\Tester\
FBOOT17.EXE -b115200 -c3 -pTester.hex -vTester.hex

(note: these are the same lines you'd type in the cmd window)

Step 3: Save your new file as a .txt file in the desired location (can be any where)
Step 4: Right click on the file icon and select rename (note: make sure in your folder options you have "Hide extensions for known file types" UNCHECKED)
Step 5: Change the extension in the filename from .txt to .bat

And you're finished! Now all you have to do is double click your .bat file to start the bootloader!

(btw this method can be used for all cmd window commands)

Hope you find this helpful!


Logged
Pages: [1] Print 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
programming guide??
Software
cppdungeon 4 1548 Last post March 08, 2009, 09:19:22 PM
by RiffRaff
Programming guide For 89c51
Software
evilknight007 3 3060 Last post August 25, 2007, 05:50:03 AM
by evilknight007
Soldering Guide I stumbled on
Electronics
airman00 9 1627 Last post January 27, 2008, 04:50:08 PM
by Trumpkin
PIC start-up guide?
Misc
Razor Concepts 1 573 Last post December 17, 2008, 04:29:39 PM
by Iron Man
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!


Advertise on this Forum