ts-7000
[Top] [All Lists]

[ts-7000] Re: Using IAR to generate linux embeddd code

To:
Subject: [ts-7000] Re: Using IAR to generate linux embeddd code
From: "WouterS" <>
Date: Wed, 14 Jul 2010 07:22:02 -0000

--- In  "tommessum" <> wrote:
>
> > You don't, use GCC.  IAR atleast in my experience is suited to building 
> 
> Thanks, but can I rephrase the question: What do we need to do to IAR (on the 
> understanding thert there may be better solutions out there as you suggested) 
> to be able to generate linux files?
> 

Basically, you are generating code that is intended to run with the OS using 
the libraries provided in the OS. Your question talks about the IDE, which 
includes the compiler and basic project configurations with pointers to the 
libraries to be used to compile etc.

If you write cross platform C code you can compile the code with a different 
compiler, the problem with using the linux OS compared to for instance FreeRTOS 
or an alternative is that linux applications run in a protected memory 
environment. You have to use mmap to access peripherials as shown in the 
examples. This is a function provided by the Linux OS.

If you want to use the text editor in your IDE you could very well write code 
in it and generate a makefile or such to place the sources on the TS board 
where you then compile with the GNU toolchain. If you want to use the IAR 
compiler you would have to configure it to use the cross-compiling libraries 
and all that (which I would not even want to begin trying). If you want to use 
the IAR libraries, well, don't use Linux.

I am sure that you would be able to rewrite the flash on the boards to boot 
your custom compiled IAR app with the target processor being whatever is on 
your board. The bootcode resides in the FPGA and a certain address is being 
called as the base for booting. If you are going down this path you should 
realize the challenges you are accepting as you will not be able to use any of 
the advantages that the existing OS can offer you (like TCP/IP, USB, terminal 
on RS232, etc.)

For our project we switched to this board because it is faster to develop an 
application when you only have to focus on the logic needed in your app. We 
originally worked with the Rowley CrossStudio IDE and are now using the TS-7800 
Eclipse environment. From windows this works nicely, because we can very 
quickly build executable files and add them to the bootloader provided with the 
board. I suggest you do the same and accept using a new IDE with the GNU tools, 
accepting that the costly investment on IAR is not going to help your project 
with the TS boards.




------------------------------------

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> 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