This file contains the Application Programming Interface (API) to access an MSP430 microcontroller via JTAG using the MSP430.DLL. This file contains the DLL function headers and definitions.
More...
|
enum | STATUS_CODE {
STATUS_ERROR = -1,
STATUS_OK = 0
} |
| Status codes of the DLL functions. More...
|
|
enum | CPU_ARCH_TYPE {
CPU_ARCH_ORIGINAL,
CPU_ARCH_X,
CPU_ARCH_XV2,
CPU_ARCH_ARM
} |
|
enum | TARGET_ARCHITECTURE {
MSP430,
MSP432_M4
} |
|
enum | READ_WRITE {
WRITE = 0,
READ = 1,
OVERWRITE = 2
} |
|
enum | ENABLE_DISABLE {
DISABLE = 0,
ENABLE = 1
} |
|
enum | RESET_METHOD {
PUC_RESET = (1 << 0),
RST_RESET = (1 << 1),
VCC_RESET = (1 << 2),
FORCE_RESET = (1 << 3),
ALL_RESETS = (PUC_RESET | RST_RESET | VCC_RESET),
FORCE_PUC_RESET = (FORCE_RESET | PUC_RESET),
FORCE_RST_RESET = (FORCE_RESET | RST_RESET),
FORCE_VCC_RESET = (FORCE_RESET | VCC_RESET)
} |
| Device reset methods. More...
|
|
enum | ERASE_TYPE {
ERASE_SEGMENT = 0,
ERASE_MAIN = 1,
ERASE_ALL = 2,
ERASE_TOTAL = 3,
ERASE_USER_CODE = 4
} |
| FLASH erase type. More...
|
|
enum | CONFIG_MODE {
VERIFICATION_MODE = 0,
EMULATION_MODE = 1,
LOCKED_FLASH_ACCESS = 5,
EDT_TRACE_MODE = 7,
INTERFACE_MODE = 8,
SET_MDB_BEFORE_RUN = 9,
RAM_PRESERVE_MODE = 10,
UNLOCK_BSL_MODE =11,
DEVICE_CODE = 12,
WRITE_EXTERNAL_MEMORY = 13,
DEBUG_LPM_X = 14,
SET_INTERFACE_SPEED = 15,
TOTAL_ERASE_DEVICE = 16,
ET_CURRENTDRIVE_FINE = 17,
SOFTWARE_BREAKPOINTS = 18,
DISABLE_INTERRUPTS = 19,
CONFIG_JTAG_LOCK_5XX = 20
} |
| Configurations to set with MSP430_Configure. More...
|
|
enum | DISABLE_INTERRUPTS_TYPE {
DISABLE_INTERRUPTS_NONE = 0,
DISABLE_INTERRUPTS_SINGLE_STEP = 1,
DISABLE_INTERRUPTS_RUN = 2
} |
| Configurations values for CONFIG_MODE DISABLE_INTERRUPTS. More...
|
|
enum | INTERFACE_TYPE {
JTAG_IF = 0,
SPYBIWIRE_IF = 1,
SPYBIWIREJTAG_IF = 2,
AUTOMATIC_IF = 3,
UNDEF_IF = 4,
SPYBIWIRE_DCDC = 5,
SPYBIWIRE_MSP_FET_IF = 6,
JTAG_MSP432 = 7,
SWD_MSP432 = 8
} |
| Configurations values for CONFIG_MODE INTERFACE_MODE. More...
|
|
enum | INTERFACE_SPEED {
FAST = 0,
MEDIUM = 1,
SLOW = 2
} |
| Configurations values for CONFIG_MODE INTERFACE_SPEED. More...
|
|
enum | FILE_TYPE {
FILETYPE_AUTO,
FILETYPE_TI_TXT,
FILETYPE_INTEL_HEX
} |
| File types. More...
|
|
enum | MESSAGE_LEVEL {
MSPDS_MESSAGE_LEVEL_WARNING = 0,
MSPDS_MESSAGE_LEVEL_INFORMATION = 1
} |
|
enum | ERROR_CODE { ERROR_DEFINITIONS
} |
|
enum | SYSTEM_EVENT_MSP {
FET_CONNECTION_LOST,
DEVICE_CONNECTION_LOST,
FET_RESTART_NEEDED,
DEVICE_IN_LPM5_MODE,
DEVICE_WAKEUP_LPM5_MODE,
FET_OVERCURRENT,
FET_FPGA_TIMOUT
} |
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_SET_SYSTEM_NOTIFY_CALLBACK (SYSTEM_NOTIFY_CALLBACK parSystemNotifyCallback) |
| Initialize the SYSTEM NOTIFYCALLBACK. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_SetTargetArchitecture (TARGET_ARCHITECTURE_t architecture) |
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_LoadDeviceDb (const char *file) |
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_DumpDeviceDb (const char *file) |
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_ClearDeviceDb () |
| Remove all loaded devices from the device database. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Initialize (const char *port, int32_t *version) |
| Initialize the interface. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Close (int32_t vccOff) |
| Close the interface. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetJtagID (int32_t *JtagId) |
| Deprecated. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetFoundDevice (uint8_t *FoundDevice, int32_t count) |
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_OpenDevice (const char *Device, const char *Password, int32_t PwLength, int32_t DeviceCode, int32_t setId) |
| Identify the device, and compare the found device to the expected device. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Device (int32_t localDeviceId, uint8_t *buffer, int32_t count) |
| Obtain the device information. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Configure (int32_t mode, int32_t value) |
| Configure the mode(s) of the device and/or the software. Possible configuration modes are covered by the enum CONFIG_MODE. See notes for details of different modes to be configured. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_VCC (int32_t voltage) |
| Set the device Vcc pin to voltage/1000 volts.
The USB JTAG adaptor also checks if external power is supplied to the traget device. If an external voltage is detected MSP430_VCC() returns STATUS_ERROR and one of the corresponding error codes. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetCurVCCT (int32_t *voltage) |
| Report back the current voltage supplied to the target device. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetExtVoltage (int32_t *voltage, int32_t *state) |
| Detect if external voltage is supplied to the target device. Report back the value of an external voltage as well as an corresponding state. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Reset (int32_t method, int32_t execute, int32_t releaseJTAG) |
| Reset the device using the specified method(s). Optionally start device execution, and release the JTAG control signals. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Erase (int32_t type, int32_t address, int32_t length) |
| Erase the device FLASH/FRAM memory. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Memory (int32_t address, uint8_t *buffer, int32_t count, int32_t rw) |
| Read and write the device memory. "Device memory" includes the Special Function Registers (i.e., peripheral registers), RAM, Information (FLASH/FRAM) memory, Bootstrap Loader memory (BLS) and Main (FLASH/FRAM) memory. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Secure (void) |
| The device is secured (i.e., the JTAG security fuse is blown).
MSP-FET430UIF USB JTAG adaptor >>> DOES <<< support this feature. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_ReadOutFile (int32_t wStart, int32_t wLength, const char *lpszFileName, int32_t iFileType) |
| Read the specified range of device memory, and write it to the specified file. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_ProgramFile (const char *File, int32_t eraseType, int32_t verifyMem) |
| The contents of the specified file are input, and then written to the device. The device is optionally erased prior to being written. The device is optionally verified after being written. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_VerifyFile (const char *File) |
| Compare the MSP430 memory and the contents of the specified file. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_VerifyMem (int32_t StartAddr, int32_t Length, const uint8_t *DataArray) |
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_EraseCheck (int32_t StartAddr, int32_t Length) |
| Verify that the specified memory range is erased. More...
|
|
DLL430_SYMBOL int32_t WINAPI | MSP430_Error_Number (void) |
| Determine the number of the error when a MSP430_xxx() function returns STATUS_ERROR. More...
|
|
DLL430_SYMBOL const char *WINAPI | MSP430_Error_String (int32_t errorNumber) |
| Determine the string associated with errorNumber. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetNumberOfUsbIfs (int32_t *Number) |
| Returns the number of MSP-FET430UIF USB FETs connected to the PC system. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetNameOfUsbIf (int32_t Idx, char **Name, int32_t *Status) |
| Get the name of a Virtual Com Port (VCP), Human Interface Device (HID) or Communication Device Class (CDC) device index assigned to a certain MSP-FET430UIF USB FET. Also the status of the MSP-FET430UIF is returned (ENABLE/DISABLE). More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetInterface_Type (enum INTERFACE_TYPE *type) |
| Determine the type of interface for the connection to the device. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_RegisterMessageCallback (MessageCallbackFn callback) |
| Defines the callback function to call for messages The callback will be automatically cleared by calling MSP430_Close() More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Autodetect (struct DETECTIONLIST *list, uint32_t *numElements, uint32_t sizeOfStruct) |
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetFETName (char *str, uint32_t size) |
| Returns the name of the FET. More...
|
|
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetLaunchpadName (const char *device, const char *fetname, char *launchpadname, uint32_t size) |
| Returns the name of the launchpad in case the fetname and devicename are a valid launchpad combination The launchpad's name is written into launchpadname. The variable launchpadname is not changed in case there was no launchpad detected. More...
|
|
This file contains the Application Programming Interface (API) to access an MSP430 microcontroller via JTAG using the MSP430.DLL. This file contains the DLL function headers and definitions.
The MSP430.DLL provides the following functionalities:
- Initialize a selected JTAG interface (FET)
- Setting target's supply voltage
- Identifing a device
- Programming/Erasing the identified device
- Program/Erase check of device memory
- Project:
- MSPDebugStack (MSP430.dll)
- Developed using:
- MS Visual C++ 2013
- Version
- 3.09.01.002
- Supported API calls:
-
- Version History:
- Version 3.2.01.009 - 10/18/2011
- Version 3.2.05.004 - 09/14/2012
- Version 3.3.00.005 - 01/29/2013
- Version 3.3.00.006 - 01/31/2013
- Version 3.3.01.003 - 06/24/2013
- Version 3.3.01.004 - 09/17/2013
- Version 3.3.01.204 - 11/07/2013
- Version 3.3.01.205 - 12/02/2013
- Version 3.4.00.018 - 01/20/2014
- Version 3.4.00.019 - 01/24/2014
- Version 3.4.00.020 - 01/27/2014
- Version 3.4.00.230 - 02/20/2014
- Version 3.4.01.000 - 04/01/2014
- Version 3.4.02.007 - 08/26/2014
- Version 3.4.03.004 - 11/20/2014
- Version 3.5.00.001 - 04/29/2015
- Version 3.5.01.001 - 08/10/2015
- Version 3.7.00.011 - 02/16/2016
- Version 3.9.01.002 - 11/24/2016
- Version 3.9.02.015 - 02/24/2017
- Version 3.10.00.003 - 04/07/2017
- Version 3.10.01.000 - 06/01/2017
- Version 3.11.00.001 - 11/30/2017
- Version 3.12.00.004 - 02/28/2018
- Version 3.13.00.001 - 05/15/2018