From: Ben Warren Date: Thu, 14 Sep 2006 15:20:18 -0400 Subject: [U-Boot-Users] Debugging U-boot with BDI-2000 on MPC8349 In-Reply-To: <4509A611.6000002@freescale.com> References: <1158259973.16415.63.camel@saruman.qstreams.net> <4509A611.6000002@freescale.com> Message-ID: <1158261618.16415.68.camel@saruman.qstreams.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Thanks Timur, On Thu, 2006-09-14 at 13:57 -0500, Timur Tabi wrote: > Ben Warren wrote: > > Hello, > > > > Has anybody been able to successfully single step through U-boot code on > > an MPC8349 CPU using a BDI-2000? > > I've attached two config files. One can be used to flash the 9349E-mITX, and the other can be used to debug it. > > The flash-enabled one programs a bunch of registers that wake up the flash chip. Unfortunately, when using this config, U-boot hangs somewhere in start.S. I'm probably programming the board just differently enough to confuse U-Boot. > > The other config programs nothing, which gives U-Boot a clean slate to program. > The config I use to debug is much like your second one. In general, less is more. > I presume it should be possible to create a "unified" config that works in both situations, but I haven't had the time to try it. > > I've never used GDB with the BDI. I've used it with Linux drivers and it's really very slick. I imagine it would be excellent with U-boot too, if I could get it to work in code other than start.S. regards, Ben