AT91SAM7S Boot Assistant (SAM-BA)

Discussion about SAM7 Series and ARM7TDMI based products.

Moderator: nferre

dwight
Location: Silicon Valley
Posts: 14
Joined: Thu Jun 02, 2005 5:02 pm

Fri Jun 10, 2005 5:08 pm

Alas, the .exe cannot be extracted with the latest version of both Fedora and Wine. So I have no idea what's on that release.


I did, however, find the SAM-BA doc, and have some questions. First, where does the related code that SAM-BA talks to live on the Eval board? I didn't see the memory map mentioned in the doc.


Secondly, is the source code to the binary which gets put on the Eval board available? Or is this included in the .exe file? The reason why I ask is because I'm doing something similar with Redboot, and am interested in making this work for those with Linux development systems.


Finally, I noticed from the doc that the SAM-BA GUI all seems to be written in TCL. If this is the case, then the GUI ought to run right out of the box on Linux. TCL was originally developed for UNIX, and has been an integral part of UNIX/Linux for many, many years.


Thanks in advance for any light you can shine on these matters.
zeke
Location: Calgary
Posts: 13
Joined: Mon May 09, 2005 6:50 pm

Fri Jun 10, 2005 10:45 pm

I am wondering if the source code for the SAM-BA windows application is available? I would like to integrate it into my own application.
dwight
Location: Silicon Valley
Posts: 14
Joined: Thu Jun 02, 2005 5:02 pm

Sat Jun 11, 2005 9:20 am

Well, that's actually an amusing question. If I read the doc correctly, it indicates that the code is written in TCL. If that's the case, then you already have the source code. Personally, I have no idea, as I can't extract the stuff to see what's actually there.

What's also amusing (and useful) if this is true is that the TCL code ought to work on Linux as well as Windows. TCL was originally designed and written soley for UNIX, and consequently Linux. It was only much later that it was ported to Windows.

So if we could get some clarity on these issues, we might be able to expand the support of Atmel's processors across different platforms, and make it more available for more people.
TommyBurger
Location: Corona, CA, USA
Posts: 6
Joined: Tue Jun 14, 2005 5:28 am

Tue Jun 14, 2005 5:48 am

I read in the errata for the chip that the lock bits can only be changed 100 times. Running the recovery proceedure unlocks and then locks the first two regions, then you would have to unlock them to program the flash. That is three changes of the lock bits. Does that mean you can only use the procedure about 33 times? I hope I am wrong, I really like the way SAM-BA works.
erixon
Location: Sweden
Posts: 5
Joined: Wed Mar 16, 2005 2:40 pm

Tue Jul 05, 2005 2:35 pm

Hi, are the chance that you release fireware for SAM-BA....
I think it would be a good application note..

Any way, are any cheap Jtag flash tools? IAR STK lock great but (and it is relativt cheap) but it lock like you have to buy J-Flash software (398€) or IAR compiler if want to flash more 32Kb... or do I miss something?

And SAMBA only works AT91SAM7S128 rev C and higher....
(And it lock like www.elfa.se only have rev B of AT91SAM7S128 (but the only sell AT91SAM7S64))
and I can not get chip that support SAM-BA, so I begin to regret my choice of microcontroller....
henkvisser
Location: San Diego, California
Posts: 305
Joined: Wed Jan 05, 2005 11:38 pm

revs

Tue Jul 05, 2005 11:36 pm

What revs of the AT91SAMS64 supports SAMBA? E or later?

-Henk
erixon
Location: Sweden
Posts: 5
Joined: Wed Mar 16, 2005 2:40 pm

Re: revs

Wed Jul 06, 2005 1:28 am

AT91SAM7S32 & AT91SAM7S64 starting from rev E (product ID: 58814E)
AT91SAM7S128 & AT91SAM7S256 starting from rev C (product ID: 58818C)
dima
Posts: 2
Joined: Wed Jul 06, 2005 8:47 am

Unable to download beta

Wed Jul 06, 2005 8:50 am

I have been unable to download the beta from the site specified in the newsletter. Is the 81.80.104.162 host up?

Thank you in advance!
dima
Posts: 2
Joined: Wed Jul 06, 2005 8:47 am

More documentation?

Wed Jul 06, 2005 9:23 am

I have finally downloaded SAM-BA from tools/software/sam_ba/Install%20SAM-BA.exe

I need to write a "dumb" application that will simply download firmware into the flash without requiring any user action on the PC side.

It would be nice if I can get some hints on either the format of the SAM-BA USB frames, tcl code of the SAM-BA application or interface of the SAM-BA.dll.

Thank you in advance!
User avatar
Fredo_Boyer
Contact:
Location: ATMEL Rousset FRANCE
Posts: 145
Joined: Mon Mar 22, 2004 12:29 pm

SAM-BA works on AT91SAM7S128/256 revB and Higher !!!!!!

Wed Jul 06, 2005 2:33 pm

Hi erixon,

SAM-BA works on AT91SAM7S128 rev B and higher and not only revC !!!!
So don't worry, you can use it with your actual microcontroller revision !
Just try it !

Bye,
FlameWatcher
Location: Florida
Posts: 14
Joined: Tue Apr 05, 2005 3:49 pm

-E- Memory Overflow error

Wed Jul 06, 2005 9:39 pm

I got this error using SAM-BA:
-I- File size = 65536 byte(s)
-E- Memory Overflow
Chip AT91SAM7S64 Program Flash using rawBinary file from IAR compiler and Fill all memory with ones (0xFF).
This creates a full flash of 64K right ?
Send file to Flash start at address 0x0100000

It works OK if I delete a byte from the file but there is an EOF marker (0x0A) at the end of the file that is included with the binary image and programed into the chip (last byte).
If the (0x0A) is removed the file will not work.

Am I doing something wrong or ....?
User avatar
pfilippi
Contact:
Posts: 326
Joined: Fri Feb 13, 2004 7:53 pm

Wed Jul 06, 2005 11:58 pm

Hi Erixxon,
Any way, are any cheap Jtag flash tools? IAR STK lock great but (and it is relativt cheap) but it lock like you have to buy J-Flash software (398€) or IAR compiler if want to flash more 32Kb... or do I miss something?
Yes, Embest tools provider form ARM, provides a flash programmer for 80$ and schematics to do a JTAG cable (wiggler compatible) which will cost you around 5$.

Check out this http://www.armkits.com/company/FP_atmel.asp
JTAG Cable Schematic http://www.armkits.com/Product/jtagcable.asp

But of course, since the rev B of the SAM7S128 supports SAM-BA (thanks Croquette) you do not need all this above.

Bye,
Patrick
henkvisser
Location: San Diego, California
Posts: 305
Joined: Wed Jan 05, 2005 11:38 pm

at91sams64 and Samba

Thu Jul 07, 2005 1:03 am

What revs of the SAM64 support Samba? Same as the SAM128?

Thanks.
User avatar
Fredo_Boyer
Contact:
Location: ATMEL Rousset FRANCE
Posts: 145
Joined: Mon Mar 22, 2004 12:29 pm

Thu Jul 07, 2005 10:27 am

Hi henkvisser,

SAM-BA supports:
SAM7S64 since revE and higher
SAM7S128/256 since revB and higher

Bye !
User avatar
Fredo_Boyer
Contact:
Location: ATMEL Rousset FRANCE
Posts: 145
Joined: Mon Mar 22, 2004 12:29 pm

-E- Memory Overflow error

Thu Jul 07, 2005 10:32 am

Hi FlameWatcher,

You are not wrong, this is one bug which was already found and corrected in the nearly new versions we will provide very soon !

Bye,

I got this error using SAM-BA:
-I- File size = 65536 byte(s)
-E- Memory Overflow
Chip AT91SAM7S64 Program Flash using rawBinary file from IAR compiler and Fill all memory with ones (0xFF).
This creates a full flash of 64K right ?
Send file to Flash start at address 0x0100000

It works OK if I delete a byte from the file but there is an EOF marker (0x0A) at the end of the file that is included with the binary image and programed into the chip (last byte).
If the (0x0A) is removed the file will not work.

Am I doing something wrong or ....?

Return to “SAM7 ARM7TDMI MCU”

Who is online

Users browsing this forum: Google [Bot] and 2 guests