All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] OMAP3/devkit8000 division/multiplication function problems
@ 2011-06-14  8:52 Simon Schwarz
  2011-06-14 12:06 ` Graeme Russ
  2011-06-14 14:10 ` Simon Schwarz
  0 siblings, 2 replies; 6+ messages in thread
From: Simon Schwarz @ 2011-06-14  8:52 UTC (permalink / raw)
  To: u-boot

Hi List,

as some may know I'am working on an SPL for the devkit8000.
Now I have a problem with the UART init where I hope someone on the
list can help.

My problem is in drivers/serial/serial.c with the function
calc_divisor. With my defines this function is essentially just this:
return (CONFIG_SYS_NS16550_CLK + (gd->baudrate * (MODE_X_DIV / 2))) /
(MODE_X_DIV * gd->baudrate);

(Where MODE_X_DIV=16)

If i try to execute this line (with the step instruction of
gdb/openOCD) the debugger just does not return and I have to use
Strg+c to get a prompt.

Then the PC is 0x4020ffd4 (upper region of SRAM) and the CPSR is 0x600001d7

I think I have some problem with the division/multiplication functions
as there is nothing else in this line which may cause trouble (returns
and function calls worked before).

U-boot is running in SRAM no SDRAM init yet.

Has someone an idea where I can start looking? Maybe a known pitfall
for beginners? More information needed?

Thanks!
Simon

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-15  8:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14  8:52 [U-Boot] OMAP3/devkit8000 division/multiplication function problems Simon Schwarz
2011-06-14 12:06 ` Graeme Russ
2011-06-14 14:08   ` Simon Schwarz
2011-06-14 14:10 ` Simon Schwarz
2011-06-14 15:00   ` Simon Schwarz
2011-06-15  8:55     ` Simon Schwarz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.