I wondered if it was possible to get the Salvo library libsalvofmcc30s-t.a so that it can be linked with ELF
format object modules? At the moment I *think* it is COFF. The new version of the microchip IDE (mplabX),
seems to have an urge to only use ELF, and though I can compile COFF by hand, it then wont load into
the simulator and so on.
Perhaps there is some workaround - so I'll just explain what I am trying to do:
First: My environment:
- Code: Select all
My Host Machine: MacOSX 10.6.8
My host JVM: Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02-384
IDE: MPLAB X IDE Beta7.02
Target machine: dsPIC33FJ128MC706
(GCC) 4.0.3 (dsPIC30, Microchip v3_30)
Second: I retrieved the latest version of Salvo Lite from the web site today
(18th October 2011 here in Singapore): salvo-lite-dspic-4.2.2-rc6.exe
I note that there does not seem to be anything for the Mac, so I downloaded the
library for the PC, and got .h and .a files that are curiously old:
- Code: Select all
pnp182-122:Salvo hugh$ ls -l Lib/MCC30-v3
-rw-r--r-- 1 hugh staff 70352 Sep 25 2010 libsalvofmcc30l-t.a
-rw-r--r-- 1 hugh staff 68098 Sep 25 2010 libsalvofmcc30s-t.a
pnp182-122:Salvo hugh$ ls -l Inc/
drwxr-xr-x 3 hugh staff 102 Oct 18 12:48 MCC30
-rw-r--r-- 1 hugh staff 24396 Jun 21 2008 salvo.h
-rw-r--r-- 1 hugh staff 8804 Jun 21 2008 salvoadc.h
I note also that the documentation that came with this library indicates that the
name should be libsalvofmcc30s-t.s not libsalvofmcc30s-t.a (on page 4 of
Third: By default the mplabX IDE will not compile a simple program and link to this library,
because it uses the ELF object module format by default (-omf=elf). If I force it by hand
to use COFF (-omf=coff) everything compiles and links, although I have no idea if the
resulting program executes because the simulator doesn't appear to work with this file.
I have found some posts on the microchip forums that appear to indicate that the
simulator in the new IDE will only work with ELF files.
Finally - so I come back to Salvo , and wonder if I can get around my problem by getting a
version of the library in ELF format rather than COFF... I *do* understand that my problem is
not really Salvo's problem, but anyway...
Perhaps I am just downloading the wrong bits and pieces.