0% found this document useful (0 votes)
77 views38 pages

MSP-FET430 Users Guide

It provides user specifications

Uploaded by

Ravi Mandliya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Topics covered

  • Cautions and Warnings,
  • Power Management,
  • Code Optimization,
  • Debugging Techniques,
  • Emulator Menus,
  • State Storage,
  • Application Development,
  • Project Settings,
  • Breakpoints,
  • Frequently Asked Questions
0% found this document useful (0 votes)
77 views38 pages

MSP-FET430 Users Guide

It provides user specifications

Uploaded by

Ravi Mandliya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Topics covered

  • Cautions and Warnings,
  • Power Management,
  • Code Optimization,
  • Debugging Techniques,
  • Emulator Menus,
  • State Storage,
  • Application Development,
  • Project Settings,
  • Breakpoints,
  • Frequently Asked Questions

Common questions

Powered by AI

C-SPY settings, including breakpoints, significantly influence the debugging process by controlling execution flow and examining program states . While devices without data breakpoint capabilities rely on instruction breakpoints to synthesize data breakpoints, any changes in C-SPY settings such as adding breakpoints should be maintained between sessions to ensure consistency . Moreover, understanding C-SPY's handling of flash programming and memory accesses during debugging is crucial because it affects how applications are tested and validated . Using advanced breakpoint features allows for complex conditional breakpoints that facilitate in-depth testing .

C-SPY interfaces with hardware by using JTAG signals to communicate with the MSP430 device . During debugging, device registers and memory cannot be accessed while the device is running; the device must be stopped to access and update these fields . Precautions include managing JTAG signals properly, ensuring correct settings when toggling between running and stopped states to maintain data integrity. Additionally, maintaining control over device initialization and reset procedures will ensure stable debugging sessions .

Workbench is the code development environment used for writing and managing assembler or C applications, while C-SPY is the debugger integrated with Workbench for debugging applications . C-SPY can be configured to operate with an MSP430 device or a software simulator . It facilitates erasing device flash, downloading applications, and interacting with the target device during debugging . In contrast, Workbench is mainly responsible for code creation and project management .

During MSP430 debugging, connecting both VCC Tool and VCC Target pins with identical VCC values can cause conflicts, as it may lead to incorrect supply voltage levels being detected by the device . This misconfiguration could result in faulty operation or damage since the debugger might attempt to set output signals mismatched with the expected target level. It is recommended to specify the VCC in the debugger equal to the external supply voltage to avoid such issues . Careful management of power settings ensures correct voltage application during debugging, ensuring stable and safe operation.

Ensuring stack sizes are correctly specified in .xcl files is critical because these files determine the RAM allocation for system stacks used in C or assembler programs . If the stack size is inadequate, it can lead to stack overflow that might overwrite neighboring memory segments, thereby causing undefined behavior or program crashes. Lack of runtime checks exacerbates this issue, as excess usage beyond the reserved stack size goes unnoticed and unchecked . Therefore, correct stack size configuration is vital for program stability and reliability.

During the creation of an MSP430 project using KickStart, the following configurations can be adjusted: the project's target device specification, enabling assembler-only projects, and generating executable output files . Additionally, users must configure the FET Debugger settings to select the appropriate driver and port for debugging on the MSP430 device . The project settings also accommodate adjustments to general options, compilers, linkers, and specific device drivers, often accepting factory defaults except for these customized areas .

C-SPY assists in managing interrupts and low power modes by facilitating debugging of applications that utilize these advanced MSP430 functionalities . It enables the user to set breakpoints and evaluate the program behavior when interrupts occur, although C-SPY cannot access device registers and memory fields during device operation . Effective debugging requires stopping the device to access and update device registers and memory fields, allowing C-SPY to integrate smoothly with applications leveraging low power modes and interrupts .

Using relative path names in MSP430 project files allows for easier migration and modification when project files are moved or when IAR systems are upgraded . The keywords $TOOLKIT_DIR$ and $PROJ_DIR$ denote relative paths, ensuring the project maintains file references correctly, regardless of its storage location . This practice enhances flexibility and compatibility, reducing the likelihood of errors linked to absolute paths .

The process of building and testing an MSP430 application involves the following steps: First, activate the project in the workspace. Then, select the appropriate port for the FET debugger connection, such as the Texas Instruments LPT-IF for parallel or USB-IF for USB interfaces . Afterward, rebuild the project to compile and link the source code . To start debugging, use C-SPY, which erases the device flash and downloads the application object file . Start the application by clicking 'Debug →Go' . To stop debugging, click 'Debug →Stop Debugging,' which exits C-SPY and returns to the Workbench . Finally, exit the Workbench by selecting 'File →Exit' .

The .xcl files in MSP430 project development control the allocation of device memory, such as RAM and flash, through linker control statements . They define memory regions, such as CSTACK, that manage system stacks within C or assembler programs. A potential issue is that .xcl files reserve a fixed amount of RAM for stacks, leading to possible stack overflow if this reserved space is insufficient, as there is no runtime checking . Therefore, overwriting other segments is a risk if the stack extends beyond its limits .

You might also like