<< Chapter < Page Chapter >> Page >

Cce workbench – manage window.

It is possible to create new build configurations, delete the existing ones or modify their names. The name of the modified configuration is selected in configuration .

The C/C++ compiler used by the project is controlled by the project’s properties. To view the project properties in the dialog box that appears, the page C/C++ Build allows control of the variety of configurations, including:

Build Options: specifies the options that affect all project files. This dialog page allows selection of the appropriate options, including those for compiling and linking. It is also possible to specify whether the compiler uses Stop On Error or Keep Going On Error . The second option allows the compiler to build all projects referenced, even if the current project contains errors. The build command specifies the make file to use.

The MSP430X devices allow data to be located anywhere in the 20-bit address space. By enabling this option, the compiler will use instructions that need a larger space for their storage. Hence, the memory space occupied by the final program will be greater. The option (- large_memory_model) is valid only when the project is intended as a MSP430X device defined by the compile option (- vmspx). The programs for MSP430X processors should be compiled with RTS libraries supplied for that purpose (rts430xl.lib and rts430xl_eh.lib).

The compilation option (- silicon_version) selects the CPU version using the 4 least significant processor’s identification digits. If this option is not used, the compiler will construct the default code for the device.

In the process of linking, if all references to the multiplication routines of integers are to be replaced by the routines versions that use the hardware multiplier option (- use_hw_mpy), the device multiplier’s length must be specified. To use the 16-bit hardware multiplier, present in most devices, choose the option 16. For devices belonging to the F4xx family, which has a 32-bit multiplier module, chose the option 32. Finally, for the new 5xx family, which also has a 32-bit multiplier, use the F5 option. The default option is 16-bit hardware multiplier module.

The model used for the initialization of static variables in the C program can be specified as: None, Link using ROM autoinitialization model (- rom_model), or link using RAM autoinitialization model (- ram_model). The C/C++ compiler produces tables of data for automatic initialization of global variables. These tables are placed in the section identified by .cinit.

The memory space reserved for the passing of arguments by the C routines is defined in (--arg_size). The space reserved for the dynamic allocation of memory by the program is defined in the option (--heap_size). The system stack size used by the program is set by the option (--stack_size). See Figure 3 .

Cce workbench – memory space configuration.

The device for which the project is intended is configured in the Properties>TI Building Setting . The window is in every way identical to that presented in the project’s creation ( Figure 4 ).

Cce workbench – device configuration.

The project debugging is carried out as specified in the window TI Debug Settings . With the Setup tab, using the option connection , the method of connecting to the device is established, either parallel port or USB port. The Debugger tab can be used to specify whether to load the all application ( Load program ) or just load the project’s symbols ( Load symbols only ). These options can be used to choose between loading the entire program, or just the symbols. This last option is valid when the development environment cannot load the software, such as in the case of the software runs in ROM.

Using the Target tab, it is possible to define various aspects related to the device. Thus, it is possible to enable the use of IO functions in Enable CIO functions use, or establish the starting point for the code execution when a reset occurs or a program is loaded. In the MSP430 properties, it is possible to specify the supply voltage and the types of breakpoints: software or hardware. The memory storage process can also be defined using this tab ( Figures 5 to 7 ).

Cce workbench – device options configuration.

Cce workbench – device options configuration: ti debug settings – target: generic.

Cce workbench – device options configuration: ti debug settings – target: msp430 properties.

The first time that the project is built, the Project>Build All option must be selected. The project build status can be examined in the Console window. If there is a problem, the Problems window will list them all. After a successful build of the project, the output file can be automatically loaded into the device.

Alternatively, a project can be built at the beginning of the debug session. The option Debug Active Project will recompile the project and launch the debugger, using the device information defined in the project options.

Note that an attempt to update the firmware can occur when the debugger is used for the first time, after a software release has been installed or a new USB interface is used.

Finally, the active perspective must be switched to the Debug perspective. This operation can be carried out with the perspective selection buttons located on upper right corner of the workspace window, or alternatively, by selecting Window>Open Perspective>Debug .

When the project is debugged, the errors are identified on the right hand side of the editor as red marks while the problems are identified as white marks. A mark is added on the left hand side of the editor to the lines that contain an error. When this mark is selected, the compiler provides information about the error.

When the project is made (make option), the resources used can be accessed on Properties>C/C++ Build>MSP430 Linker V3.0>Linker Output in the option Produce list of input and output sections .

Request the MSP430 Teaching ROM Materials here (External Link)

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Teaching and classroom laboratories based on the “ez430” and "experimenter's board" msp430 microcontroller platforms and code composer essentials. OpenStax CNX. May 19, 2009 Download for free at http://cnx.org/content/col10706/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Teaching and classroom laboratories based on the “ez430” and "experimenter's board" msp430 microcontroller platforms and code composer essentials' conversation and receive update notifications?

Ask