irclog2html for #openjtag on 20070220

01:57.44*** join/#openjtag nm__ (n=nm@203.210.156.91)
01:57.51nm__join #oe
02:20.23*** join/#openjtag nm_ (n=nm@203.210.156.91)
02:20.35*** join/#openjtag nm__ (n=nm@203.210.156.91)
02:57.49*** join/#openjtag nm_ (n=nm@222.252.42.172)
04:32.03*** join/#openjtag ubm (n=D1N@cpe-70-114-207-206.houston.res.rr.com)
06:16.41*** join/#openjtag D1N_ (n=D1N@cpe-70-114-207-206.houston.res.rr.com)
06:22.52*** join/#openjtag ubm (n=D1N@cpe-70-114-207-206.houston.res.rr.com) [NETSPLIT VICTIM]
06:22.52*** join/#openjtag AchiestDragon (n=david@whipy.demon.co.uk) [NETSPLIT VICTIM]
06:22.52*** join/#openjtag wookey_ (n=wookey@courthouse.aleph1.co.uk) [NETSPLIT VICTIM]
06:22.52*** join/#openjtag nm (n=hongtd@58.187.131.188) [NETSPLIT VICTIM]
06:22.52*** join/#openjtag LostThePlot (n=david@whipy.demon.co.uk) [NETSPLIT VICTIM]
06:22.52*** join/#openjtag toi_ (n=pleemans@d5152D3B4.access.telenet.be)
06:22.52*** join/#openjtag ka6sox-office (n=ka6sox@nslu2-linux/ka6sox) [NETSPLIT VICTIM]
06:22.52*** join/#openjtag p2-mate (n=p2@cable-87-244-173-194.upc.chello.be) [NETSPLIT VICTIM]
06:24.01*** join/#openjtag D1N__ (n=D1N@cpe-70-114-207-206.houston.res.rr.com)
06:29.55*** join/#openjtag aproemel (n=aproemel@www-cache.bocholt.fh-gelsenkirchen.de)
07:02.56aproemelgood morning
07:03.04aproemelvmaster_: need your help again
08:20.17*** join/#openjtag rwhitby (n=rwhitby@nslu2-linux/rwhitby)
08:34.03vmaster_hey aproemel
08:34.45aproemelhi :-)
08:34.55aproemelmy problem is, how to debug my code ^^
08:35.06aproemeli tried to use eclipse but it failed :-(
08:36.15aproemelthe main problem is, i think that a interrupt won't be serviced
08:36.51aproemelI used the ATMEL XModem and Tempo Service, the code seemes to be OK
08:37.25aproemelbut if i start the code, the Xmodem Service opens the pipe and then don't print the "C" to DBGU
08:38.13aproemelif i "halt" the programm with the telnet feature of openocd
08:38.20aproemeland make step by step debugging
08:39.28aproemelmy programm hangs in the while(1) and should wait there till finish the file transfer
08:45.02vmasteraproemel: i'll have breakfast and look into your problem in about 20 minutes
08:45.09aproemelok, thanks
09:18.26vmasteraproemel: ok, i've never debugged anything with Eclipse myself - I find it too cumbersome to debug with an IDE
09:18.45aproemelwith which program do you debug ?
09:18.53vmasteraproemel: I use the plain GDB
09:19.08aproemelok
09:19.32vmasteraproemel: run your arm-xxx-gdb with your application as the only argument
09:19.51aproemelon my pc?
09:19.52vmasteraproemel: on the GDB prompt connect to the OpenOCD: target remote localhost:3333
09:19.55vmasteraproemel: yeah
09:20.07aproemelok
09:20.21aproemelwith the debug informations, i have to build c code with -d or ?
09:20.33vmasterwith -g
09:22.09aproemelshould i upload the file first?
09:22.15aproemelor first start gdb ?
09:22.29vmasteryou can use the GDB to upload your file, too
09:22.58vmasterafter attaching, just issue the "load" command
09:23.18aproemelok, i test it right now
09:24.22aproemelmhh, do I need the .out or the .bin file for debuggig ?
09:24.33vmasterthe .out
09:24.40aproemelbut i have to upload the bin
09:24.47aproemelbecause the .out is too large
09:25.03vmasterGDB understands the ELF format, and uploads only the sections containing code and data
09:26.15aproemelInvalid download offset
09:26.34aproemelmaybe my whitespace in my folder name ?
09:26.47vmastercould you paste the line you entered and the reply?
09:28.03aproemelworks now
09:28.12aproemelmy folder was named "Loader v1"
09:28.24aproemeland it fails, I renamed it to "Loader_v1" and it works
09:28.50vmasterlol, ok
09:29.05aproemeldo you have a good howto for plain gdb ?
09:29.32vmasteri'm sure there are howtos, but i don't know any
09:29.43aproemelok, i'll take a look
09:29.57aproemelthanks a lot :-)
09:30.03vmasteryou have to enter "monitor arm7_9 sw_bkpts enable" to tell the OpenOCD to use software breakpoints
09:30.35vmasterthese are off by default as they occupy one of only two breakpoint units which could be needed for hardware breakpoints
09:32.28vmasterwhen using the GDB for remote debugging you have to know that you can't "run" your application like you would when using the GDB for a local application
09:33.33aproemelmhh, how do i do it then?
09:33.42vmasterinstead you "load" it, which also sets the PC to the application's entry point, and then just "continue" or "step", or "stepi" (single asm instruction) or "next" or "nexti"
09:34.23aproemelok
09:44.43aproemelif i type "continue" the target should run till braikpoint, right ?
09:47.01vmasteryes
09:47.22vmasteryou can abbreviate almost every command - a single 'c' works, too
09:48.14aproemeli typed continue and no halt appears
09:48.17aproemeli set 2 points
09:48.20aproemelbreak main
09:48.36aproemelbreak AT91F_ST_DBGU_Handler
09:49.01vmastertype "monitor arm7_9 sw_bkpts"
09:49.05vmasterwhat does it say?
09:49.06aproemeli typed
09:49.07aproemelload
09:49.12aproemelmonitor ...
09:49.16aproemelbreak ...
09:49.18aproemelbreak ...
09:49.20aproemelcontinue
09:49.57aproemelnow gdb hangs :-(
09:50.15vmasteruhm, no, it doesn't hang, it's just waiting for something to happen
09:50.22vmasteryou can interrupt it with <ctrl><c>
09:50.27aproemelok
09:50.41vmasteryou only get a GDB prompt when the application is halted
09:51.02vmasterany warnings or errors in the OpenOCD output?
09:52.13aproemelError: arm7_9_common.c:1748 arm7_9_read_memory(): memory read caused data abort
09:53.49vmasterok, that one isn't necessarily a problem - when the GDB tries to unwind stack information and reaches the top-level frame it will try to read from bogus addresses
09:54.57aproemelstep
09:55.08aproemelcannot find bounds of current function
09:55.28aproemelI'm currently in my startup.s
09:56.15vmaster"step" and "next" operate on source lines - when you're in an assembly function you can only use "stepi" and "nexti" to single-step single instructions
09:56.22vmasterstep steps into, next steps over
09:56.57aproemelnext works and goes to the nex label
09:58.55aproemelmaybe i know why the continue fails
09:59.07aproemelon which speed does the target run?
09:59.15vmasterhum?
09:59.35aproemeldoes the prozessor run with 180Mhz like in normal operation mode?
10:00.19vmasterit operates at whatever it operated before
10:00.23vmasterGDB doesn't touch any of this
10:00.51aproemeli though it could be my waitstates in my while()
11:13.26*** join/#openjtag wookey_ (n=wookey@courthouse.aleph1.co.uk)
11:15.05*** join/#openjtag bullet (n=bullet@248.244.62.81.cust.bluewin.ch)
11:26.09*** join/#openjtag wookey_ (n=wookey@courthouse.aleph1.co.uk)
12:02.36*** join/#openjtag aproemel__ (n=aproemel@www-cache.bocholt.fh-gelsenkirchen.de)
12:07.49aproemel__vmaster: do you have 5min agein ?
12:07.54aproemel__again
12:09.40vmastersure
12:10.20aproemel__i know why my code wouldn't work if i upload it with jtag
12:10.43aproemel__i use the feature of automatically remap at upload with DBGU
12:11.00vmasterah, yeah, i remember that
12:11.12aproemel__now i'm searching for the failure of not serviced AIC Routine
12:11.51aproemel__did you use the ATMEL API for your loader?
12:13.43aproemel__I having an interrupt for the "System Timer" and the DBGU
12:13.59aproemel__but this wouldn't serviced :-(
12:14.08vmasterno, the u-boot does all of this itself (and basic at91rm9200 support was already there)
12:14.28vmasteraproemel__: the ARM9 has a "vector catch register"
12:14.39aproemel__but you have to upload uboot to the AT for the first time
12:15.21vmasteraproemel__: i simply used the OpenOCD's flash feature to write the image to the NOR flash my board had
12:15.37vmasteraproemel__: you can use the vector catch to trap IRQ and FIQ
12:15.48vmasteraproemel__: enter "monitor reg" to get a list of registers
12:16.12vmasteraproemel__: i believe i called the vector catch reg "vec_catch" or something like that
12:16.31vmasteraproemel__: ah, it's "vector catch"
12:16.34aproemel__vmaster: the flash feature i want to use too, but I'm forced to write a DBGU loader :-(
12:17.11vmasteraproemel__: you can set that registers with "reg #number 0xvalue"
12:17.25aproemel__i'll try
12:18.39vmasteraproemel__: setting it to 0xc0 should catch IRQ and FIQ
12:24.36aproemel__vmaster: mhh, i'm looking for the right reg
12:25.53aproemel__because i opend the AIC and tell it the service routine for the interrupt
12:30.26aproemel__oh, in gdb mode i'll get a Prefetch Abort
12:36.00aproemel__without gdb the error wont occure
12:38.29aproemel__vmaster: if i wont get the loader working, i'll upload the uboot image with Jtag
15:06.27*** join/#openjtag prpplague (n=dave@12.190.41.146)
15:56.53*** join/#openjtag aproemel (n=aproemel@p508AB51A.dip0.t-ipconnect.de)
16:50.09*** join/#openjtag wookey_ (n=wookey@courthouse.aleph1.co.uk)
16:52.13*** join/#openjtag Bitmaster (n=Bitmaste@c-a361e253.325-1-64736c12.cust.bredbandsbolaget.se)
18:52.53*** join/#openjtag vmaster_ (i=vmaster@p5B07E22E.dip.t-dialin.net)
19:32.47*** join/#openjtag Masterbit (n=Bitmaste@c-a361e253.325-1-64736c12.cust.bredbandsbolaget.se)
23:01.29*** join/#openjtag rwhitby (n=rwhitby@nslu2-linux/rwhitby)

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.