TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
ARM Cross Tool Chain unter Windows …

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> ADNP/9200
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 19.09.2008, 15:43    Post subject: ARM Cross Tool Chain unter Windows … Reply with quote

Hallo Forum.

Für einen ADNP/9200 steht der ARM Cross Tool Chain nun auch für Windows/Cygwin zur Verfügung. Weitere Einzelheiten sind unter

http://www.dilnetpc.com/mHT9200-46.pdf

zu finden. Der Text bezieht sich zwar auf den DNP/9200, gilt aber auch für einen ADNP/9200.

Getestet haben wir das Ganze zurzeit allerdings nur unter Windows XP. Eine Eclipse-Integration ist ebenfalls vorgesehen.

Gruß

KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 21.11.2008, 14:51    Post subject: Linux-Anwendungen unter Windows entwickeln … Reply with quote

Hallo Forum.

Die GNU-Werkzeuge für ARM-basierte DIL/NetPCs, PC/104-Boards und Systeme (DNP/9200 mit Linux-Kernel 2.6, ADNP/9200, CP/465 mit Intel-IXP465, IGW/920) zur Entwicklung unter Windows/Cygwin stehen ab sofort auf CD-ROM zur Verfügung. Auf der CD-ROM ist auch eine Anleitung zu finden, um Eclipse als IDE zu nutzen.

Gruß

KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 28.11.2008, 14:54    Post subject: Makefile unter Cygwin … Reply with quote

Hallo Forum.

Per E-Mail erreichte uns die folgende Frage:

Ich versuche gerade, unter Cygwin ein Makefile zum Laufen zu bringen, mit dem die Quelldateien erst in Object-Files übersetzt werden, und anschließend zu einem Executable zusammengelinkt werden. Leider ohne Erfolg. Das compilieren .c -> .o funktioniert, aber wie bediene ich den Linker korrekt? Haben Sie einen Tipp für mich, wie ich das machen muss?

Die Antwort lautet:

Der Aufruf des Linkers erfolgt genauso, wie der Compiler, nur darf kein Parameter "-c" in der Zeile stehen, und nach dem "-o" steht das fertige Programm, z.B.:

arm-ssv1-linux-gcc -o executable object1.o object2.o

Beispiel eines solchen Makefile:]


Code:
# Example Makefile with separate linking # # Define CC here, or export it before run make, # or run "make CC=arm-ssv1-linux-gcc"
#CC=arm-ssv1-linux-gcc

all: hello-world

hello-world: hello.o
     $(CC) -o $@ $<

hello.o: hello.c
     $(CC) -c -o $@ $<


Danke an HNE.

Gruß

KDW
Back to top
View user's profile Send private message
eagle38106



Joined: 16 Feb 2009
Posts: 7

PostPosted: 24.02.2009, 15:36    Post subject: Makefile unter Cygwin Reply with quote

Hi!

Für größere Projekte habe ich das Makefile ein wenig "aufgebohrt". Man kann nun in verschiedenen Unterverzeichnissen die Quellcodes und Header-Dateien ablegen. Mit
make dep
werden die Abhängigkeiten der Quellcodes von verschiedenen Header-Dateien untersucht und für den Make-Prozess abgespeichert.

Code:
# usage: make              or
#        make clean        or
#        make dep
#


# This Makefile awaits the following directory structure:
#
# .../project        <- TARGET, Makefile, .depend
# .../project/inc    <- *.h
#            /obj    <- *.o
#            /src    <- *.c


SOURCES=src/main.c src/ExecSocketCmd.c src/AT91RM9200.c src/jtag.c
TARGET=autorun


OBJECTS=$(subst src/,obj/,$(addsuffix .o, $(basename ${SOURCES})))
CC=arm-ssv1-linux-gcc
CC_FLAGS=-Wall -Os -march=armv4 -mtune=arm9tdmi -fsigned-char


all: ${TARGET}

-include .depend

obj/%.o: src/%.c
   ${CC} ${CC_FLAGS} -c -o $@ $<
   @chmod -x $<

$(TARGET): $(OBJECTS)
   ${CC} -lpthread -o $@ $(OBJECTS)

dep:
   ${CC} ${CC_FLAGS} -MM src/*.c > .depend
   perl -p -i -e 's/([\w]*.o:)/obj\/$$1/g' .depend
   @rm .depend.bak

clean:
   @rm -f ${TARGET} ${OBJECTS} src/*~ src/*.bak inc/*.bak inc/*~ *.bak *~
   @chmod -x src/*.*
   @chmod -x inc/*.*
   @chmod -x Makefile


Gruß
Carsten
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> ADNP/9200 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015