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  [ 3 posts ] 
Author Message
 Post subject: AT91SAM9G45 misbehave in each reset, reads wrong uboot image
PostPosted: Thu May 17, 2012 8:05 am 
Offline

Joined: Tue Nov 29, 2011 7:56 am
Posts: 10
Hi All,

I observed strange reset behaviour on my few boards having AT91SAM9G45.
Sometimes processor doesn't insert output NRST pulse after soft reset/user reset and that time uboot image data read by bootstrap are different than actually written in NAND flash. So, Uboot execution is not working.

In some boards, it is also observed that whenever the pulse duration of user RESET that is given to processsor is larger than 230mS, the issue is "uboot image data read by bootstrap are different than actually written in NAND flash. So, Uboot execution is not working".

Awaiting for expert's comments/suggestions and help.

Regards,
Yash


Top
 Profile  
 
 Post subject: Re: AT91SAM9G45 misbehave in each reset, reads wrong uboot i
PostPosted: Thu May 17, 2012 9:06 am 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 330
Location: USA
The earlier generation of AT91SAM devices have a 4-stage boot sequence:

RESET invoked ROMBoot,
which in turn loaded & executed AT91SAMBootstrap,
which in turn loaded & executed U-Boot,
which in turn loaded & executed the OS (e.g. Linux).

Is the reset sequence different on your "few boards"?

Regards


Top
 Profile  
 
 Post subject: Re: AT91SAM9G45 misbehave in each reset, reads wrong uboot i
PostPosted: Thu May 17, 2012 3:57 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
Seeing as it gets to the point of loading uBoot, one might reasonable presume that AT91BootStrap is loading successfully into SRAM (you could checksum that), and that your real problem is how you are initializing your SDRAM/DDR, clocks and system.

I'd look very carefully at the SDRAM circuit, the configuration and timings being used. Check you have the geometry, refresh, and initialization sequences correct for the chips you are using, and the speed is as suitable.

I'd look very carefully at the PLL settings, and the stability of the clocks being generated/used by the memory and peripherals.

I'm not hugely familiar with the G45, but other SAM9's come up at 48 MHZ, and then your code in AT91BootStrap gear it up to maximal speed, and initializes the SDRAM/DDR.

Check also your NAND timings on the external bus when running at the higher speed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

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: