Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Target options on Insight

2005-02-16 by Bruce Paterson

Nice Guy wrote:

> 
> Could someone explain what all the target options in insight are for.
>  Wondering what they are for.  Mostly interested in the ARM
> Remote/Serial, and how it is used.

I have mine currently set for GDBServerTCP/IP because I'm using 
ocdremote as the gdb "server" on port 8888.
This seems to be the correct setting, but I have just started on this 
today !

I'm having some odd Insight problems myself someone may be able to point 
me in the right direction.

1/ I have to use dir(ectory) command to tell Insight where each bit of C 
code is. Doesn't the final elf file contain the paths of the C code 
already, somehow ? What have I broken ?  Note using -ggdb3 with gcc for 
both compile and link stages.
I could use a "source" file to put all my paths in I guess, but 
wondering if there's a way around this ?

2/ When I display mixed assembly and code, and single step in this mode 
(code was flashed using serial port seperately) the order seems all 
screwed. It's like Insight has got which assembly belongs to which bit 
of C code all out of whack so the effect is you jump all over the C file 
when simply single steping assembler instructions. Have I got an 
Endian-ness problem ?  If I look at the .lss file created by the link it 
seems to have C code and assembler all grouped logically, so I doubt 
this is  a optimisation issue. (It's wildly all over the place, not just 
back and forth a couple). The code sequence I run as single step looks 
to be correct wrt the .lss file, it's just Insight has it all wrong.

3/ Can a gdb setup be used to load the code into flash, (assuming I 
haven't written my own boot loader yet), or I will always need to use 
the serial boot loader/flasher ? (Note code is too big to run from RAM).


-- 
Cheers,
Bruce
-------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager.

     /\\\/\\\/\\\    /   /      Bruce Paterson
    /  \\\ \\\ \\\  /   /    Senior Design Engineer
   /   /\\\/\\\/\\\/   /   8 Anzed Court, Mulgrave, Vic, 3170
  /   /  \\\ \\\ \\\  /  PO Box 4112, Mulgrave, Vic, 3170, Australia
/   /    \\\/\\\ \\\/   Ph: +61 3 8561 4232   Fax: +61 3 9560 9055
       Tele-IP Ltd.      Email: bruce@...    Icq: #32015991
                         WWW:   http://www.tele-ip.com       VK3TJN
-------------------------------------------------------------------

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.