[U-Boot-Users] Au1550 U-boot debugging - a newbie question

RadekFisera jungelist at centrum.cz
Wed Feb 20 11:05:30 CET 2008


I think I've overcome the debugging problem (at least partially). When the
bit in the coprocessor register that enables single stepping is set I can
step instructions in gdb (I'm using DDD GUI). However after each step the
hardware breakpoints have to be cleared by CI (in BDI2000 telnet session). 
But this is very awkward. I'm trying to find another way...


Vlad Lungu wrote:
> 
> RadekFisera wrote:
>> I'm using U-boot 1.3.0. The hardware breakpoint option is set in BDI2000
>> configuration file in target part (initial memory controller registers
>> settings is also in this file)
>> [TARGET]
>> JTAGCLOCK   0      		;use 16 MHz JTAG clock
>> CPUTYPE     AU1000	        ;AU1000  ;the used target CPU type
>> ENDIAN      LITTLE              ;target is little endian
>> STARTUP     RESET
>> RESET       JTAG		;the reset type (NONE, JTAG, HARD)
>> BDIMODE     AGENT   	        ;the BDI working mode (LOADONLY | AGENT)
>> BREAKMODE   HARD          	;SOFT or HARD, HARD uses PPC hardware
>> breakpoints
>> STEPMODE    JTAG                ;JTAG, HWBP or SWBP
>> VECTOR      CATCH               ;catch unhandled exceptions
>>
>> I know that during debugging program in flash only HW breakpoints are
>> enabled. I tried to set breakpoint in gdb via command "break" and
>> "hbreak"
>> also. In both case I have observeeed the same behaviour (SIGABRT after
>> stepi
>> and "*** TARGET: all hardware breakpoints in use " in the telnet session
>> window). I've tried HWBP option instead of JTAG when chosing the stepmode
>> for BDI 2000.
>>   
> Are you sure you have hardware breakpoints  on that target? And if you 
> do, isn't that breakpoint (it's probably only one available)
> already used maybe? Check the BDI and Au1000 docs.
> 
> Also, maybe you should try commenting VECTOR CATCH. That signal looks 
> funny to me.
> 
> 
> Vlad
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Au1550-U-boot-debugging---a-newbie-question-tp15546519p15585816.html
Sent from the Uboot - Users mailing list archive at Nabble.com.





More information about the U-Boot mailing list