Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MSP430 IAR kickstart problem

Status
Not open for further replies.

balta

Newbie level 6
Joined
Feb 5, 2006
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,413
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
 

I solved the problem. My LPT didnt provide enough power for FET, FET didnt provide enough power for programming flash...It had power just for identifing MSP. So, with external 3.0V supply everything works fine. Thanks Balta. No problem Balta.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top