Skip to contentSkip to conversation

udelay make at91sam9260 board freeze

U-Boot-Users Gonzague GENET 2 participants 2 messages Nov 14, 2007 – Nov 15, 2007

lore
Share & tools
lore
#0 lore raw

Hi all,

Strange problem indeed.
U-boot freeze when I do fatload instruction. After several investigation, the crash appear during the udelay instruction.....
But if i replace the original code of udelay instruction by a simple for loop, it works....
Any ideas ?

Regards,
Gonzague

Signature · 2 lines
View this message in context: http://www.nabble.com/udelay-make-at91sam9260-board-freeze-tf4806567.html#a13751461
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw

Hi Gonzague,

Quoted 6 lines

Strange problem indeed.
U-boot freeze when I do fatload instruction. After several investigation, the crash appear during the udelay instruction.....
But if i replace the original code of udelay instruction by a simple for loop, it works....
Any ideas ?

Does the board freeze or is it really a veerrry long delay? I am tempted to say it is the latter. If you check the archives you will see that there is always a mist of confusion around CFG_HZ and related defines which udelay uses (cpu/arm920t/at91rm9200/interrupts.c).

So I suggest to check the values used there on your platform (CFG_HZ should be 1000 btw.) and find out why udelay spins too long. Having done that, send a patch and rejoice!

Best wishes
Detlev

Signature · 5 lines
System going down at 1:45 this afternoon for disk crashing.
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de