Go to Post COMPETE like crazy for the 2 minutes you are on the field, COOPERATE like crazy all the rest of the time. When we play this way, we all win. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-25-2006, 02:42 AM
Nitinol's Avatar
Nitinol Nitinol is offline
Registered User
AKA: Syed Reza
FRC #1155 (Sciborgs)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2004
Location: New York
Posts: 6
Nitinol is an unknown quantity at this point
Portable IDE

Many of you may have already done this.
For me it started out with a desire to compile robotics code from my flash drive.
MPLAB took up too much space, and required installation, so i said to hell with it.

I already had perl installed on my flash drive and a relatively organized directory structure for programming and running applications off my flash drive. I have a Programs Directory where i keep my programs, and rely heavily on bat files to make and open up my programs, whether that's running a c compiler or a Perl interpreter.
I added the mcc18 compiler to my programs directory.
then it began with the creation of a small perlscript that
-read a resource file in the current directory to:
--find location of mcc18.exe the compiler
--find location of mplink.exe the linker
-generated the batch commands to compile the .c files
-generated the batch commands to link the .o files + .lkr + .lib files
-created the batch file which could now be used without Perl

and this worked well for a good amount of time, I could now compile the micro controller code from my flash drive.

i figure from this i could easily create an IDE of some sort. so i did, simple IDE like program in Perl using Tk, relies on whichever text editor is specified in the resource file (which in my case was notepad2, I rather like notepad2).

Regardless this works well, and runs completely independently off my flash drive, taking up approximately 131 megabytes (Perl interpreter + compiler).

the IDE program is stored in my Perl\projects folder and runs from there. the program is called from a batch file in every Project Folder (the folder where all the .c, .h, .lkr, .lib files are stored)



I'm still improving it, though it is fully functional. Let me know what you think.
  #2   Spotlight this post!  
Unread 12-25-2006, 10:18 AM
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Portable IDE

Looks nice. This would make it easy for teams to copy over there code to a flash drive and then use it on any computer at a regional without having to install MPLab and all that fun stuff. Last year I brought my laptop so that wasnt an issue for me but I can see that helping alot of people. If you dont mind a bunch of people would probably use it if you posted the code.
  #3   Spotlight this post!  
Unread 12-25-2006, 01:47 PM
teh_pwnerer795 teh_pwnerer795 is offline
Registered User
AKA: !!Mitch!!
FRC #1392
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Ajax, Canada
Posts: 142
teh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really nice
Send a message via MSN to teh_pwnerer795 Send a message via Yahoo to teh_pwnerer795
Thumbs up Re: Portable IDE

looks amazing... again i am also a programmer w/ a laptop so this wouldnt be very useful for me... but on the other hand ... its looks great... all i have to say is congrats saves alot of time, great job
__________________
Great Art is Created; Master Pieces are Stolen

[n00b]Teh_Foxdonut teh_pwnerer795 - CounterStrike:Source
  #4   Spotlight this post!  
Unread 12-25-2006, 09:20 PM
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Portable IDE

looks great!
__________________
Eric Haskins KC9JVH
  #5   Spotlight this post!  
Unread 12-25-2006, 11:33 PM
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Portable IDE

Nice idea, never thought of that before..
  #6   Spotlight this post!  
Unread 12-26-2006, 12:03 AM
Nitinol's Avatar
Nitinol Nitinol is offline
Registered User
AKA: Syed Reza
FRC #1155 (Sciborgs)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2004
Location: New York
Posts: 6
Nitinol is an unknown quantity at this point
A bit More Info

http://s.f.reza.googlepages.com/fide

I didn't think anyone would be interested, but there's a bit more information on that link.

I can't say I've put any effort into making that web page.

I'm still improving upon the project. I only started it two days ago, I've put in perhaps only 2 hours of actual development time.

I've miscalculated the amount of space it takes, it's about 20 more megabytes than my original approximation. The Perl Interpreter takes about 50 megabytes. And while I could go through the trouble of compiling the code into a standalone executable, I think everyone should carry around The Perl Interpreter, it's a great tool to have.

Please feel free to reply to this post.
  #7   Spotlight this post!  
Unread 12-26-2006, 11:38 AM
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Portable IDE

Nice, anychance you could post the source for the perl program?
  #8   Spotlight this post!  
Unread 12-26-2006, 12:36 PM
Nitinol's Avatar
Nitinol Nitinol is offline
Registered User
AKA: Syed Reza
FRC #1155 (Sciborgs)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2004
Location: New York
Posts: 6
Nitinol is an unknown quantity at this point
Re: Portable IDE

Likely after development is complete. There still remains a few more features to add. I'm working on integrating IFI Loader into it...on top of other things. Until then I don't have to worry about properly placing comments throughout the code and what not. I would like to somewhat finish the project, this is more of a "Test of Concept". Let me know how the installation goes more importantly, If it's far too complicated to install I should create an Installer for it.
  #9   Spotlight this post!  
Unread 12-28-2006, 04:39 PM
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Portable IDE

As an FYI, you can do it with Eclipse as well. (Haven't tried it with MCC18, though.)
  1. Download Eclipse for your platform
  2. Extract to a temporary location on your harddrive (I'm calling it ...\eclipse)
  3. Create the directory ...\work (your workspace)
  4. Install needed plugins
  5. KEY STEP Open ...\eclipse\config.ini in a text editor and replace
    Code:
    osgi.instance.area.default=@user.home/workspace
    with
    Code:
    osgi.instance.area.default=@user.dir/../work
    osgi.instance.area=@user.dir/../work
    osgi.user.area.default=@user.dir/../work
    osgi.user.area=@user.dir/../work
    Save.
  6. Copy ...\eclipse and ...\work to your flash drive.

One thing I've found is that sometimes Eclipse leaves residue in %USERPROFILE%\.eclipse (eg, C:\Documents and Settings\Administrator\.eclipse). This may be safely deleted. Here's what I did for Windows (eclipse.cmd):
Code:
@echo off
IF EXIST "%USERProfile%\.eclipse" (
 RMDIR /S /Q "%USERProfile%\.eclipse"
)
pushd eclipse
start "" "eclipse.exe" "-data \work"
popd
Note that the last bit (start "" ...) negates the need for step #5 above. You just need to put your workspace in your root. Also, I don't know how well the above interacts with an installed Eclipse. PM me for full details as to how I set up my drive.

Just be warned, this may wear out a flash drive, since building projects often involves much writing to disk. You may want to opt for a mobile harddrive (eg, an iPod) instead.
  #10   Spotlight this post!  
Unread 12-28-2006, 05:35 PM
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Portable IDE

I didn't know you could wear out a flashdrive
  #11   Spotlight this post!  
Unread 12-28-2006, 06:48 PM
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Portable IDE

Quote:
Originally Posted by bear24rw View Post
I didn't know you could wear out a flashdrive
Yes. I forget the exact number but there is a limit to how many times you can write data to the flash memory.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
portable controls w/o using tether halomaster69 Control System 22 10-16-2005 02:18 AM
Dean Kamen's Portable Water Purifier Clark Gilbert Dean Kamen's Inventions 6 09-16-2005 03:17 PM
Portable cordless drill press Gui Cavalcanti Technical Discussion 25 08-03-2003 10:21 PM
Portable 12V Power Supplies? archiver 2000 2 06-24-2002 12:19 AM


All times are GMT -5. The time now is 09:24 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi