Eclipse/OpenOCD

Hi

I am new to the Eclipse/OpenOCD world, but I want to use it to develop projects to run on embedded hardware containing STM32 ARM processors. I have an STM32F10X development board with an Olimex ARM_USB_OCD dongle and a demo project to run on it. However, the demo uses a customised makefile to generate a .elf file that can then be debugged. I am trying to configure Eclipse to automatically generate the makefile and thus provide a generic base for developing new projects.

I have configured Eclipse Europa to use Solaris to compile each module of the demo project and link them. I have managed to replicate nearly all the -gcc commands created by the customised makefile and hence compile and link my code. However the customised makefile includes in the linker ‘-o obj/stm32demo.elf’ which I assume instructs it to compile an output file in .elf format for debugging. The makefile generated by Solaris includes in the linker ‘-ostm32demo’ so the output file has no extension and is of indeterminate format. I cannot find anything in Solaris to change this.

Furthermore, the customised makefile has an additional line ‘objcopy -O srec obj/stm32demo.elf obj/stm32demo.s19’ which I cannot configure Solaris to create.

The nett result is that the customised makefile creates files which can be debugged via the Debug perspective in Eclipse, while those created by Solaris cannot.

Can anyone help?

Regards

Alan Rouse