This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fwd: RE: question about run download sequence]


Forward to list for archiving.

-----Forwarded Message-----

> From: Aaron Case <aaron.case@dynazign.com>
> To: Keith Seitz <keiths@redhat.com>
> Subject: RE: question about run download sequence
> Date: 20 Jun 2003 11:40:18 -0400
> 
> Keith,
> 
> I have been able to get the CLI to download and run programs.  The problem
> lies with the sequence/settings Im using with the GUI interface or, less
> likely, the GUI code.
> 
> This is the sequence I use in GUI
> 1)launch from the commandline in cygwin with arm-elf-gdb -w(running it with
> insight always defaults to standard gdb, not the arm-elf version)
> 
> 2)File->Open and then select the arm formatted elf file. The file then opens
> and jumps to main.
> 
> 3)Connect->Target(I get the dialog box that says successful with the
> settings remote/serial, com1, 38400 baud)
> 
> 4)After I connect to the target the code from step 2 is replaced by a
> message that tells me to select the function to disassemble. So I select the
> function of my source code(the .c file). At this point the c code I wrote
> appears in the window and I can place break points.
> 
> 5)Next I try to download Connect->Download the code to the target. This
> appears to work and gives a message indicating that the file was downloaded.
> 
> 6)Then I click Connect->Run.  This is where the problems begin. Insight then
> gets stuck in an infinite loop of downloading and popping up the target
> settings box with no way to exit.
> 
> The command window routine for downloading and running works.  When I try
> the same with the GUI, the command window shows that the file is downloaded
> successfully but gives no indication of error or running on the target.
> 
> Both the formats srec and arm-elf work for downloading in the GUI but not
> running.
> 
> Thanks in advance,
> Aaron
> 
> -----Original Message-----
> From: Keith Seitz [mailto:keiths@redhat.com]
> Sent: Friday, June 20, 2003 9:33 AM
> To: Aaron Case
> Cc: insight@sources.redhat.com
> Subject: Re: question about run download sequence
> 
> 
> On Fri, 2003-06-20 at 05:26, Aaron Case wrote:
> > I can open the file, add breaks, connect to target, and download the file.
> > The problem comes when I run the file. It tries to download the file over
> > and over. The program gets stuck in the target setting dialog box and is
> > unrecoverable at this point.I have to kill the program and restart it. I
> > have tried arm elf format and srec format with the same result.
> 
> Can you explain the exact sequence of steps that you use to run your
> program? (File->Open, click Run, Select "foo" target, port/baud, etc)
> Make sure you include what target settings you are attempting to use and
> what hardware (MultiICE? ARMulator?).
> 
> You should be able to just click Run and it should "just work," provided
> everything is okay. (Which it appears not to. :-)
> 
> A couple of things to try:
> 1. Try running to a breakpoint using "vanilla" (command-line) gdb. This
> will tell us if there is something wrong with all the "backend" stuff
> (gdb) or if the problem lies in the GUI code (Insight).
> 
> 2. Try opening a debug window when you go to run. You can do this by
> opening a console window and entering the command "tk ManagedWin::open
> DebugWin" at the "(gdb)" prompt.
> 
> 3. Keep the console window open when attaching/downloading/running. Any
> warnings/errors output to it?
> 
> 4. Does it work on the built-in simulator?
> 
> Gdb should be able to download either of these file formats (elf,srec).
> 
> Keith
> 
> 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]