EmbeddedRelated.com
Forums

How to configure samba for dataflash

Started by "ICLI, Bekir (EXT)" June 24, 2008
Hi all,

Our new product has the same dataflash connected to the same pins of
AT91SAM9RL64 as in Eval-Board.
How can I load my boot code to the dataflash? Is there a way of telling
samba.exe that it should not initialize the external sdram (which he is
trying and not finding)?
Any help would be greatly appreciated..

Regards,
Bekir
> Our new product has the same dataflash connected to the same pins of
> AT91SAM9RL64 as in Eval-Board.

We have a customer how had to write an applet for SAM-BA to support his
board even though it did only differ in the SDRAM interface from an
Eval-board.
--
42Bastian

Note: SPAM-only account, direct mail to bs42@...

Hi Bastian,

I guess, I don't need an applet, it'd be ok as well, if mine can work in command prompt.
Isn't there a way of changing some configuration files or something? Like .tcl files? Do I need days to do that?
Do you have any idea?

Thanks,
Bekir

-----Ursprgliche Nachricht-----
Von: A... [mailto:A...] Im Auftrag von 42Bastian
Gesendet: Dienstag, 24. Juni 2008 11:36
An: A...
Betreff: Re: [AT91SAM] How to configure samba for dataflash

> Our new product has the same dataflash connected to the same pins of
> AT91SAM9RL64 as in Eval-Board.

We have a customer how had to write an applet for SAM-BA to support his
board even though it did only differ in the SDRAM interface from an
Eval-board.
--
42Bastian

Note: SPAM-only account, direct mail to bs42@...

Hi

> I guess, I don't need an applet, it'd be ok as well, if mine can work in command prompt.
> Isn't there a way of changing some configuration files or something? Like .tcl files? Do I need days to do that?

Our customer just needed a few hours (including downloading and
installing ARM GCC).

> Do you have any idea?

I haven't done it myself before. So: No idea apart from what I wrote before.

--
42Bastian

Note: SPAM-only account, direct mail to bs42@...

I Don't know about loading boot code into the DataFLASH but I have loaded a
binary data file into the DataFLASH using SAM-BA.

You can write a series of tcl scripts to accomplish this. The scripts I
needed were actually provided by my Atmel FAE. This is what he provided:

I am using our DataFlash Card, AT45DCB008, 8MByte, which internally uses our
AT45DB642D 64Mbit Serial DataFlash chip. The DataFlash Card is an MMC-style
removable card, such that I have jumpered an MMC socket onto my AT91SAM7S-EK
which uses the AT91SAM7S256 (pin-and-function compatible with your
AT91SAM7S64). There is a sister-device, the AT91SAM7X-EK which uses the
AT91SAM7X256; the -EK already has an MMC socket on it. This way, I have
verified with 2 different MMC cards between the 2 different -EK's that I can
program and verify different binary images between the 2 using the SAM-BA
v2.6 executable.

So here is the procedure for you modify your existing SAM-BA setup:

1. Download and install the latest

AT91-ISP.exe (2 MB, revision 1.10, updated 06/07) Install files for the AT91
ISP. Includes SAM-BA package.

http://www.atmel.com/dyn

/products/tools_card.asp?tool_id883

2. In the default installation director C:\Program Files\ATMEL
Corporation\AT91-ISP v1.10\SAM-BA v2.6\lib\AT91SAM7S64-EK, make a back-up
copy of the AT91SAM7S64-EK.tcl file.
3. Rename the attached .zzz to .zip and unzip to the above directory.
4. Open up a connection with SAM-BA v2.6, choosing the AT91SAM7S64-EK
5. You should now see a tab labeled, "DataFlash AT45DB/DCB." Under the
Scripts section, there is a drop-down menu for "Enable Dataflash on CS0" or
CS1. Then click Execute to initialize the SPI interface.
6. From there, you can enter a file name in the "Send File Name" box
then click on "Send File." You can then "Compare sent file with memory."

If you are interested in actual files e-mail me and I will send them.

Regards,
Mathieu

http://www.falsecreekwebcam.com/

http://www.falsecreekwebcam.com/buy/dealoftheday.php