Subject:
|
Re: Steve H, C$, me learning C Brick OS
|
Newsgroups:
|
lugnet.org.ca.rtltoronto
|
Date:
|
Fri, 9 Jan 2004 23:50:36 GMT
|
Viewed:
|
473 times
|
| |
| |
In lugnet.org.ca.rtltoronto, Chris Magno wrote:
> I had not done it up until now, but with marios pointer to Bricxcc and
> those 2 files it was a breeze.
A very cold breeze... :-)
> Turns out bruce was missing a brickos.srec firmware, that for some
> reason never was installed....
If the "2 files" you mention are the ones I put up on bricxcc.sourceforge.net
then the brickos.srec firmware should be installed to the brickos\boot
directory. That's where it gets put if you do a full make from the brickos root
directory as well.
> OK, next step, lets find a sample C code somewhere, and "compile it"
> then Down load it on to the RCX.
>
> EASY!
>
> !!!!B U L L - _ * ^ !!!!!!!!
>
> of all the sample c code for the RCXen out there, they all have these
> stupid #includes[H.].....
>
> OK, I can find a directory of includes. BUT when i use BRICXCC to
> compile the c, it never sees the includes and gives me (and bruce
> errors.)
If your BricxCC is correctly configured it should find all the includes just
fine. You have to first, of course, tell BricxCC to use brickOS from the Find
Brick dialog. If you can see a brickOS main menu item then you know you have
correctly selected brickOS as the firmware type. Then go to the Preferences
dialog, Compiler page, C/C++/Pascal tab.
If you installed Cygwin and brickOS using my 2 installer executables then your
cygwin root should be c:\cygwin. Your brickOS root should be /brickos. And the
correct content for the Makefile Template should be:
ROOT=%os_root%
KERNEL=$(ROOT)/boot/brickOS
PROGRAMS=%project%.lx
DOBJECTS=%project_files%
all:: $(DOBJECTS) $(PROGRAMS)
download:: all
$(ROOT)/util/dll %prog% %tty% %exec% %addr% $(PROGRAMS)
set_addr::
$(ROOT)/util/dll %tty% %addr% %set_addr%
include $(ROOT)/Makefile.common
include $(ROOT)/Makefile.user
Try clicking the Default button from this tab if your values differ
signficantly.
Given the above, you should be able to use File/Open and browse to
c:\cygwin\brickos\demos and open helloworld.c. Then you should be able to
simply click on the Compile button and have it compile without any errors. With
version 3.3.7.6 of BricxCC you should be able to download the brickOS firmware
using the built-in firmware download feature in BricxCC (off the Tools menu).
And you should be able to download your program using the Download button.
John Hansen
|
|
Message has 1 Reply: | | Re: Steve H, C$, me learning C Brick OS
|
| (...) OK, this was done. and I have seen it work last night at the dinner. both laptops were using W2K my laptop was a 98se box. we ALL used the easy to get "2 files" as pointed to from your GREAT web page . (...) Sec. OK. (...) OK, if I have done (...) (21 years ago, 10-Jan-04, to lugnet.org.ca.rtltoronto)
|
Message is in Reply To:
| | Steve H, C$, me learning C Brick OS
|
| UGH!!!! what a night. I was up VERY LATE helping bruce put BrickOS on his brick. (start with the left leg of the flame suit, next the right leg, ok, now the pyro jacket, and next, the special pyro gel.) I had not done it up until now, but with (...) (21 years ago, 9-Jan-04, to lugnet.org.ca.rtltoronto)
|
41 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|