Development Flow
The simulator will input a maximum of 4K bytes of code.
A “Full” (i.e., unrestricted) version of the software tools can be purchased from IAR. A mid-featured tool set – called “Baseline”, with a 12K byte C code size limitation and basic floating-point operations – is also available from IAR. Consult the IAR web site (www.iar.se) for more information.
2.2.1Project Settings
The settings required to configure the Workbench and C-SPY are numerous and detailed. Please read and thoroughly understand the documentation supplied by IAR when dealing with project settings. Please review the project settings of the supplied assembler and C examples; the project settings are accessed using: PROJECT->OPTIONS with the project name selected. Use these project settings as templates when developing your own projects. Note that if the project name is not selected when settings are made, the settings will be applied to the selected file (and not to the project).
The following project settings are recommended/required:
Specify the target device (GENERAL OPTIONS->TARGET->DEVICE)
Enable an assembler project or a C/assembler project (GENERAL OPTIONS-
>TARGET->ASSEMBLER ONLY PROJECT)
Enable the generation of an executable output file (GENERAL OPTIONS-
>OUTPUT->OUTPUT FILE->EXECUTABLE)
In order to most easily debug a C project, disable optimization (C/C++
Compiler->CODE->OPTIMIZATIONS->SIZE->NONE (BEST DEBUG
SUPPORT))
Enable the generation of debug information in the compiler output (C/C++
Compiler ->OUTPUT->GENERATE DEBUG INFO)
Specify the search path for the C preprocessor (C/C++ Compiler-
>PREPROCESSOR->INCLUDE PATHS)
Enable the generation of debug information in the assembler output
(ASSEMBLER->OUTPUT->GENERATE DEBUG-INFO)
Specify the search path for the assembler preprocessor (ASSEMBLER -
>PREPROCESSOR->INCLUDE PATHS)
In order to debug the project using C-SPY, specify a compatible format (LINKER->OUTPUT->FORMAT->DEBUG INFO [WITH TERMINAL IO])
Specify the search path for any used libraries (LINKER->CONFIG->SEARCH
PATHS)
Specify the C-SPY driver. Select PROJECT->OPTIONS->Debugger->Setup- >Driver->FET Debugger to debug on the FET (i.e., MSP430 device). Select SIMULATOR to debug on the simulator. If FET Debugger is selected, use PROJECT->OPTIONS->FET Debugger->Setup->Connection to select the appropriate port: LPTx for the parallel FET Interface or TI USB FET for the USB Interface.