Go to Post You lame pig farmer! I'm not talking about a bunch of dudes sitting around eating their packed lunches that Mommy made. - Paul Copioli [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 25-12-2006, 02:42
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 25-12-2006, 10:18
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 25-12-2006, 13:47
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 25-12-2006, 21:20
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 25-12-2006, 23:33
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 26-12-2006, 00:03
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 26-12-2006, 11:38
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 26-12-2006, 12:36
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 28-12-2006, 16:39
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 28-12-2006, 17:35
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 28-12-2006, 18:48
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.
  #12   Spotlight this post!  
Unread 28-12-2006, 22:07
shawger shawger is offline
Programming Subteam Leader
FRC #1732 (Hilltopper Robotics)
Team Role: Alumni
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Wisconsin
Posts: 60
shawger will become famous soon enough
Re: Portable IDE

Quote:
Originally Posted by chris31 View Post
Yes. I forget the exact number but there is a limit to how many times you can write data to the flash memory.
Something like a couple million writes. Which is why I got a portable hard drive instead
  #13   Spotlight this post!  
Unread 25-01-2007, 18:19
brainonska's Avatar
brainonska brainonska is offline
Registered User
AKA: Magical Steve
FRC #1155 (Sciborgs)
Team Role: Programmer
 
Join Date: Apr 2006
Rookie Year: 2006
Location: New York City
Posts: 19
brainonska is an unknown quantity at this point
Send a message via AIM to brainonska
Re: Portable IDE

Testemonial: I've seen it... I've used it. It's good
__________________
Real programmers don't comment their code:
it was hard to write... it should be hard to understand
  #14   Spotlight this post!  
Unread 04-02-2007, 01:20
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: Portable IDE

I like to copy, then paste my code folder and rename it with a current date because MPLAB doesn't have a version management system built in. I wanted to make a new folder every day with other non-robotics projects, but I noticed that MPLAB would write to the old files even though I opened the new MCW file.

When I made a new project with the project wizard instead (and added all my files, chose the toolsuite, etc) I would get a compiler error at every printf().

So I decided I needed an IDE that didn't try to be smarter than me with its workspace file. FIDE is the solution. Thanks
__________________
What place are we at? ... TODAI!
  #15   Spotlight this post!  
Unread 04-02-2007, 03:23
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

I thought perhaps by now this post had died and no one cared for the portable IDE.
I've made a few changed till then. Well honestly enough, there haven't been many major changes because I didn't really put much work into it. We've been having loads of fun with PID loop code, and all of us have been working with F_IDE almost entirely. We seemed to be content with it. A few complaints and suggestions came up and I've addressed them.
Of the minor complaints Keyboard shortcuts were one which are now in the new version. I also felt that not everyone would like the color scheme, so I added the capability for color customization.
One of the major issues was that with what happened when new files were added or removed from the Project folder while Fide was open. In order for FIDE to recognize the change it needed to be closed and re-opened. That was becoming an annoyance. So I've added the capacity for FIDE to recognize the change in the project folder during the CMake process. So hitting the CMake button refreshes the file buttons in accordance to the change in the folder.
I feel like I'm retyping a lot of what I wrote, so feel free to read the poorly constructed website.
http://s.f.reza.googlepages.com/fide
Again, I'm sorry the website is as terrible as it is.
Please feel free to post here (I genuinely look forward to it).
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 16-10-2005 02:18
Dean Kamen's Portable Water Purifier Clark Gilbert Dean Kamen's Inventions 6 16-09-2005 15:17
Portable cordless drill press Gui Cavalcanti Technical Discussion 25 03-08-2003 22:21
Portable 12V Power Supplies? archiver 2000 2 24-06-2002 00:19


All times are GMT -5. The time now is 13:34.

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