EmbDev.net

Forum: ARM programming with GCC/GNU tools New for help


von Sevc D. (sevc)


Rate this post
useful
not useful
Hi all.

I'm interestig for ARM microcontroler.
I download WINARM new version from web.
Install it and try example (sam7s64_example) for AT91SAM7S64 demo blink
Led diode.
Try to make but show me error:

> "make" all
MAKE Version 5.2  Copyright (c) 1987, 1998 Inprise Corp.
Error makefile 181: Command syntax error
Error makefile 183: Command syntax error
Error makefile 185: Command syntax error
Error makefile 337: Colon expected
Error makefile 347: Command syntax error
Error makefile 348: Command syntax error
Error makefile 349: Command syntax error
Error makefile 359: Command syntax error
Error makefile 360: Command syntax error
Error makefile 361: Command syntax error
Error makefile 365: Command syntax error
Error makefile 366: Command syntax error
Error makefile 367: Command syntax error
Error makefile 378: Command syntax error
Error makefile 379: Command syntax error
Error makefile 380: Command syntax error
Error makefile 425: Command syntax error
*** 17 errors during make ***

> Process Exit Code: 1
> Time Taken: 00:01

I newer before work with make file
can help with this.
Other question is .
Exist free schematic and software for jtag debugging?
I foud some schematic for ATMEL AT91SAM7S64 development board.
I try make it.
I wan start with ATMEL microcontroler because have more preperials like
other
but I'll have advice for other microcontroler.

best regards Dominik Sevc - Dzairo

von Martin Thomas (Guest)


Rate this post
useful
not useful
Sevc Dominik wrote:

>> "make" all
> MAKE Version 5.2  Copyright (c) 1987, 1998 Inprise Corp.

Well, this is a FAQ, seems that I've forgotten to include information
about this in the readme.hmtl - sorry.

You are using the wrong make program. make.exe from Borland/Inprise can
not be used with the makefiles provided with the WinARM-examples. You
need a gnu-make (or compatible) like the make.exe that comes with WinARM
(in WinARM\utils\bin). The problem is caused be different programs with
the same filename.

Search your harddisk for programs with the filename make.exe, rename all
but the make.exe in WinARM\utils\bin.

If you type
make --version
the output should start with "GNU make".

> Exist free schematic and software for jtag debugging?

There are a lot of schematics for wiggler-clones. Some are included in
WinARM (search for wiggler*.pdf inside WinARM\). With a
wiggler-type-dongle you can used for example openocd or ocdremote as
GDB-server and insight-dgb as debugging-software. Everything should be
included in the WinARM package.
(ARM-Controller->JTAG-Connector->Wiggler->ParPort->
GDB-Server-Software->(insight-)gdb.

Hope this helps,
Martin Thomas

von Sevc D. (sevc)


Rate this post
useful
not useful
Yes I have tre make.exe (1.WinARM,2.Delphi,3.AVR studio)
I rename file 2 and 3 , after make show message so file not found
make.exe .
I realy can't where must write path.

I must self define path to all needet file .

help if any know.

regards
dzairo

von Sevc D. (sevc)


Rate this post
useful
not useful
Sevc Dominik wrote:
> Yes I have tre make.exe (1.WinARM,2.Delphi,3.AVR studio)
> I rename file 2 and 3 , after make show message so file not found
> make.exe .
> I realy can't where must write path.
>
> I must self define path to all needet file .
>
> help if any know.
>
> regards
> dzairo

I make easy solution - copy all bin files to Delphi directory
and all work.

Now is basics question is : where can I find result information after
make.
code size, used ram,size of user data...
show same information after make but ... :-) .

regards

Dzairo

von Martin Thomas (Guest)


Rate this post
useful
not useful
First of all: did you at least try to read the readme.html that comes
with WinARM?

> Sevc Dominik wrote:
>> Yes I have tre make.exe (1.WinARM,2.Delphi,3.AVR studio)

AVRStudio does not include make, the make which AVRStudio uses comes
with WinAVR.

>> I rename file 2 and 3 , after make show message so file not found
>> make.exe .

Since you have WinAVR installed read the remarks further down in
readme.html.
For now:
- Revert the change of the filename of "3". The make.exe from WinAVR can
be used since it is a GNU make.
- Add C:\WinARM\bin to your path. Since you have WinAVR installed there
is no need to add c:\WinARM\utils\bin
- For WinAVR+WinARM the Path should include c:\WinAVR\bin
C:\WinAVR\utils\bin and c:\WinARM\bin

>> I realy can't where must write path.

Search the net or the Windows online-help for set environment variables.

>> I must self define path to all needet file .

Sorry, I do not understand this remark/question.

> I make easy solution - copy all bin files to Delphi directory
> and all work.

If it works for you it's ok. But it is unneeded.

> Now is basics question is : where can I find result information after
> make.
> code size, used ram,size of user data...
> show same information after make but ... :-) .

The usual example-makefiles include a call to arm-elf-nm which shows the
summary of the sizes (.text, .data, .bss ...) - this is the "some
information" you have mentioned. But the information you are looking for
is included: usualy "Code-Size" = .text + .data and "user data" = .data
+ .bss.

Martin Thomas

von Sevc D. (sevc)


Rate this post
useful
not useful
Thanks for reply.

>
> First of all: did you at least try to read the readme.html that comes
> with WinARM?
>
I do it first.

>
> AVRStudio does not include make, the make which AVRStudio uses comes
> with WinAVR.
>
It's true. I install WinAVR but don't use.still program on asm.

>>> I must self define path to all needet file .
>
> Sorry, I do not understand this remark/question.
>
On first I copy only make.exe to delphi dir but show error to not found
other file , then I copy all bin file.

>> Now is basics question is : where can I find result information after
>> make.
>> code size, used ram,size of user data...
>> show same information after make but ... :-) .
>
> The usual example-makefiles include a call to arm-elf-nm which shows the
> summary of the sizes (.text, .data, .bss ...) - this is the "some
> information" you have mentioned. But the information you are looking for
> is included: usualy "Code-Size" = .text + .data and "user data" = .data
> + .bss.

I make this example sam7_hello
and show me result:

Size after:
main.elf  :
section            size      addr
.text             11828   1048576
.rodata             664   1060404
.data              2416   2097152
.bss                 72   2099568
.comment            783         0
.debug_aranges      320         0
.debug_pubnames     388         0
.debug_info        7375         0
.debug_abbrev      1502         0
.debug_line        1321         0
.debug_frame        448         0
.debug_str         2287         0
.debug_loc          796         0
Total             30200

hmm codesize = .text + .data  -> 11828 + 2416 = 14244
    userdata = .data + .bss -> 2416 + 72 = 2488

I look to source end I thinks so it's easy program but use 14244 byt for
code?
Is it goog or I bad understant result size source code.

Sorry for me eanglish.

regards
Dzairo

von Martin Thomas (Guest)


Rate this post
useful
not useful
> hmm codesize = .text + .data  -> 11828 + 2416 = 14244
>     userdata = .data + .bss -> 2416 + 72 = 2488
>
> I look to source end I thinks so it's easy program but use 14244 byt for
> code?
> Is it goog or I bad understant result size source code.

Take a look into the map-file and use arm-elf-nm to locate the objects
with the high memory-demand. You will see that the iprintf needs a lot
of memory (printf needs even more since floating-point is supported). If
you are using the stdio-functions from the newlib (like i.e. (i)printf
or sscanf) this memory-demand is normal. There are smaller
implementations for printf et al available but they usualy have limited
functionlity or are very target-specific.

Martin Thomas

von Sevc D. (sevc)


Rate this post
useful
not useful
Hi. Thanks for raply.
> Take a look into the map-file and use arm-elf-nm to locate the objects
> with the high memory-demand.
I try use nm.exe but I can't use this.
Write pls example to use program form bin direcory

I try to make example (blinky) on WinARM and Keil and compare
result code, is similar.

regards.

Dzairo

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.