Go to Post If you are "retiring" the old ball, make all the lights green, hang it 8 feet in the air, line up a bunch of 'bots and let 'em shoot poofs. RoboPinata! (warning kids - don't eat the "candy" that falls out!) - Taylor [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 31-12-2003, 13:07
[494]Hal9000 [494]Hal9000 is offline
Registered User
#0494
 
Join Date: Dec 2003
Location: goodrich, Mi
Posts: 7
[494]Hal9000 has a little shameless behaviour in the past
Programming with OSX

is there anyway program in the new Pic C language on a Mac running OS 10.3???? Will running VirtualPC be the only way? I just don't want to use the 6yr old piece of junk that has no battery that i have in our robotics lab
  #2   Spotlight this post!  
Unread 31-12-2003, 14:04
Joe Matt's Avatar
Joe Matt Joe Matt is offline
Wake Up Get Up Get Out There
no team
 
Join Date: Dec 2001
Rookie Year: 2001
Location: CAK
Posts: 5,067
Joe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond reputeJoe Matt has a reputation beyond repute
Re: Programming with OSX

Quote:
Originally Posted by [494]Hal9000
is there anyway program in the new Pic C language on a Mac running OS 10.3???? Will running VirtualPC be the only way? I just don't want to use the 6yr old piece of junk that has no battery that i have in our robotics lab

YEAH! Power to the Mac users. I believe that you need a serial port to transfer info, but I havn't gotten a good look at the controller this year, we have had the controller hogged by our programmers....
__________________
  #3   Spotlight this post!  
Unread 31-12-2003, 14:08
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Programming with OSX

Quote:
Originally Posted by JosephM
YEAH! Power to the Mac users. I believe that you need a serial port to transfer info, but I havn't gotten a good look at the controller this year, we have had the controller hogged by our programmers....
VPC w/a USB to serial port adapter is the only way to run C18 under OSX.
You can buy one of these adapters from must any place that sells computer stuff.
__________________
1139 Alumni
  #4   Spotlight this post!  
Unread 04-01-2004, 08:51
[494]Hal9000 [494]Hal9000 is offline
Registered User
#0494
 
Join Date: Dec 2003
Location: goodrich, Mi
Posts: 7
[494]Hal9000 has a little shameless behaviour in the past
Re: Programming with OSX

ok next question, i know you can go ahead and write code in a note pad like program, but would i be able to use "X Code" apples software development software to write the new C language.

And is the Language "C", "C++", or "C#" i'm confused on what sintax it is.
  #5   Spotlight this post!  
Unread 04-01-2004, 09:02
[494]Hal9000 [494]Hal9000 is offline
Registered User
#0494
 
Join Date: Dec 2003
Location: goodrich, Mi
Posts: 7
[494]Hal9000 has a little shameless behaviour in the past
Re: Programming with OSX

ok, it's writtin in "C", did a little more stumbling acrossed the interweb and got that cleared up.

I'm stilll not sure if X-code will compile "C". I mean Unix is written in "C", OSX is Unix with a pretty GUI. Anyone know if x-code will compile "C"??????
  #6   Spotlight this post!  
Unread 04-01-2004, 09:17
Skabana159's Avatar
Skabana159 Skabana159 is offline
Robotics and Field Hockey
AKA: Jesse C. Owens
#0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2000
Location: Ft. Collins, CO
Posts: 92
Skabana159 is on a distinguished road
Send a message via AIM to Skabana159
Re: Programming with OSX

Quote:
Originally Posted by [494]Hal9000
I'm stilll not sure if X-code will compile "C". I mean Unix is written in "C", OSX is Unix with a pretty GUI. Anyone know if x-code will compile "C"??????
Code written for the PIC will compile in your OSX box, because unless you do something really tricky, C18 is ANSI-compliant (standard syntax).
However, if you simply use your normal compiler, rather than the C18 compiler, you will not get a usable hex file for the PIC. You must use a compiler meant for use with the PIC because your mac and the PIC have vastly different archetectures. I would go with the VPC, if I were you.

You can still use the X-Code development environment, if you just want a pretty IDE (Integrated Development Environment) to make writing easier. You just can't compile with this either.

I feel some of your pain, being a Linux user myself, and have found that the only way for me to do it is to use a program called Wine (Win emulator) to run MPLab...
__________________
"What most people do not understand is that the Buddha, the Godhead, resides just as comfortably in gears and circuits as in hills and trees. To believe otherwise is to dilute the Godhead."
-Robert Pirsig, Zen and the Art of Motorcycle Maintenance
  #7   Spotlight this post!  
Unread 04-01-2004, 12:21
Kyle Fenton Kyle Fenton is offline
GET IT ON!!
FRC #0121 (Rhode Warrior)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 2000
Location: Middletown, R.I.
Posts: 785
Kyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud of
Send a message via AIM to Kyle Fenton
Re: Programming with OSX

Quote:
Originally Posted by Skabana159
Code written for the PIC will compile in your OSX box, because unless you do something really tricky, C18 is ANSI-compliant (standard syntax).
However, if you simply use your normal compiler, rather than the C18 compiler, you will not get a usable hex file for the PIC. You must use a compiler meant for use with the PIC because your mac and the PIC have vastly different archetectures. I would go with the VPC, if I were you.

You can still use the X-Code development environment, if you just want a pretty IDE (Integrated Development Environment) to make writing easier. You just can't compile with this either.

I feel some of your pain, being a Linux user myself, and have found that the only way for me to do it is to use a program called Wine (Win emulator) to run MPLab...
I am not an expert by any means, by I know that x-code only compiles in gcc. This is one of the biggest complaints against x-code, and another reason people still buy the expensive codewarrior.

X-code is specifically designed for just writing programs in Panther. It was never meant to compile programs for embedded processors. Now that doesn't mean that it can't, somebody one day could make an add-on compiler for x-code or any other program.

It really sucks that mac users finally got the ability to be able to program in PBasic, only just to loose that ability by Innovation FIRST switching to a different language and compiler.

However I do understand that PBasic was very limited, and many FIRST teams wanted a more advance language to be able to program more.
  #8   Spotlight this post!  
Unread 04-01-2004, 12:55
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Programming with OSX

Well i'm not sure i understarnd ur question. If you are asking if you can write code in somethign other than C18 anf then use C18 then the answer is absolutely! If you are asking if you can compile code for the pic using somethign other than c18 then the answer is no!
__________________
1139 Alumni
  #9   Spotlight this post!  
Unread 04-01-2004, 17:51
Mr. Ivey's Avatar
Mr. Ivey Mr. Ivey is offline
Mark Ivey
AKA: Mark
no team
 
Join Date: Sep 2002
Rookie Year: 2000
Location: Raleigh, NC
Posts: 171
Mr. Ivey is a glorious beacon of lightMr. Ivey is a glorious beacon of lightMr. Ivey is a glorious beacon of lightMr. Ivey is a glorious beacon of lightMr. Ivey is a glorious beacon of light
Send a message via AIM to Mr. Ivey
Re: Programming with OSX

Being a Macintosh user, and employed under the name Macintosh, I will throw in a suggestion. Go to Apple's downloading section, and look through the development tools given, they are either freeware or shareware/demo versions of the software that you guys may be able to use for programming your bot this year. I'll give you the link: Apple Development Tools for OS X. I hope this helps. Also about an adaptor for using serial, Keyspan offers one, and I know it has been used in previous years and works pretty well.
Ivey
__________________
When you tell a student not to do it, you shouldn't do it. Or else you will wind up with a 3/8" drill bit in your finger... Like I did...
  #10   Spotlight this post!  
Unread 07-01-2004, 14:31
[494]Hal9000 [494]Hal9000 is offline
Registered User
#0494
 
Join Date: Dec 2003
Location: goodrich, Mi
Posts: 7
[494]Hal9000 has a little shameless behaviour in the past
Re: Programming with OSX

http://www.apple.com/downloads/macos...vironment.html


GNU Development Environment:
A complete suite of GNU C, C++, Fortran, and Java Cross Compilers, and the GDB CPU Simulator and Debugger for embedded microprocessor applications development. Targets development for ARM7, ARM9, and XScale applications

I don't know if this would help or not, i'm thinking not.
  #11   Spotlight this post!  
Unread 11-01-2004, 02:42
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
Re: Programming with OSX

Hey, It turns out the IFI Linux PICloader I wrote for Linux works with my friends Mac OS X ibook with a few tweaks dealing with termios.h. I'm working on a port, but I don't have a mac. The only problem is figuring out a way to run MC18 on Mac Os X by using an emulator of some sort, any ideas? Anyone want to look into Bochs x86 compiler or wine, if there's support for mac.

Thanks,
Ryan Waliany
__________________
R
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
Programming Compatition Angela06 Programming 30 08-04-2005 23:12
programming the compressor archiver 2001 4 23-06-2002 23:19
Pneumatics electrical wiring and programming archiver 2001 1 23-06-2002 23:10
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46
pbasic programming punarhero Programming 4 21-01-2002 23:32


All times are GMT -5. The time now is 19:59.

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