Hi,
I'm not sure what triggers it. But some of my code will compile with a
list output that includes the source. Sometimes it doesn't. And as far
as I can tell, all is the same.
For instance:
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "thermocouple.d" -MT"thermocouple.d" -o
"thermocouple.o" "../thermocouple.c"
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "i2c.d" -MT"i2c.d" -o "i2c.o" "../i2c.c"
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "HE_util.d" -MT"HE_util.d" -o
"HE_util.o" "../HE_util.c"
msp430-gcc -mmcu=msp430x2013 -o"test.elf" ./thermocouple.o ./i2c.o
./HE_util.o
msp430-objdump -S test.elf >test.lst
~~~
And I get the source shown in test.lst at least for thermocouple.c
But:
cd C:\cpp\mspgcc\workspace\uart\Debug
msp430-gcc -mmcu=msp430x1121 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "uart.d" -MT"uart.d" -o "uart.o" "../uart.c"
msp430-gcc -mmcu=msp430x1121 -o"test.elf" ./uart.o ./setdco.o
./I2C_master.o ./DS1631.o
msp430-objdump -S test.elf >test.lst
~~~
And no source. I use the list to better optimize my size. It is so much
easier to see where I'm working. Is there some way to make it work all
the time?
(BTW, I think it is nuts not to at least phase lock to a watch crystal,
the DCO, if you are going to us a uart.)
Best, Dan.