Hi! Stephan Bode wrote on 13/01/08 14:09 MET: > > In my assembler code (main.S) I set up section .vectors as this: > [...] > At the end of blink1s.lst I can find my interrupt vector table, which I > believe is correct: > > Disassembly of section .vectors: > > 0000ffe0 <_vectors_end-0x20>: > ffe0: 52 40 interrupt service routine at 0x4052 > [...] > fffe: 00 40 interrupt service routine at 0x4000 > > I load the program into the µC with: > > msp430-jtag -e blink1s.elf ---> no errors, but no blinking!
It seems that msp430-jtag only programs the .text section. Have a look at <ftp://ftp.fl.priv.at/pub/msp430/ez430/demo> where I work around this problem with quite a hack: msp430-objcopy --only-section=.vectors testprogram vectors msp430-objcopy --rename-section .vectors=.text vectors sudo msp430-jtag -D --lpt=/dev/ttyUSB0 --backend ti --spy-bi-wire \ --erase=0xffe0 -pv vectors Basically my cheat lets msp430-jtag thinks it is programming real code not just the interrupt vectors at address 0xffe0. PS: Im using the msp430 toolchain from <http://download.opensuse.org/repositories/CrossToolchain:/msp430/openSUSE_10.2/> with 'libMSP430.so' from <www.soft-switch.org/downloads/mspgcc/> copied to '/opt/cross/lib/'. -- MfG / Regards Friedrich Lobenstock
