Sign in

username:

password:



Not a member?

Search AT91SAM



Search tips

Subscribe to AT91SAM



Ads

Discussion Groups

Discussion Groups | AT91SAM ARM | Booting from dataflash

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.

Booting from dataflash - "ICLI, Bekir (EXT)" - Apr 11 3:51:28 2008

Hi all,

So far I have always loaded my code to sdram and than did a remap with
copying the exception vectors to the sram.
Now I should use dataflash for booting. I read the arm manual and it
says that the boot code in dataflash is checked for validity of vectors,
and if yes, it does a remap and jumps to address 0.

Question-1: Where, in dataflash, is the processor looking for a valid
boot code?
Question-2: Just to see whether my code in dataflash is found and
approved of validity, what should I check? First thing that comes to my
mind is that since he finds my boot code valid (if he finds), he would
not go to the boot code in rom and therefore when I do a power on/off,
it wouldn't write RomBOOT in the hyperterminal. Does that make sense, or
any ideas?

Regards,
Bekir



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


Re: Booting from dataflash - 42Bastian - Apr 11 4:17:26 2008

ICLI, Bekir (EXT) schrieb:
> Question-1: Where, in dataflash, is the processor looking for a valid
> boot code?

Address 0.

> Question-2: Just to see whether my code in dataflash is found and
> approved of validity, what should I check?

If it contains jumps on the 7 vectors and a size in the unused vector
(written by SAM-BA) it is valid.

Note: The bootloader will only load into internal RAM, which is
4K on SAM9260 or 160K on SAM9261.
--
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 )

AW: Booting from dataflash - "ICLI, Bekir (EXT)" - Apr 11 4:44:53 2008

Hi Bastian,

Thanks for the answer, I have said in SAM-BA "send boot file" and he sent m=
y .bin file..
I read it than out and have seen that he did in fact set the size to the un=
used vector.
And I see that all the other vectors are branches..
But how do I get my code running? How do I see whether my processor have fo=
und it valid, in the boot sequence?
Because for some reason it doesn't show any sign of having seen my boot cod=
e in dataflash.

PS: my board is 9rl64 and it has 64 k internal sram, that should be way mor=
e than enough for my code.
Mit freundlichem Gru=DF / Best regards
Bekir ICLI
-----Urspr=FCngliche Nachricht-----
Von: A...@yahoogroups.com [mailto:A...@yahoogroups.com] Im Auftrag vo=
n 42Bastian
Gesendet: Freitag, 11. April 2008 10:15
An: A...@yahoogroups.com
Betreff: Re: [AT91SAM] Booting from dataflash

ICLI, Bekir (EXT) schrieb:
> Question-1: Where, in dataflash, is the processor looking for a valid
> boot code?

Address 0.

> Question-2: Just to see whether my code in dataflash is found and
> approved of validity, what should I check?=20

If it contains jumps on the 7 vectors and a size in the unused vector=20
(written by SAM-BA) it is valid.

Note: The bootloader will only load into internal RAM, which is
4K on SAM9260 or 160K on SAM9261.
--=20
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: Booting from dataflash - 42Bastian - Apr 11 5:15:13 2008

ICLI, Bekir (EXT) schrieb:
> Hi Bastian,
>How do I see whether my processor have found it valid, in the boot
sequence?

LED/printf debugging :-)
--
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: Booting from dataflash - Paulo Silva - Apr 12 9:55:48 2008

Hi

I saw 42bastian had guide you to use bootstrap, and I have another points to you.

When I tryied to use bootstrap(orignal from Atmel) into dataflash to load my application I had some problem with it.
1 - The vector table should have the 6th vector with the size of it, when you use the samba option to load it samba fills this vector to you but it you load it as an application you should put this vector by hands.
2 - The bootstrap original verifies the valid image to load into sdram because it prepared to load uboot, I take off the part of the code that does this verification.
3 - The bootstrap has options to you set the size of your application and the pointer that your application are located into dataflash.

I run the Atmelīs blink application by dataflash

Regards

Paulo
----- Original Message -----
From: ICLI, Bekir (EXT)
To: A...@yahoogroups.com
Sent: Friday, April 11, 2008 4:49 AM
Subject: [AT91SAM] Booting from dataflash

Hi all,

So far I have always loaded my code to sdram and than did a remap with copying the exception vectors to the sram.
Now I should use dataflash for booting. I read the arm manual and it says that the boot code in dataflash is checked for validity of vectors,

and if yes, it does a remap and jumps to address 0.

Question-1: Where, in dataflash, is the processor looking for a valid boot code?
Question-2: Just to see whether my code in dataflash is found and approved of validity, what should I check? First thing that comes to my mind is that since he finds my boot code valid (if he finds), he would not go to the boot code in rom and therefore when I do a power on/off, it wouldn't write RomBOOT in the hyperterminal. Does that make sense, or any ideas?

Regards,
Bekir



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