So I am beginning to familiarize myself with interrupts and how they work on the MSP430.
Below is my code:
#include "msp430f2619.h"
#include "intrinsics.h"
#define LED1 BIT3
#define LED2 BIT4
void main (void)
{
WDTCTL = WDTPW|WDTHOLD;
P2OUT = ~LED1;
P2DIR = LED1|LED2;
TACCR0 = 49999;
TACCTL0 = CCIE;
TACTL = MC_1|ID_3|TASSEL_2|TACLR;
__enable_interrupt();
for (;;) {
}
}
#pragma vector = TIMERA0_VECTOR
__interrupt void TA0_ISR (void)
{
P2OUT ^= LED1|LED2;
}
It compiles fine; but when i go to 'rebuild all' there is an issue linking and i get this error msg:
Error[e16]: Segment INTVEC (size: 0x34 align: 0x1) is too long for segment definition. At least 0x14 more bytes needed. The problem occurred while
processing the segment placement command "-Z(CODE)INTVEC=FFE0-FFFF", where at the moment of placement the available memory ranges were
"CODE:ffe0-ffff"
Reserved ranges relevant to this placement:
ffe0-ffff INTVEC
Error while running Linker
uhhh help?