For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU.
This group is to exchange information to help users get started and learn how to use the devices.
AW: AW: AW: AW: Arm Linking Problem - "ICLI, Bekir (EXT)" - Feb 15 7:31:19 2008
Hi,
I am saying in the assembly code:
.global entry
entry:=20
.....
And in the linker script file, I am saying ENTRY(entry). Doesn't this mean,=
start executing the code from function "entry"?
Mit freundlichem Gru=DF / Best regards
Bekir ICLI
Siemens AG
Automation and Drives, Automation and Drives, A&D SC IC RD4
Tel. : +49 (721) 595-3280
mailto:b...@siemens.com
http://www.siemens.com/automation
Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Crom=
me
Managing Board: Peter Loescher, Chairman, President and Chief Executive Off=
icer;=20
Wolfgang Dehen, Heinrich Hiesinger, Joe Kaeser, Erich R. Reinhardt, Hermann=
Requardt,=20
Siegfried Russwurm, Peter Y. Solmssen
Registered offices: Berlin and Munich;=20
Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684
WEEE-Reg.-No. DE 23691322
-----Urspr=FCngliche Nachricht-----
Von: A...@yahoogroups.com [mailto:A...@yahoogroups.com] Im Auftrag vo=
n 42Bastian
Gesendet: Freitag, 15. Februar 2008 13:17
An: A...@yahoogroups.com
Betreff: Re: AW: AW: AW: [AT91SAM] Arm Linking Problem
Hi
> I thought the code could be started theoretically anywhere.
> Pls, help me understand what is going on.
Who starts the code ? If it runs from flash or is loaded a binary the
loader will jump to the load-address. So you need to modify your=20
linker-script in order to have the exception-table at the very beginning.
--=20
42Bastian
Note: SPAM-only account, direct mail to bs42@...
=20
=20

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )
Re: AW: AW: AW: AW: Arm Linking Problem - 42Bastian - Feb 15 7:36:17 2008
ICLI, Bekir (EXT) schrieb:
> Hi,
>
> I am saying in the assembly code:
>
> .global entry
>
> entry:
> .....
>
> And in the linker script file, I am saying ENTRY(entry). Doesn't this mean, start
executing the code from function "entry"?
No. It just sets a flag in the ELF. But does not place it at the beginning.
A debugger might take this, but you should have a
b entry
at the very beginning.
E.g.:
.section ".reset","ax"
.globl entry
.globl reset
reset:
b entry
And the have this in the linker script before placing anything else:
.reset : {
KEEP(*(.reset))
} > sdram
--
42Bastian
Note: SPAM-only account, direct mail to bs42@...

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )
Re: AW: AW: AW: AW: Arm Linking Problem - Foltos - Feb 15 7:52:55 2008
Hi,
yes this says execution shall start fro function entry. But how can the
linker known what is starting your app? A boot loader, the hardware
itself out of reset, etc...
Entry will only fill the header of your executable file. This
information can be used by a loader or the debugger, but that's all.
Foltos
ICLI, Bekir (EXT) wrote:
>
> Hi,
>
> I am saying in the assembly code:
>
> .global entry
>
> entry:
> .....
>
> And in the linker script file, I am saying ENTRY(entry). Doesn't this
> mean, start executing the code from function "entry"?
>
> Mit freundlichem Gruß / Best regards
>
> Bekir ICLI
>
> Siemens AG
> Automation and Drives, Automation and Drives, A&D SC IC RD4
> Tel. : +49 (721) 595-3280
> mailto:b...@siemens.com
> http://www.siemens.com/automation Siemens
Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard
> Cromme
> Managing Board: Peter Loescher, Chairman, President and Chief
> Executive Officer;
> Wolfgang Dehen, Heinrich Hiesinger, Joe Kaeser, Erich R. Reinhardt,
> Hermann Requardt,
> Siegfried Russwurm, Peter Y. Solmssen
> Registered offices: Berlin and Munich;
> Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684
> WEEE-Reg.-No. DE 23691322
>
> -----Ursprüngliche Nachricht-----
> Von: A...@yahoogroups.com
> [mailto:A...@yahoogroups.com ] Im
> Auftrag von 42Bastian
> Gesendet: Freitag, 15. Februar 2008 13:17
> An: A...@yahoogroups.com
> Betreff: Re: AW: AW: AW: [AT91SAM] Arm Linking Problem
>
> Hi
>
> > I thought the code could be started theoretically anywhere.
> > Pls, help me understand what is going on.
>
> Who starts the code ? If it runs from flash or is loaded a binary the
> loader will jump to the load-address. So you need to modify your
> linker-script in order to have the exception-table at the very beginning.
>
> --
> 42Bastian
>
> Note: SPAM-only account, direct mail to bs42@...
>
> Yahoo! Groups Links
>
>

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )AW: AW: AW: AW: AW: Arm Linking Problem - "ICLI, Bekir (EXT)" - Feb 15 8:06:38 2008
Hi,
But how does the processor know whether to start from 0x20000000 or 0x0?
Apparently, in my case it starts from 0x20000000=20
Mit freundlichem Gru=DF / Best regards
Bekir ICLI
Siemens AG
Automation and Drives, Automation and Drives, A&D SC IC RD4
Tel. : +49 (721) 595-3280
mailto:b...@siemens.com
http://www.siemens.com/automation
Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Crom=
me
Managing Board: Peter Loescher, Chairman, President and Chief Executive Off=
icer;=20
Wolfgang Dehen, Heinrich Hiesinger, Joe Kaeser, Erich R. Reinhardt, Hermann=
Requardt,=20
Siegfried Russwurm, Peter Y. Solmssen
Registered offices: Berlin and Munich;=20
Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684
WEEE-Reg.-No. DE 23691322
-----Urspr=FCngliche Nachricht-----
Von: A...@yahoogroups.com [mailto:A...@yahoogroups.com] Im Auftrag vo=
n 42Bastian
Gesendet: Freitag, 15. Februar 2008 13:33
An: A...@yahoogroups.com
Betreff: Re: AW: AW: AW: AW: [AT91SAM] Arm Linking Problem
ICLI, Bekir (EXT) schrieb:
> Hi,
>=20
> I am saying in the assembly code:
>=20
> .global entry
>=20
> entry:=20
> .....
>=20
> And in the linker script file, I am saying ENTRY(entry). Doesn't this mea=
n, start executing the code from function "entry"?
No. It just sets a flag in the ELF. But does not place it at the beginning.
A debugger might take this, but you should have a
b entry
at the very beginning.
E.g.:
.section ".reset","ax"
.globl entry
.globl reset
reset:
b entry
And the have this in the linker script before placing anything else:
.reset : {
KEEP(*(.reset))
} > sdram
--=20
42Bastian
Note: SPAM-only account, direct mail to bs42@...
=20
=20

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )
Re: AW: AW: AW: AW: AW: Arm Linking Problem - 42Bastian - Feb 17 2:54:45 2008
Hi
> But how does the processor know whether to start from 0x20000000 or 0x0?
It always starts from 0x0 (ok, some from 0xfff00000).
> Apparently, in my case it starts from 0x20000000
It is most likely the bootloader.
How do you put you image on the board and where ?
Did you read the manual about booting ?
--
42Bastian
Note: SPAM-only account, direct mail to bs42@...

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )