public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] common/xyzmodem.c, ymodem, slow behavior receiving bytes
Date: Wed, 14 Nov 2012 12:05:45 +0100	[thread overview]
Message-ID: <20121114110545.5603520050D@gemini.denx.de> (raw)
In-Reply-To: <20121114094706.GA5697@angel3>

Dear Angelo,

In message <20121114094706.GA5697@angel3> you wrote:
> 
> > Which exact tool chain are you using to build the code?
> 
> I tested 2 different toolchains, 
> 
> m68k-elf-gcc (Sourcery CodeBench Lite 2011.09-21) 4.6.1

OK, this should be recent enough...

> > It is set because it is useful to some (those in the need of debugging
> > their code) and does not hurt others.
> 
> My question becouse sometime embedded programmers fight for a bite free 
> in the flash. On limited boards like mine (4M Flash) once kernel and 
> some apps are stored, very small size remain for u-boot and some n.v. data 
> storage. But no problem for me, i change flags as needed eventually.

-g has zero impact on the image size!!  The debug symbol tables are
only present in the ELFK file, but they are not included in the
binary image you install on your flash.  This is what I mean by "it
does not hurt others" - the U-Boot image size with or without -g is
exactly the same.

> Sure, 20 Mhz boards are able to handle 115200 as well. So there is clearly
> something non working properly in my custom board. First thought is the 
> sdram not well initialized, resulting in very slow execution of the u-boot 
> code. Is there a way in u-boot to test code execution speed ?

Not directly.  If you just want to compare boards it is often
sufficient to do this with some shell loops, say:

	date ; for i in 1 2 3 4 5 6 7 8 9 0 ; do
	for j in 1 2 3 4 5 6 7 8 9 0 ; do
	for k in 1 2 3 4 5 6 7 8 9 0 ; do
	setenv foo 1 ; setenv foo
	done ; done ; done ; date

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Forty two.

  parent reply	other threads:[~2012-11-14 11:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-10 13:40 [U-Boot] common/xyzmodem.c, ymodem, slow behavior receiving bytes Angelo Dureghello
2012-11-13  0:16 ` Angelo Dureghello
2012-11-13  1:41   ` Marek Vasut
2012-11-13  7:09   ` Wolfgang Denk
2012-11-14  9:47     ` Angelo Dureghello
2012-11-14 10:28       ` Henrik Nordström
2012-11-14 11:05       ` Wolfgang Denk [this message]
2012-11-19 21:54         ` Angelo Dureghello
2012-11-19 22:58           ` Wolfgang Denk
2012-11-22 14:38             ` Angelo Dureghello
2012-11-23 22:57             ` Angelo Dureghello
2012-11-23 23:04               ` Wolfgang Denk

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=20121114110545.5603520050D@gemini.denx.de \
    --to=wd@denx.de \
    --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