SLAU320AJ July 2010 – May 2021
The programming software is partitioned in three levels and consists of nine files in addition to the target program (see Table 3-1).
Top level | Specifies which programming functions (erase, program, verify, blow fuse) are to be executed. | |
Replicator430.c Replicator430X.c Replicator430Xv2.c Replicator430FR.c |
Contains the main section, which can be modified to meet custom requirements. In the main section of this program, the target device is erased, checked for successful erasure, and programmed. Programming loads the provided example code to the target device's memory space. (The provided code file simply flashes port pins P1.0 and/or P5.1, which drive the LEDs on the socket board provided with the FET tools, available from Texas Instruments MSP430 Group. This is the compiled FETXXX_1.s43 example code file.) This file must be replaced by the required user program and added to the project to be compiled and loaded into the host. To demonstrate the capabilities of the MSP430 JTAG interface, additional code is included, which manipulates the I/O-ports and RAM of the target device. These routines can be used to test the target device and PCB for successful communication. | |
Config430.h Config430X.h Config430Xv2.h Config430FR.h |
Contains high-level definitions to be set by the user before initially programming the host controller firmware. These so called 'quick start options' specify among other things the voltage level supplied by the Replicator hardware and the interface used to communicate with the target device. | |
Target_Code.h | Contains the basic declarations of the program code of the target device. If a C-header file should be implemented to program the target device instead of an assembly file, replace the content of Target_Code.h by the output of srec_cat.exe and remove Target_Code.s43 (IAR) or Target_Code.asm (CCS) from the project. The Target_Code.h file is generated by the srec_cat.exe file directly or by the srec.bat file. | |
JTAG functions | All MSP430-specific functions are defined here. These files should not be modified under any circumstance. | |
JTAGfunc.c JTAGfunc430X.c JTAGfunc430Xv2.c JTAGfunc430FR.c |
Contain the MSP430-specific functions needed for flash programming | |
JTAGfunc.h JTAGfunc430X.h JTAGfunc430Xv2.h JTAGfunc430FR.h |
Contain constant definitions and function prototypes used for JTAG communication | |
JSBW.c | Contains special functions that emulate the Spy-Bi-Wire interface to wake up MSP430 devices from LPMx.5 (Replicator430Xv2 and Replicator430FR only) | |
Low-level functions | All functions that depend specifically on the host controller (JTAG port I/O and timing functions) are located here. These files need to be adapted if a host controller other than the MSP430F5437 is implemented. | |
LowLevelFunc430.c LowLevelFunc430X.c LowLevelFunc430Xv2.c |
Contain the basic host-specific functions | |
LowLevelFunc430.h LowLevelFunc430X.h LowLevelFunc430Xv2.h |
Contain host-specific definitions and function prototypes | |
Devices | Describes features and differences between MSP430 devices with respect to FLASH programming. (Replicator430 and Replicator430X only) | |
Devices430.c Devices430x.c |
Functions to distinguish MSP430 devices concerning FLASH programming. | |
Devices430.h Devices430x.h |
Device function prototypes and definitions for FLASH programming. | |
Funclets | Contain target code which is written into the target's RAM to speed up writing to and erasing from the device's NVM. (These files can only be rebuilt using IAR Embedded Workbench and SRecord) | |
FlashErase.c FlashWrite.c |
Funclets to speed up flash erase and programming | |
FramErase.c FramWrite.c |
Funclets to speed up FRAM erase and programming |