266 if (!EraseCheck(0x1900, 0x0040))
273 if (!EraseCheck(0x1880, 0x0040))
280 if (!EraseCheck(0x1800, 0x0040))
330 #pragma vector=PORT1_VECTOR
#define STATUS_ACTIVE
Replicator is active.
#define ERASE_SEGMENT
Constant for an erase of the selected flash memory segment.
void ShowStatus(word status, word index)
This function controls the status LEDs depending on the status argument. It stops program in error ca...
Header file for target code (blinking LED)
__interrupt void Port_1(void)
This interrupt service routine calls runProgramm() if button "S1" is pressed.
const unsigned long eprom_address[10]
Holds the destination adresses for different sections of the target code.
Configurations for the MSP430 Replicator Xv2.
JTAG Function Prototypes and Definitions.
#define MAIN_LENGTH
Set length of main memory.
unsigned long mainStartAdress
This variable holds the start address of the main memory.
const unsigned int eprom[10]
Holds the entire target code.
void main(void)
Main function.
void InitController(void)
Initialization of the Controller Board.
unsigned long mainLength
This variable holds the length of the main memory (in words)
#define MAIN_START_ADDRESS
Set start address of the main memory.
const unsigned long eprom_sections
Holds the number of memory sections.
void runProgramm(void)
The basic Replicator routine.
#define STATUS_OK
return 1 = no error
void ReleaseTarget(void)
Release Target Board (switch voltages off, JTAG pins are HI-Z)
#define V_RESET
Triggers a regular reset on device release from JTAG control.
void MsDelay(word milliseconds)
Delay function (resolution is 1 ms)
#define ERASE_MAIN
Constant for an erase of the entire flash main memory.
#define STATUS_ERROR
return 0 = error
const unsigned long eprom_length_of_sections[10]
Holds the length of the different memory sections.
void InitTarget(void)
Initialization of the Target Board (switch voltages on, preset JTAG pins)
Low Level function prototypes, macros, and pin-to-signal assignments regarding to user's hardware...
#define WordBufferSize
Buffer size for read and write operations in words.