From: Andrejs Cainikovs <AndrejsC@GlobalAutomationSystems.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] at91sam9260-ek intermittenly fails at u-boot init
Date: Thu, 26 Jun 2008 00:29:28 +0300 [thread overview]
Message-ID: <4862B8B8.7050405@GlobalAutomationSystems.com> (raw)
In-Reply-To: <loom.20080625T005703-423@post.gmane.org>
Norman Cheung wrote:
> U-boot fails intermittently at the start. When it fails, it didn't make it to
> my first printf statement. When I use JTAG to debug it, it always works.
>
> If the board has been let without power for 1+ hour, it will also boot up when
> I apply power to it(something to do with the battery perhaps). Once it booted
> up,it is very stable. I can run Mtest etc.
>
> ...
>
> The only thing we can think of is Reset cycle or some h/ware init code in
> u-boot that might not be compatible with at91bootstrap's init code.
We had *exactly* the same problem with our AT91RM9200 based custom board
recently.
After battling lots of days trying to find a bug within software we
realized that problem actually hides in hardware. Boards reset line is
controlled via small supervisor AVR. After tuning that watchdog properly
according to datasheets and leaving small reserve, finally board is
working as supposed.
Trying to fix this I believe we read half of the internet topics related
to that :), and I have found similar problem description in details
(don't remember where, though). There was one guy claiming that there
should be correct reset procedure during cold reset, or AT91 CPU's
memory controller will fail to initialize.
Based on that, we had reviewed our watchdog timings, have separated NRST
and NTRST (!) giving each personal delay, and now it rocks.
I sincerely believe that french engineers of Atmel's EK/DK boards are
too competent to make such a mistake, but probably it is worth trying to
test this.
Kind regards,
Andrejs Cainikovs.
next prev parent reply other threads:[~2008-06-25 21:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 1:36 [U-Boot-Users] at91sam9260-ek intermittenly fails at u-boot init Norman Cheung
2008-06-25 21:29 ` Andrejs Cainikovs [this message]
2008-06-26 7:53 ` Stelian Pop
2008-06-26 11:21 ` Jean-Christophe PLAGNIOL-VILLARD
2008-06-26 15:17 ` Norman Cheung
2008-06-27 21:31 ` Norman Cheung
2008-06-30 8:53 ` Stelian Pop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4862B8B8.7050405@GlobalAutomationSystems.com \
--to=andrejsc@globalautomationsystems.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox