ts-7000
[Top] [All Lists]

[ts-7000] Re: TS 7260 & C or C++

To:
Subject: [ts-7000] Re: TS 7260 & C or C++
From: "stageelectronique" <>
Date: Wed, 23 Aug 2006 19:40:07 -0000
Thank you very much
I have already cross-compile with cygwin a Hello message for arm,and
it works !!! my next step is to send it on my LCD,Hyperteminal or
minicom ( I have a connection via RS232)... 

I realise that I have much to learn,it is my fist embedded application!!
But I enjoy !!



--- In  "Matt Godbolt" <> wrote:
>
> > >Then why ask about C#?  
> > 
> > It was a mistake,i want ask about C and C++. How to send my Hello
> > message on the hyperterminal(or minicom),LCD...
> 
> I think you're asking how to cross-compile.  That is, you want to
> compile C and C++ code on your Windows PC and then get it running on
> your ARM board.  This is quite a large topic, but in essence:
> 
> * Get cygwin installed and ensure you have all the relevant GCC tools.
>  This will give you a base development environment (but at this stage
> only for *Windows* executables.
> * Now grab and install the Cross-compiler toolkit from
>
ftp://ftp.embeddedarm.com/ts-arm-linux-cd/cross-toolchains/crosstool-cygwin-gcc-3.3.4-glibc-2.3.2.tar.bz2
> * At this stage you have some C and C++ compilers (most likely in
>
C:\cygwin\opt\crosstool\gcc-3.3.4-glibc-2.3.2\arm-unknown-linux-gnu\arm-unknown-linux-gnu\bin)
> which are capable of compiling C and C++ code into ARM assembly which
> the development board can run.
> 
> To start with something *very* simple, make a hellow.c file and put
> #include <stdio.h>
> int main(int argc, char*argv[])
> {
>   printf("hello world\n");
>   return 0;
> }
> 
> in it.  Compile this with the cross-compiler on your windows machine:
>
C:\cygwin\opt\crosstool\gcc-3.3.4-glibc-2.3.2\arm-unknown-linux-gnu\arm-unknown-linux-gnu\bin\gcc
> -o hellow hellow.c
> 
> this will make an ARM executable called 'hellow'.  You must now copy
> this to the embedded system.  If you're only using HyperTerminal (as
> your post suggests) you must bring up the hyperterm window, type 'rz'
> in it and then browse to the 'hellow' file.  This should copy 'hellow'
> to the ARM board.
> 
> Now, on the arm board you must mark the 'hellow' file as being an
> executable: type 'chmod a+x hellow'.  Now you can finally run it with
> './hellow' on the ARM board.  You should see 'hello world' printed out
> (yay!).
> 
> As for getting the LCD working, that's much more of a chore, though
> it's possible to compile the example code and use that pretty much
> as-is.  Alternatively you could try using the LCDmod kernel driver
> with my patch (http://xania.org/article.php/lcd_driver) though I'd
> suggest that's a bit more complex than you need at the moment.
> 
> For developing larger applications on the ARM box I suggest you get a
> decently-set up linux setup for your main PC and use the cross tools
> there.  I've also had quite a lot of success with ScratchBox
> (http://xania.org/article.php/buildingbuilding) which makes for easy
> cross-development.  I'm now myself back to developing on a windows
> machine and the cross-compiler, using various Samba and NFS-root
> tricks to build directly onto the embedded box's file system.
> 
> I hope something in this rather long post is helpful to you! :)
>







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU