EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Using Eclipse to debug assembly source

Started by Ahunter10 July 30, 2010
Hello All,

I am new to the ARM platform, and I'm working on getting my development tools set up. I have I am using the LPC2103 (on olimex header board) with the olimex arm-usb-tiny JTAG adapter. I used the included CD to install eclplise, OpenOCD, and the required plugins.

The IDE is working well, I can compile C code and debug in eclipse. However, I would also like to be able to write and debug assembly code, especially while I am learning about the platform. Is there a way to do this through the same IDE, besides putting inline assembly in a C program?

Thanks,

Alex

An Engineer's Guide to the LPC2100 Series

> Is there a way to do this through the same IDE, besides putting inline assembly in a C program?

I am using a slightly different set of tools, but am able to debug arm assembly code (e.g. IntAsm.s) through the Eclipse IDE. There should be a small drop down box that allows you to select SRC, ASM, MIXED, and one other option IIRC.

On 30/07/2010 21:22, jsm09a wrote:
> There should be a small drop down box that allows you to select SRC,
> ASM, MIXED, and one other option IIRC.

It should auto-detect any .s/.asm files in the source folder of a CDT
project. Debugging should also work out of the box... provided the
source files haven't moved since the last compile (locations and names
are stored in the debugging information).

Pete

--
Pete Vidler
Senior Systems Developer,
TTE Systems Ltd

Work: http://www.tte-systems.com
Home: http://petevidler.com

Memfault Beyond the Launch