C for ARM

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hi Joe

Sorry I understand what you mean now.

In the Programmers Notepad (C For ARM Compiler)
Select Tools -> Options -> Tools

Then for the "build project" and "clean project" files you need to click edit and then click the "..." button next to Command.

Point both of the build and clean commands to your make.exe file or your makeARM.exe file normally found here.
C:\Program Files\Matrix Multimedia\WinARM\utils\bin

This should solve your compiling problems.

User avatar
joe
Posts: 8
Joined: Wed Nov 22, 2006 6:32 am
Location: Berlin
Contact:

Post by joe »

Benj wrote:Hi Joe

Sorry I understand what you mean now.

In the Programmers Notepad (C For ARM Compiler)
Select Tools -> Options -> Tools

Then for the "build project" and "clean project" files you need to click edit and then click the "..." button next to Command.

Point both of the build and clean commands to your make.exe file or your makeARM.exe file normally found here.
C:\Program Files\Matrix Multimedia\WinARM\utils\bin

This should solve your compiling problems.
Yes i have found solution, please see my "protocol"
Great its running and compiling.
----------------------------------------------------------
Systemeigenschaften/Umgebungsvariablen/Path = C:\Programme\Borland\BDS\3.0\Bin;C:\PROGRA~1\Borland\CBUILD~1\Projects\Bpl;C:\PROGRA~1\Borland\CBUILD~1\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\OrCAD\OrCAD_10.0_Demo\tools\specctra\bin;C:\OrCAD\OrCAD_10.0_Demo\tools\PSpice\Library;C:\OrCAD\OrCAD_10.0_Demo\tools\bin;C:\OrCAD\OrCAD_10.0_Demo\tools\fet\bin;C:\OrCAD\OrCAD_10.0_Demo\tools\Capture;c:\Programme\Java\;C:\Programme\Java\jdk1.5.0_09\bin\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Programme\Matrix Multimedia\WinArm\bin;C:\Programme\Matrix Multimedia\WinArm\utils\bin;
System/Enivroment/

======= C for ARM configuration and error Msg:============================
Standard make.exe in >Tools>Options>Tools>(None - Global Tools) Build Project ->Edit

> "make.exe" all
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Error makefile 13: Command syntax error
*** 1 errors during make ***

> Process Exit Code: 1

=====================================================
Rename make.exe to makeARM.exe
>Tools>Options>Tools>(None - Global Tools) Build Project ->Edit makeARM.exe as Command
Name: Built Projekt
Command: makeARM.exe
Folder: %d
Parameters: all
Shortcut: keine
Save: All Files
>Console I/O
Output Parsing: use the built-in error parser.

Message:
> "makeARM.exe" all

-------- begin --------
arm-elf-gcc (GCC) 4.0.1 (WinARM)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Assembling (ARM-only): ../Global/Cstartup.S
arm-elf-gcc -c -mcpu=arm7tdmi -I. -x assembler-with-cpp -DROM_RUN -Wa,-adhlns=../Global/Cstartup.lst,-gstabs ../Global/Cstartup.S -o ../Global/Cstartup.o

Compiling C (ARM-only): main.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gstabs -DROM_RUN -O2 -Wall -Wcast-align -Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=main.lst -I../Global -MD -MP -MF .dep/main.o.d -Wnested-externs -std=gnu99 main.c -o main.o

Compiling C (ARM-only): ../Global/Cstartup_SAM7.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gstabs -DROM_RUN -O2 -Wall -Wcast-align -Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=../Global/Cstartup_SAM7.lst -I../Global -MD -MP -MF .dep/Cstartup_SAM7.o.d -Wnested-externs -std=gnu99 ../Global/Cstartup_SAM7.c -o ../Global/Cstartup_SAM7.o

Linking: main.elf
arm-elf-gcc -mcpu=arm7tdmi -I. -gstabs -DROM_RUN -O2 -Wall -Wcast-align -Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=../Global/Cstartup.lst -I../Global -MD -MP -MF .dep/main.elf.d ../Global/Cstartup.o main.o ../Global/Cstartup_SAM7.o --output main.elf -nostartfiles -Wl,-Map=main.map,--cref -lc -lm -lc -lgcc -T../Global/AT91SAM7S64-ROM.ld

Creating load file for Flash: main.hex
arm-elf-objcopy -O ihex main.elf main.hex

Making .bin file
hex2bin v1.0.1, Copyright (C) 1999 Jacques Pelletier
Lowest address = 00000000
Highest address = 000002DF

Creating Extended Listing: main.lss
arm-elf-objdump -h -S -C main.elf > main.lss

Creating Symbol Table: main.sym
arm-elf-nm -n main.elf > main.sym

Size after:
main.elf :
section size addr
.text 736 1048576
.data 0 2097152
.bss 0 2097152
.int_data 0 2113536
.stab 3336 0
.stabstr 12791 0
.comment 54 0
.reset 0 0
Total 16917



Errors: none
-------- end --------


> Process Exit Code: 0

Post Reply