[ECOS] Debugging a Redboot
Gary D. Thomas
gary.thomas@mind.be
Thu Mar 13 20:54:00 GMT 2003
On Thu, 2003-03-13 at 12:33, Rycerz Roman-G11565 wrote:
> Hi... I have a working copy of redboot minus flash routines running on my
> MPC555 platform.
> What I want to do is add EPROM programming support for a AMD29BL802C. Any
> tips on how the create a gdb debug able version ???
> I have big enough ram to hold it all....
This is quite tricky. In particular, RedBoot doesn't like
being debugged by GDB. Also, the FLASH routines are not
very GDB friendly (in fact, often the FLASH hardware is
not as well).
I'd just try a RAM version of RedBoot with the appropriate
routines and get it working that way. You could also write
a "normal" eCos program (not RedBoot) that includes the
FLASH code and debug it. You _might_ even be able to use
GDB for this, but beware - if the FLASH that you are messing
with (programming, erasing, etc), is the same device as the
one containing RedBoot, all bets are off (GDB-wise) as soon
as you get into the FLASH routine and it changes the device
from "normal/read" to any other mode!
--
.--------------------------------------------------------.
| Mind: Embedded Linux and eCos Development |
|--------------------------------------------------------|
| Gary Thomas email: gary.thomas@mind.be |
| Mind ( http://mind.be ) tel: +1 (970) 229-1963 |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc |
'--------------------------------------------------------'
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list