msp4th: properly assign 32 interrupt vectors
authorDan White <dan@whiteaudio.com>
Thu, 2 May 2013 20:09:06 +0000 (15:09 -0500)
committerDan White <dan@whiteaudio.com>
Thu, 2 May 2013 20:09:06 +0000 (15:09 -0500)
msp4th/Makefile
msp4th/ldscript_ns430

index 57c09b7de41b4e6ad782784ea074ab3c6013d4e2..d20de5e5ff014c91fb03ef4e1a1ceaa4b97af4c8 100644 (file)
@@ -16,6 +16,7 @@ MCU     = msp2
 #MCU     = msp430x2013
 CPU    = 430x
 MPY     = 16se
+IVCNT   = 32
 # List all the source files here
 # eg if you have a source file foo.c then list it here
 SOURCES = main.c ns430-uart.c msp4th.c
@@ -30,13 +31,13 @@ INCLUDES = -I.
 #CFLAGS   = -mmcu=$(MCU) -Werror -Wall -Wunused -mendup-at=main $(INCLUDES)
 #CFLAGS   = -mmcu=$(MCU) -g -Os -Werror -Wall -Wunused $(INCLUDES)
 #CFLAGS   = -mmcu=$(MCU) -g -Os -Werror -Wall -Wunused $(INCLUDES)
-CFLAGS   = -mcpu=$(CPU) -mmpy=$(MPY) -g -Os -Werror -Wall -Wunused $(INCLUDES)
+CFLAGS   = -mcpu=$(CPU) -mmpy=$(MPY) -mivcnt=$(IVCNT) -g -Os -Werror -Wall -Wunused $(INCLUDES)
 #ASFLAGS  = -mmcu=$(MCU) -x assembler-with-cpp -Wa,-gstabs
 #ASFLAGS  = -mmcu=$(MCU) -Wall -Wunused -mendup-at=main $(INCLUDES)
 #ASFLAGS  = -mmcu=$(MCU) -g -Os -Wall -Wunused $(INCLUDES)
-ASFLAGS  = -mcpu=$(CPU) -mmpy=$(MPY) -g -Os -Wall -Wunused $(INCLUDES)
+ASFLAGS  = -mcpu=$(CPU) -mmpy=$(MPY) -mivcnt=$(IVCNT) -g -Os -Wall -Wunused $(INCLUDES)
 #LDFLAGS  = -mmcu=$(MCU) -Wl,-Map=$(TARGET).map -T ldscript_ns430
-LDFLAGS  = -mcpu=$(CPU) -mmpy=$(MPY) -Wl,-Map=$(TARGET).map -T ldscript_ns430
+LDFLAGS  = -mcpu=$(CPU) -mmpy=$(MPY) -mivcnt=$(IVCNT) -Wl,-Map=$(TARGET).map -T ldscript_ns430
 ########################################################################################
 CC       = msp430-gcc
 LD       = msp430-ld
index 1b21d930d258b377be593608f3b8ad0976d470f9..26212a1915f14b22f83c62c52c264374cf4d347a 100644 (file)
@@ -9,7 +9,7 @@ MEMORY {
   ram (wx)         : ORIGIN = 0x4000, LENGTH = 0x3fe0
   /*rom (rx)         : ORIGIN = 0xf800, LENGTH = 2048-32*/
 
-  vectors          : ORIGIN = 0xffe0, LENGTH = 64
+  vectors          : ORIGIN = 0xffc0, LENGTH = 64
 
   /* Remaining banks are absent */
   bsl              : ORIGIN = 0x0000, LENGTH = 0x0000