Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 104 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject:
PostPosted: Tue May 17, 2005 10:38 pm 
Offline

Joined: Sat Apr 30, 2005 12:59 am
Posts: 25
Thanks for the quick reply.

If the ERASE line is raised, I assume SAM-BA can always be recovered? Also, if the security bit is set, I assume that the code will not be overwritten with SAM-BA if a system recovery is attempted?

Also, the SAM-BA docs say that four lines need to be set to recover SAM-BA: TST, PGMEN0, PGMEN1, and PGMEN2. But it says that there are pull-ups enabled by default on PGMEN0-2 on the SAM7S-EK. I'm confused about why this matters since any initialization code that enables the pull-ups on the PGMEN0-2 lines would be overwritten upon the first reflash of the chip. The SAM7S datasheet doesn't mention anything about these lines having pull-ups enabled by default upon reset in the hardware itself.

So to clarify, I need to manually pull up ALL 4 lines (TST, PGMEN0, PGMEN1, PGMEN2) before reset to successfully enter system recovery. Is this correct? This just seems like a lot since I need to keep these lines separated normally, and then all pulled high when I want to perform a system recovery (needing four switch circuits!)


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2005 10:03 pm 
Offline

Joined: Sat Apr 30, 2005 12:59 am
Posts: 25
Can anybody comment on the requirement of all 4 TST/PGMEN0/PGMEN1/PGMEN2 lines needing to be externally pulled high to enter system recovery? I'm laying out a board as we speak and would like to get it out tomorrow morning. Thanks guys!


Top
 Profile  
 
 Post subject: flash new chip
PostPosted: Wed May 18, 2005 10:20 pm 
Offline

Joined: Wed May 18, 2005 9:48 pm
Posts: 2
Hello,

I have my own board with a new SAM7S64 populated rev.g, but I can not get the part flashed.
Checking the JTAG signals the Jlink does send out a init phase, but the controller has no feedback, same goes from the SAM-BA program.
I scanned through the AT91 CD but could not find anything telling me how to set up for a new device. I guess a miss a step here.
Has anybody experience how to do that?
Thank you
..richard


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2005 10:53 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Hi Jimbotko,

like stated in table 4.1 p.7 (doc 6070b.pdf), PGMEN0, PGMEN1, and PGMEN2 are multiplexed respectively with PA0, PA1 and PA2, and PA[0:2] have intenal pull ups enabled by default. Pull ups are always available regardless the mode of the pin, i.e. driven by the PIO or by the multiplexed peripheral.
We have no switches on the SAM7S-EK :wink:
Bye,

Patrick.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 1:48 am 
Offline

Joined: Sat Apr 30, 2005 12:59 am
Posts: 25
pfilippi wrote:
Hi Jimbotko,

like stated in table 4.1 p.7 (doc 6070b.pdf), PGMEN0, PGMEN1, and PGMEN2 are multiplexed respectively with PA0, PA1 and PA2, and PA[0:2] have intenal pull ups enabled by default. Pull ups are always available regardless the mode of the pin, i.e. driven by the PIO or by the multiplexed peripheral.
We have no switches on the SAM7S-EK :wink:
Bye,

Patrick.


Ah, silly me, I didn't read the generic PA[0:31] section where it specifies that they ALL have pull-ups enabled upon reset! You are the best, Patrick! :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 6:25 am 
Offline

Joined: Wed May 18, 2005 9:48 pm
Posts: 2
Another Silly me. Checked the hardware again and found my intended VDDCORE short was open, well well. At least the eval board works now :-)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 1:09 am 
Offline

Joined: Sat Apr 30, 2005 12:59 am
Posts: 25
Do you need the erase the flash by asserting the ERASE pin before each execution of a system recovery?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 6:54 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
No you don't.

bye :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 11:07 pm 
Offline

Joined: Sat Apr 30, 2005 12:59 am
Posts: 25
pfilippi wrote:
No you don't.

bye :wink:


Yay for SAM-BA!


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 7:55 am 
Offline

Joined: Tue Apr 12, 2005 8:01 am
Posts: 22
Location: Denmark
Hi

Is it posible to call samba from the program in flash memory or ram.
So it would work like a bootloader.

I would like to use it for developement purpose, and I think it take to much time to short the TST pin and wait 10 sec. each time I want to flash it.

Regard
René


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 8:25 am 
Offline

Joined: Sat Apr 30, 2005 12:59 am
Posts: 25
reneske wrote:
Hi

Is it posible to call samba from the program in flash memory or ram.
So it would work like a bootloader.

I would like to use it for developement purpose, and I think it take to much time to short the TST pin and wait 10 sec. each time I want to flash it.

Regard
René


Nope, it is purely design as a system recovery / last resort sort of thing. You're expected to write your own bootloader if you want specific functionality.


Top
 Profile  
 
 Post subject: usb dfu? samba??
PostPosted: Thu May 26, 2005 9:14 am 
Offline

Joined: Sun Feb 20, 2005 3:37 am
Posts: 115
Location: Belgium
hi all,

I'm trying to understand what the various options are to upgrade the firmware if i would ship a product based on the at91sam7s64 or 256 ...

1. I heard about the USB DFU class but it's not clear whether the SAM7s supports this and how it would work

2. i looked at the sam-ba program and if I understand correctly it's a thing of last resort and should not be used to upgrade firmware for additional functionality or bug fixes?

3. so what is the best way to allow for firmware upgrades over usb then? implement DFU ourselves? do all OSes support it? or implement HID or some other class standard and transfer firmware upgrades e.g. through endpoint 0?

thanks in advance!
bert


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 03, 2005 12:49 am 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Hi Bert,

Quote:
1. I heard about the USB DFU class but it's not clear whether the SAM7s supports this and how it would work

The SAM7S products do not support it.

Quote:
2. i looked at the sam-ba program and if I understand correctly it's a thing of last resort and should not be used to upgrade firmware for additional functionality or bug fixes?

Actually, SAM-BA just allows you to program the flash. SAM-BA is not a firmware. It is just a recovery and programming tool for production.

Quote:
3. so what is the best way to allow for firmware upgrades over usb then? implement DFU ourselves? do all OSes support it? or implement HID or some other class standard and transfer firmware upgrades e.g. through endpoint 0?

I will say DFU.

Regards,


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 03, 2005 11:17 am 
Offline

Joined: Sun Feb 20, 2005 3:37 am
Posts: 115
Location: Belgium
pfilippi wrote:
Hi Bert,

Quote:
1. I heard about the USB DFU class but it's not clear whether the SAM7s supports this and how it would work

The SAM7S products do not support it.

Quote:
2. i looked at the sam-ba program and if I understand correctly it's a thing of last resort and should not be used to upgrade firmware for additional functionality or bug fixes?

Actually, SAM-BA just allows you to program the flash. SAM-BA is not a firmware. It is just a recovery and programming tool for production.

Quote:
3. so what is the best way to allow for firmware upgrades over usb then? implement DFU ourselves? do all OSes support it? or implement HID or some other class standard and transfer firmware upgrades e.g. through endpoint 0?

I will say DFU.

Regards,


but to support DFU, my usb device would have to comply with the DFU class which means I need to implement this bug-free on the sam7s? and then I still need to write a driver for all platforms i want to support (win xp, mac osx, linux etc) before I can write an app that will communicate with the driver to upgrade the firmware?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 03, 2005 3:43 pm 
Offline

Joined: Thu Jun 02, 2005 5:02 pm
Posts: 14
Location: Silicon Valley
Thanks for the release of SAM-BA.


Would it be possible in the future to please release self-extracting packages in a format which isn't .exe? This adds a burden to a good number of Linux users, because not all distros (and even fewer installs) include Windows emulators. Fedore Core 3, for example, which is one of the biggest Linux distros around.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 104 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: