Definition in file StdUseCase.h.
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <time.h>
#include <iostream>
#include <string>
#include <fstream>
#include <regex>
#include <MSP430.h>
#include <MSP430_Debug.h>
#include <MSP430_EEM.h>
#include <MSP430_FET.h>
Go to the source code of this file.
Data Structures | |
| struct | sDefOptions |
| Struct for storing command line options. More... | |
| struct | sAddOptions |
| Struct for storing additional options. More... | |
| struct | sRTE |
| Struct for runtime entries. More... | |
| struct | sDef |
| Struct for default options. More... | |
| struct | sUsbFETs |
| Struct for storing information on all connected USB FETs. More... | |
Macros | |
| #define | TARGET_VCC 3000 |
| Default target voltage. More... | |
| #define | WM_USER 0x0400 |
| #define | WM_BpMESSAGE (WM_USER + 1) |
| #define | WM_SsMESSAGE (WM_USER + 2) |
| #define | WM_StoMESSAGE (WM_USER + 3) |
| #define | WM_SStateMESSAGE (WM_USER + 4) |
| #define | WM_WarMESSAGE (WM_USER + 5) |
| #define | WM_CPUStopMESSAGE (WM_USER + 6) |
| #define | fBpMESSAGE 0x0001 |
| #define | fSsMESSAGE 0x0002 |
| #define | fStoMESSAGE 0x0004 |
| #define | fSStateMESSAGE 0x0008 |
| #define | fWarMESSAGE 0x0010 |
| #define | fCPUStopMESSAGE 0x0020 |
| #define | RUN_TILL_TIMEOUT (STOPPED-1) |
| Used for state polling. More... | |
| #define | MAX_PASS 500 |
| Maximum password length. More... | |
| #define | MAX_NAME_LEN 50 |
| Maximum device name length. More... | |
| #define | MAX_FET_NR 16 |
| Maximum number of connected USB FETs. More... | |
| #define | MAX_PATH_LEN 1024 |
| Maximum file path length. More... | |
| #define | DLL_FW_MISMATCH -1 |
| Mismatch between DLL version and FET firmware - FET firmware update required. More... | |
| #define | BROKEN_EZ_FET -2 |
| Broken eZ-FET detected - FET recovery required. More... | |
| #define | V2_TO_V3_UPGRADE_REQUIRED -3 |
| FET uses DLLv2 firmware - Major upgrade required. More... | |
| #define | __PRINT_LOG_OPTS_ |
| Message types for Print_N_Log() More... | |
| #define | STD_MSG 0 |
| Standard message. More... | |
| #define | ERR_MSG 1 |
| Error message. More... | |
| #define | REPORT_MSG 2 |
| Report message. More... | |
| #define | LOG_MSG 3 |
| Log message. More... | |
| #define | ONE_LINE_MSG 4 |
| One line message. More... | |
| #define | MAX_OPTS 1000 |
| maximum number of options More... | |
| #define | __INST_STATE_ |
| Definitions for the global state bitmask inst_state. More... | |
| #define | PROG_BAR_ON (0x0001) |
| This flag is set if progess bar should be displayed during FW update. More... | |
| #define | WRITE_EXT_MEM (0x0002) |
| This flag is set if external memory should be written. More... | |
| #define | MODE_SELECT (0x0004) |
| This flag is set if an MSP430L092 or RF430 device should be programmed. More... | |
| #define | QUIET_MODE (0x0008) |
| This flag is set if the console output should be disabled. More... | |
| #define | ALT_EXIT (0x0010) |
| This flag is set if the flasher routine is aborted due to an error. More... | |
| #define | WRITE_BSL (0x0020) |
| This flag is set if the BSL memory should be unlocked. More... | |
| #define | LOG_OFF (0x0040) |
| This flag is set if logging should be disabled. More... | |
| #define | UNLOCK_FLASH (0x0080) |
| This flag is set if the INFO A memory should be unlocked. More... | |
| #define | BLOW_FUSE (0x0100) |
| This flag is set if the target device should be secured. More... | |
| #define | SKIP_UDPROMPT (0x0200) |
| This flag is set if FET FW update should be performed without a user prompt. More... | |
| #define | BP_LIMIT (0x0400) |
| This flag is set if the number of specified BP addresses exceeds the number of available hardware breakpoints. More... | |
| #define | NO_RESET (0x0800) |
| This flag is set if no reset should be applied to the device during start-up. More... | |
| #define | RESET_ON_EXIT (0x1000) |
| This flag is set if a 'hard' reset (using the RST/NMI pin) should be executed on exit. More... | |
| #define | ERASE_NO_WRITE (0x2000) |
| This flag is set if an erase operation should be performed without writing the memory afterwards. More... | |
| #define | TARGETARCH_432 (0x4000) |
| This flag is set if the target device is an MSP432. More... | |
| #define | __OPT_FLAGS_ |
| #define | OPT_INTERFACE (0x0001) |
| #define | OPT_INFILE (0x0002) |
| #define | OPT_DEVNAME (0x0004) |
| #define | OPT_PASSWORD (0x0008) |
| #define | OPT_EXITSPECS (0x0010) |
| #define | OPT_READSPECS (0x0020) |
| #define | OPT_BPSPECS (0x0040) |
| #define | OPT_FETSPEED (0x0080) |
| #define | __SPACED_ARG_OPTS_ |
| #define | COLL_UA_KS (0x0000) |
| #define | FILENAME_UA_KS (0x0001) |
| #define | COLL_A_KS (0x0002) |
| #define | FILENAME_A_KS (0x0003) |
| #define | COLL_UA_RS (0x0004) |
| #define | FILENAME_UA_RS (0x0005) |
| #define | COLL_A_RS (0x0006) |
| #define | FILENAME_A_RS (0x0007) |
| #define | IS_FILENAME (0x0001) |
| #define | IS_ATTACHED (0x0002) |
| #define | REMOVE_SPACES (0x0004) |
| #define | NULL 0 |
| #define | EOF (-1) |
Typedefs | |
| typedef struct sDefOptions | sDefOptions_t |
| typedef struct sAddOptions | sAddOptions_t |
| typedef struct sRTE | sRTE_t |
| typedef struct sDef | sDef_t |
| typedef sUsbFETs | sUsbFETs_t |
| typedef int | BOOL |
| typedef uint32_t | DWORD |
Enumerations | |
| enum | EXIT_CODE { EXIT_NO_ERROR, EXIT_UNKNOWN, EXIT_CONFIGURE, EXIT_ERASE, EXIT_ERASECHECK, EXIT_MEMORY_WRITE, EXIT_MEMORY_READ, EXIT_REGISTER_WRITE, EXIT_REGISTER_READ, EXIT_RESET, EXIT_RUN, EXIT_VARIOUS, EXIT_STATE_NOSTOP, EXIT_STATE_STOP, EXIT_BREAKPOINT, EXIT_DEVICE, EXIT_OPENDEVICE, EXIT_VERIFYMEM, EXIT_REGISTERS, EXIT_INITIALIZE, EXIT_EEM_INIT, EXIT_EEM_SETBREAKPOINT, EXIT_EEM_GETBREAKPOINT, EXIT_EEM_SETCOMBINEBREAKPOINT, EXIT_EEM_GETCOMBINEBREAKPOINT, EXIT_EEM_SETCLOCKCONTROL, EXIT_EEM_GETCLOCKCONTROL, EXIT_CCSETMODULENAMES, EXIT_CCGETMODULENAMES, EXIT_EEM_OPEN, EXIT_EEM_CLOSE, EXIT_EEM_WRITE_REGISTER, EXIT_EEM_READ_REGISTER, EXIT_EEM_READ_REGISTER_TEST, EXIT_EEM_SETSEQUENCER, EXIT_EEM_GETSEQUENCER, EXIT_EEM_READSEQUENCERSTATE, EXIT_EEM_SETTRACE, EXIT_EEM_GETRACE, EXIT_EEM_READTRACEBUFFER, EXIT_EEM_REFRESHTRACEBUFFER, EXIT_EEM_SETVARIABLE, EXIT_EEM_SETVARIABLEWATCH, EXIT_EEM_GETVARIABLEWATCH, EXIT_VCC, EXIT_GETCURVCCT, EXIT_GETEXTVOLTAGE, EXIT_FET_GETFWVERSION, EXIT_FET_GETHWVERSION, EXIT_FET_FWUPDATE, EXIT_FET_I2C, EXIT_FET_SELFTEST, EXIT_FET_SETSIGNALS, EXIT_FET_RESET, EXIT_RESERVED1, EXIT_RESERVED2, EXIT_READOUTFILE, EXIT_GETNUMBEROFUSBIFS, EXIT_GETNAMEOFUSBIF, EXIT_PROGRAMFILE, EXIT_VERIFYFILE, EXIT_NODLL } |
| In case a UseCase will not execute regularly, a message will be printed in the command prompt. Exitcodes are defined as followed: More... | |
Functions | |
| int | Flasher (int argc, char *argv[], sDefOptions_t *sOpt, sRTE_t *RTE) |
| Main Flasher routine. More... | |
| void | StdUseCase_Exit (int exitCode, int32_t lErrorNumber) |
| Exit the Flasher routine, close the logfile. More... | |
| void | StdUseCase_Close (sDefOptions_t *sOpt) |
| Trigger VCC on and/or apply hard reset via RST/NMI (if specified in sOpt) and disconnect from the device. More... | |
| int | StdUseCase_GetUsbIfs (void) |
| This function scans for all connected USB FETs and stores the respective COM port and the status of the FET. More... | |
| void | StdUseCase_InterfaceInit (sDefOptions_t *sOpt) |
| This function initializes the debug interface. More... | |
| void | StdUseCase_CheckFirmware (sDefOptions_t *sOpt) |
| This function checks whether the MSP430.dll version number and the version of the debugger firmware match. If they don't, an update of the firmware can be performed. More... | |
| void | StdUseCase_ReadFWVersion (void) |
| This function reads out the debugger firmware version. More... | |
| void | StdUseCase_ReadHWVersion (void) |
| This function reads out the debugger hardware version. More... | |
| void | StdUseCase_PowerUp (sDefOptions_t *sOpt) |
| This function sets the target voltage. More... | |
| void | StdUseCase_SpecialErase (sDefOptions_t *sOpt) |
| Erase the target device's memory including active memory protection. More... | |
| void | StdUseCase_GetDevice (sDefOptions_t *sOpt) |
| Access device and read device information. More... | |
| void | StdUseCase_DisplayResults (int argc, char *argv[], sDefOptions_t *sOpt) |
| This function displays the results of the Flasher execution. It is also called whenever the execution is aborted due to an error. More... | |
| void | StdUseCase_Erase (sDefOptions_t *sOpt) |
| Erase MSP430 memory. This function is only used in case an erase should be performed without writing to the memory afterwards. More... | |
| void | StdUseCase_ReadWrite (sDefOptions_t *sOpt, sRTE_t *RTE) |
| Read and/or write MSP430 memory, verify file transfer. More... | |
| void | StdUseCase_BlowFuse (void) |
| If triggered by -f switch, this function secures the device's JTAG interface. More... | |
| void | StdUseCase_SetBreakpoints (int32_t *AddrArray) |
| This function sets hardware breakpoints. More... | |
| void | StdUseCase_ClearBreakpoint (int32_t *AddrArray, int number) |
| This function clears a single hardware breakpoint. More... | |
| void | StdUseCase_RunProgram (sDefOptions_t *sOpt, int32_t *AddrArray) |
| Execute the program in the target memory. More... | |
| void | StdUseCase_Reset (int32_t method, int32_t execute, int32_t releaseJTAG) |
| Reset the device using the specified method(s) More... | |
| void | StdUseCase_GetCpuState (void) |
| This function reads all CPU registers and prints/logs their content. More... | |
| void | StdUseCase_Run (void) |
| Start the program execution. More... | |
| void | StdUseCase_EemInit (void) |
| Initialize the Enhanced Emulation Module (EEM) More... | |
| void | StdUseCase_EemReadStateStorageBuffer (int16_t NumberOfValidEntries) |
| Read the state storage buffer. More... | |
| void | StdUseCase_PrintBpParameter_t (BpParameter_t *pBpBuffer) |
| This function prints and logs all Breakpoint parameters. More... | |
| BOOL | StdUseCase_WaitForTrigger (DWORD dwMilliseconds) |
| Wait for trigger or timeout. More... | |
| BOOL | StdUseCase_WaitForEvent (uint32_t MsgId, long dwMilliseconds) |
| Wait for specific event. More... | |
| void | EnableLog (int argc, char *argv[]) |
| This function enables the logging feature unless it's disabled by the -g switch. More... | |
| void | StartTimer (void) |
| void | StopTimer (void) |
| void | PrintElapsedTime (void) |
| void | PrintVersion (void) |
| This function prints the version of the Flasher executable. More... | |
| void | Help (void) |
| This function prints a soft copy of the command line arguments which can be passed to the Flasher. More... | |
| void | Exit_Specs (void) |
| This function prints a soft copy of the possible exit specification arguments for the -z switch. More... | |
| int | Print_N_Log (unsigned short, const char *,...) |
| This function logs messages and prints them to the console. More... | |
| int | EvaluateOptions (int argc, char *argv[], sDefOptions_t *sOpt, sRTE_t *RTE) |
| This function evaluates options from the argument string and configures the Flasher accordingly. More... | |
| int | getopt (int argc, char **argv, char *opts, sRTE_t *RTE) |
| This function reads out options from the argument string. More... | |
| int | ReadSpacedArgs (int, char **, int *, unsigned short, char *) |
| STATUS_T | ParseInputFile (char *, int32_t *lStartAddress, int32_t *lProgramLength) |
| int | Init_System_Notify_Callback (void) |
| void | MY_MSP430_CallbackFunc (uint32_t MsgId, uint32_t wParam, uint32_t lParam, int32_t clientHandle) |
| This function is of type MSP430_FET_NOTIFY_FUNC and generates system messages to inform the user of the progress of the firmware update executed by MSP430_FET_FwUpdate() More... | |
Variables | |
| char * | optarg |
| Pointer to an option argument. More... | |
| int | optind |
| Index for command line options. More... | |
| DEVICE_T | g_tTargetDevice |
| Struct for target device information. More... | |
| int32_t | g_lTargetDeviceRegisters [16] |
| Array for target device CPU register content. More... | |
| sDefOptions_t | g_sOpt |
| Struct for command line options. More... | |
| int32_t | bpEventFlags |
| int32_t | ValueParam |
| uint32_t | MyGlob_MsgId |
| uint32_t | MyGlob_wParam |
| int32_t | MyGlob_lParam |
| #define __INST_STATE_ |
Definitions for the global state bitmask inst_state.
Definition at line 132 of file StdUseCase.h.
| #define __PRINT_LOG_OPTS_ |
Message types for Print_N_Log()
Definition at line 114 of file StdUseCase.h.
| #define ALT_EXIT (0x0010) |
This flag is set if the flasher routine is aborted due to an error.
Definition at line 142 of file StdUseCase.h.
| #define BLOW_FUSE (0x0100) |
This flag is set if the target device should be secured.
Definition at line 150 of file StdUseCase.h.
| #define BP_LIMIT (0x0400) |
This flag is set if the number of specified BP addresses exceeds the number of available hardware breakpoints.
Definition at line 154 of file StdUseCase.h.
| #define BROKEN_EZ_FET -2 |
Broken eZ-FET detected - FET recovery required.
Definition at line 107 of file StdUseCase.h.
| #define DLL_FW_MISMATCH -1 |
Mismatch between DLL version and FET firmware - FET firmware update required.
Definition at line 105 of file StdUseCase.h.
| #define ERASE_NO_WRITE (0x2000) |
This flag is set if an erase operation should be performed without writing the memory afterwards.
Definition at line 160 of file StdUseCase.h.
| #define ERR_MSG 1 |
Error message.
Definition at line 118 of file StdUseCase.h.
| #define LOG_MSG 3 |
Log message.
Definition at line 122 of file StdUseCase.h.
| #define LOG_OFF (0x0040) |
This flag is set if logging should be disabled.
Definition at line 146 of file StdUseCase.h.
| #define MAX_FET_NR 16 |
Maximum number of connected USB FETs.
Definition at line 99 of file StdUseCase.h.
| #define MAX_NAME_LEN 50 |
Maximum device name length.
Definition at line 97 of file StdUseCase.h.
| #define MAX_OPTS 1000 |
maximum number of options
Definition at line 128 of file StdUseCase.h.
| #define MAX_PASS 500 |
Maximum password length.
Definition at line 95 of file StdUseCase.h.
| #define MAX_PATH_LEN 1024 |
Maximum file path length.
Definition at line 101 of file StdUseCase.h.
| #define MODE_SELECT (0x0004) |
This flag is set if an MSP430L092 or RF430 device should be programmed.
Definition at line 138 of file StdUseCase.h.
| #define NO_RESET (0x0800) |
This flag is set if no reset should be applied to the device during start-up.
Definition at line 156 of file StdUseCase.h.
| #define ONE_LINE_MSG 4 |
One line message.
Definition at line 124 of file StdUseCase.h.
| #define PROG_BAR_ON (0x0001) |
This flag is set if progess bar should be displayed during FW update.
Definition at line 134 of file StdUseCase.h.
| #define QUIET_MODE (0x0008) |
This flag is set if the console output should be disabled.
Definition at line 140 of file StdUseCase.h.
| #define REPORT_MSG 2 |
Report message.
Definition at line 120 of file StdUseCase.h.
| #define RESET_ON_EXIT (0x1000) |
This flag is set if a 'hard' reset (using the RST/NMI pin) should be executed on exit.
Definition at line 158 of file StdUseCase.h.
| #define RUN_TILL_TIMEOUT (STOPPED-1) |
Used for state polling.
Definition at line 92 of file StdUseCase.h.
| #define SKIP_UDPROMPT (0x0200) |
This flag is set if FET FW update should be performed without a user prompt.
Definition at line 152 of file StdUseCase.h.
| #define STD_MSG 0 |
Standard message.
Definition at line 116 of file StdUseCase.h.
| #define TARGET_VCC 3000 |
Default target voltage.
Definition at line 71 of file StdUseCase.h.
| #define TARGETARCH_432 (0x4000) |
This flag is set if the target device is an MSP432.
Definition at line 162 of file StdUseCase.h.
| #define UNLOCK_FLASH (0x0080) |
This flag is set if the INFO A memory should be unlocked.
Definition at line 148 of file StdUseCase.h.
| #define V2_TO_V3_UPGRADE_REQUIRED -3 |
FET uses DLLv2 firmware - Major upgrade required.
Definition at line 109 of file StdUseCase.h.
| #define WRITE_BSL (0x0020) |
This flag is set if the BSL memory should be unlocked.
Definition at line 144 of file StdUseCase.h.
| #define WRITE_EXT_MEM (0x0002) |
This flag is set if external memory should be written.
Definition at line 136 of file StdUseCase.h.
| enum EXIT_CODE |
In case a UseCase will not execute regularly, a message will be printed in the command prompt. Exitcodes are defined as followed:
Definition at line 283 of file StdUseCase.h.
| void EnableLog | ( | int | argc, |
| char * | argv[] | ||
| ) |
This function enables the logging feature unless it's disabled by the -g switch.
If logging is enabled, directory 'Log' will be created in line with the executable
| [in] | argc | Number of arguments in the argument string |
| [in] | argv[] | Pointer to the argument string |
Definition at line 92 of file Support.cpp.
| int EvaluateOptions | ( | int | argc, |
| char * | argv[], | ||
| sDefOptions_t * | sOpt, | ||
| sRTE_t * | RTE | ||
| ) |
This function evaluates options from the argument string and configures the Flasher accordingly.
| [in] | argc | Number of arguments in the argument string |
| [in] | argv[] | Pointer to the argument string |
| [in] | sOpt | Pointer to the default options |
| [out] | RTE | Pointer to the struct for runtime entries |
Definition at line 273 of file Support.cpp.
| void Exit_Specs | ( | void | ) |
This function prints a soft copy of the possible exit specification arguments for the -z switch.
Definition at line 244 of file Support.cpp.
| int Flasher | ( | int | argc, |
| char * | argv[], | ||
| sDefOptions_t * | sOpt, | ||
| sRTE_t * | RTE | ||
| ) |
Main Flasher routine.
| [in] | argc | Number of arguments in the argument string |
| [in] | argv[] | Pointer to the argument string |
| [in] | sOpt | Pointer to struct for options from command line and/or list of default options |
| [in] | RTE | Pointer to struct for options entered at runtime |
Definition at line 116 of file MSP430_Flasher.cpp.
| int getopt | ( | int | argc, |
| char ** | argv, | ||
| char * | opts, | ||
| sRTE_t * | RTE | ||
| ) |
This function reads out options from the argument string.
| [in] | argc | Number of arguments in the argument string |
| [in] | **argv | Pointer to the argument string |
| [out] | *opts | Pointer to a string containing all possible switches |
| [out] | *RTE | Pointer to the struct for runtime entries |
Definition at line 773 of file Support.cpp.
| void Help | ( | void | ) |
This function prints a soft copy of the command line arguments which can be passed to the Flasher.
It is called whenever invalid command line arguments are used.
Definition at line 145 of file Support.cpp.
| void MY_MSP430_CallbackFunc | ( | uint32_t | MsgId, |
| uint32_t | wParam, | ||
| uint32_t | lParam, | ||
| int32_t | clientHandle | ||
| ) |
This function is of type MSP430_FET_NOTIFY_FUNC and generates system messages to inform the user of the progress of the firmware update executed by MSP430_FET_FwUpdate()
For more details see the definition of MSP430_FET_NOTIFY_FUNC in msp430_fet.h
| [in] | MsgId | Message ID |
| [in] | wParam | Generic parameter 1 |
| [in] | lParam | Generic parameter 2 |
| [in] | clientHandle | Callback handle |
Definition at line 1796 of file StdUseCase.cpp.
| int Print_N_Log | ( | unsigned short | type, |
| const char * | fmt, | ||
| ... | |||
| ) |
This function logs messages and prints them to the console.
| [in] | type | Type of the message
|
| [in] | fmt | Pointer to C string, may include embedded format specifiers analogous to the 'printf' function |
Definition at line 973 of file Support.cpp.
| void PrintVersion | ( | void | ) |
This function prints the version of the Flasher executable.
Definition at line 131 of file Support.cpp.
| void StdUseCase_BlowFuse | ( | void | ) |
If triggered by -f switch, this function secures the device's JTAG interface.
Definition at line 1273 of file StdUseCase.cpp.
| void StdUseCase_CheckFirmware | ( | sDefOptions_t * | sOpt) |
This function checks whether the MSP430.dll version number and the version of the debugger firmware match. If they don't, an update of the firmware can be performed.
By default, the user is prompted about the update but it can be forced by using the -s switch.
| [in] | sOpt | Pointer to the option struct |
Definition at line 451 of file StdUseCase.cpp.
| void StdUseCase_ClearBreakpoint | ( | int32_t * | AddrArray, |
| int | number | ||
| ) |
This function clears a single hardware breakpoint.
StdUseCase_EemInit() must be called prior to this funcion.
| [in] | AddrArray | Pointer to the array containing the breakpoint addresses |
| [in] | number | The number of the breakpoint to be cleared. -Used to determine its address in the AddrArray[] -Also serves as breakpoint handle for the MSP430_EEM_SetBreakpoint fuction |
Definition at line 1446 of file StdUseCase.cpp.
| void StdUseCase_Close | ( | sDefOptions_t * | sOpt) |
Trigger VCC on and/or apply hard reset via RST/NMI (if specified in sOpt) and disconnect from the device.
| [in] | sOpt | Pointer to the option struct |
Definition at line 1898 of file StdUseCase.cpp.
| void StdUseCase_DisplayResults | ( | int | argc, |
| char * | argv[], | ||
| sDefOptions_t * | sOpt | ||
| ) |
This function displays the results of the Flasher execution. It is also called whenever the execution is aborted due to an error.
| [in] | int | argc: number of arguments in the argument string |
| [in] | char* | argv[]: pointer to the argument string |
| [in] | sDefOptions_t* | sOpt: pointer to the default options |
Definition at line 846 of file StdUseCase.cpp.
| void StdUseCase_EemInit | ( | void | ) |
Initialize the Enhanced Emulation Module (EEM)
Definition at line 1545 of file StdUseCase.cpp.
| void StdUseCase_EemReadStateStorageBuffer | ( | int16_t | NumberOfValidEntries) |
Read the state storage buffer.
StdUseCase_EemInit() must be called prior to this funcion.
| [in] | NumberOfValidEntries | Number of valid state entries |
Definition at line 1735 of file StdUseCase.cpp.
| void StdUseCase_Erase | ( | sDefOptions_t * | sOpt) |
Erase MSP430 memory. This function is only used in case an erase should be performed without writing to the memory afterwards.
| [in] | sOpt | Pointer to the option struct |
Definition at line 971 of file StdUseCase.cpp.
| void StdUseCase_Exit | ( | int | exitCode, |
| int32_t | lErrorNumber | ||
| ) |
Exit the Flasher routine, close the logfile.
| [in] | exitCode | Exit Code to be displayed and written into the log file |
| [in] | lErrorNumber | Error number if MSP430_Error_Number() has already been called by another function. The error number is cleared afterwards, so on calling MSP430_Error_Number() twice, lErrorNumber would always be 0. |
Definition at line 1868 of file StdUseCase.cpp.
| void StdUseCase_GetCpuState | ( | void | ) |
This function reads all CPU registers and prints/logs their content.
Definition at line 1609 of file StdUseCase.cpp.
| void StdUseCase_GetDevice | ( | sDefOptions_t * | sOpt) |
Access device and read device information.
| [in] | sOpt | Pointer to the default options |
Definition at line 706 of file StdUseCase.cpp.
| int StdUseCase_GetUsbIfs | ( | void | ) |
This function scans for all connected USB FETs and stores the respective COM port and the status of the FET.
Definition at line 417 of file StdUseCase.cpp.
| void StdUseCase_InterfaceInit | ( | sDefOptions_t * | sOpt) |
This function initializes the debug interface.
| [in] | sOpt | Pointer to the default options |
Definition at line 215 of file StdUseCase.cpp.
| void StdUseCase_PowerUp | ( | sDefOptions_t * | sOpt) |
This function sets the target voltage.
Definition at line 614 of file StdUseCase.cpp.
| void StdUseCase_PrintBpParameter_t | ( | BpParameter_t * | pBpBuffer) |
This function prints and logs all Breakpoint parameters.
| [in] | pBpBuffer | Breakpoint info buffer |
Definition at line 1765 of file StdUseCase.cpp.
| void StdUseCase_ReadFWVersion | ( | void | ) |
This function reads out the debugger firmware version.
Definition at line 565 of file StdUseCase.cpp.
| void StdUseCase_ReadHWVersion | ( | void | ) |
This function reads out the debugger hardware version.
Definition at line 580 of file StdUseCase.cpp.
| void StdUseCase_ReadWrite | ( | sDefOptions_t * | sOpt, |
| sRTE_t * | RTE | ||
| ) |
Read and/or write MSP430 memory, verify file transfer.
| [in] | sOpt | Pointer to the option struct |
| [in] | RTE | Pointer to the struct for runtime entries |
Definition at line 1029 of file StdUseCase.cpp.
| void StdUseCase_Reset | ( | int32_t | method, |
| int32_t | execute, | ||
| int32_t | releaseJTAG | ||
| ) |
Reset the device using the specified method(s)
| [in] | method | The bit mask specifying the method(s) to use to reset the device:
|
| [in] | execute | Start device execution (when TRUE). |
| [in] | releaseJTAG | Release the JTAG control signals (when TRUE). 'execute' must be TRUE. |
Definition at line 1591 of file StdUseCase.cpp.
| void StdUseCase_Run | ( | void | ) |
Start the program execution.
Definition at line 1571 of file StdUseCase.cpp.
| void StdUseCase_RunProgram | ( | sDefOptions_t * | sOpt, |
| int32_t * | AddrArray | ||
| ) |
Execute the program in the target memory.
If one or more breakpoints are set, StdUseCase_RunProgram will run the program, reading and displaying the CPU registers each time a breakpoint is hit.
Once a breakpoint is hit, it is cleared.
StdUseCase_EemInit() must be called prior to this funcion.
| [in] | AddrArray | Pointer to the array containing the breakpoint addresses |
| [in] | sOpt | Pointer to the default options |
Definition at line 1391 of file StdUseCase.cpp.
| void StdUseCase_SetBreakpoints | ( | int32_t * | AddrArray) |
This function sets hardware breakpoints.
If the number of entered breakpoint addresses is greater than the number of hardware breakpoints supported by the device, the additional breakpoints are ignored.
StdUseCase_EemInit() must be called prior to this funcion.
| [in] | AddrArray | Pointer to an array of the designated breakpoint addresses |
Definition at line 1294 of file StdUseCase.cpp.
| void StdUseCase_SpecialErase | ( | sDefOptions_t * | sOpt) |
Erase the target device's memory including active memory protection.
| [in] | sOpt | Pointer to the default options |
Definition at line 666 of file StdUseCase.cpp.
| BOOL StdUseCase_WaitForEvent | ( | uint32_t | MsgId, |
| long | dwMilliseconds | ||
| ) |
Wait for specific event.
| [in] | MsgId | Event to wait for |
| [in] | dwMilliseconds | Timeout (in ms) |
Definition at line 1670 of file StdUseCase.cpp.
| BOOL StdUseCase_WaitForTrigger | ( | DWORD | dwMilliseconds) |
Wait for trigger or timeout.
| [in] | dwMilliseconds | Timeout (in ms) |
Definition at line 1639 of file StdUseCase.cpp.
| int32_t bpEventFlags |
Enhanced Emulation Module (Debug) Help functions for using the on-chip emulation logic EEM
Definition at line 1475 of file StdUseCase.cpp.
| int32_t g_lTargetDeviceRegisters[16] |
Array for target device CPU register content.
Definition at line 78 of file StdUseCase.cpp.
| sDefOptions_t g_sOpt |
Struct for command line options.
Definition at line 57 of file StdUseCase.cpp.
| DEVICE_T g_tTargetDevice |
Struct for target device information.
Definition at line 76 of file StdUseCase.cpp.
| char* optarg |
Pointer to an option argument.
Definition at line 136 of file StdUseCase.cpp.
| int optind |
Index for command line options.
Definition at line 134 of file StdUseCase.cpp.


Basics / Features
Transform / Annotated Source
Cubic Bezier Path
Catmull Rom Spline
Easing Functions
Bezier Easing
Model Face Animation
Shadow Materials
Material Test - Basic
Material Test - Lambert
Material Test - Phong
Material Test - Standard
Points Animation
Instancing
Skinning
Skinning - Prefabs
Multi Prefab
Advanced / Showcase
Crystal Triangles
Audio Visualiser
Image Transition
Motion Smear
Cavalier Nugget Particles
Cavalier Speed Particles
GPGPU
Timeline
Many Boxes
Many Boxes 2
Many Spikes