balta
Newbie level 6
Hi all. I am having problem with MSP430F147
and programming it with MSP-TS430PM64 Target Socket Board 64PM. When I open asm example project from IAR kickstart and try to debug it, it says(after downloading):
FATAL ERROR
Failed to write memory at 0xFC00
session aborted
I tried to change adrresses of
segments acording to memory map of
MSP430F147, but similar scenario occurs.
Here is memory map with 0xFC00 problem:
interrupt vector: 0FFFFh - 0FFE0h
code memory: 0FFFFh - 08000h
Does anyone know what am I doing wrong? Thanks in advance
code is:
#include "msp430x14x.h" ; #define controlled include file
;*******************************************************************************
; MSP430x1xx Demo - Software Toggle P1.0
;
; Description; Toggle P1.0 by xor'ing P1.0 inside of a software loop.
; ACLK = n/a, MCLK = SMCLK = default DCO
;
; MSP430x1xx
; -----------------
; /|\| XIN|-
; | | |
; --|RST XOUT|-
; | |
; | P1.0|-->LED
;
; A. Dannenberg
; Texas Instruments, Inc
; January 2006
; Built with IAR Embedded Workbench Version: 3.40A
;*******************************************************************************
;#include "msp430.h"
;-------------------------------------------------------------------------------
ORG 0FC00h ; Progam Start (1K Flash device)
;-------------------------------------------------------------------------------
RESET mov.w #0280h,SP ; Set stackpointer (128B RAM device)
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop watchdog timer
SetupP1 bis.b #001h,&P1DIR ; Set P1.0 to output direction
;
Mainloop xor.b #001h,&P1OUT ; Toggle P1.0
Wait mov.w #050000,R15 ; Delay to R15
L1 dec.w R15 ; Decrement R15
jnz L1 ; Delay over?
jmp Mainloop ; Again
;
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
ORG 0FFFFh ; MSP430 RESET Vector
DW RESET
END
and programming it with MSP-TS430PM64 Target Socket Board 64PM. When I open asm example project from IAR kickstart and try to debug it, it says(after downloading):
FATAL ERROR
Failed to write memory at 0xFC00
session aborted
I tried to change adrresses of
segments acording to memory map of
MSP430F147, but similar scenario occurs.
Here is memory map with 0xFC00 problem:
interrupt vector: 0FFFFh - 0FFE0h
code memory: 0FFFFh - 08000h
Does anyone know what am I doing wrong? Thanks in advance
code is:
#include "msp430x14x.h" ; #define controlled include file
;*******************************************************************************
; MSP430x1xx Demo - Software Toggle P1.0
;
; Description; Toggle P1.0 by xor'ing P1.0 inside of a software loop.
; ACLK = n/a, MCLK = SMCLK = default DCO
;
; MSP430x1xx
; -----------------
; /|\| XIN|-
; | | |
; --|RST XOUT|-
; | |
; | P1.0|-->LED
;
; A. Dannenberg
; Texas Instruments, Inc
; January 2006
; Built with IAR Embedded Workbench Version: 3.40A
;*******************************************************************************
;#include "msp430.h"
;-------------------------------------------------------------------------------
ORG 0FC00h ; Progam Start (1K Flash device)
;-------------------------------------------------------------------------------
RESET mov.w #0280h,SP ; Set stackpointer (128B RAM device)
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop watchdog timer
SetupP1 bis.b #001h,&P1DIR ; Set P1.0 to output direction
;
Mainloop xor.b #001h,&P1OUT ; Toggle P1.0
Wait mov.w #050000,R15 ; Delay to R15
L1 dec.w R15 ; Decrement R15
jnz L1 ; Delay over?
jmp Mainloop ; Again
;
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
ORG 0FFFFh ; MSP430 RESET Vector
DW RESET
END