The toolchain IAR Embedded Workbench gives you a complete IDE with everything you need in one single view - ensuring quality, reliability and efficiency in your embedded application. IAR Embedded Workbench is by many considered the best compiler and debugger toolchain in the industry. IAR Embedded Workbench for MSP430 (EW430) IAR Embedded Workbench for MSP430 is a complete debugger and C/C compiler toolchain for building and debugging embedded applications based on MSP430 microcontrollers. The Debugger is a fully integrated debugger for source and disassembly level debugging with support for complex code and data breakpoints. Investment Fund. Iar Embedded Workbench For Msp430 Version 7.11.1. RELEASE INFO: Iar Embedded Workbench For Msp430 Version 7.11.1 433 MB. IAR Systems has released a new version of IAR Embedded Workbench for the MSP430 core from Texas Instruments, is a very powerful Integrated Development Environment, that allows you to develop and manage complete embedded application projects.
Gilat skyedge 11 ip satellite modem manual. The code examples in this library shows basic usage of the library API’s. The example project implements the typical SW Flow in ultrasonic application as described in section Flow Diagram
Software Prerequisites¶
- Code Composer Studio version 7.2.0 or later
- Compiler version or TI v16.9.3.LTS
- IAR Embedded Workbench for MSP v 7.10 or later
Hardware Prerequisites¶
- EVM430-FR6047 (recommended to evaluate single tone ultrasonic applications)
- EVM430-FR6043 (recommended to evaluate multi tone ultrasonic applications)
- EVM430-FR6043-02 (recommended to evaluate single tone ultrasonic applications)
Device Resource Usage¶
The USS library requires access to different MSP430 modules based on the excitation type selected user selection to to control the external AFE.
Module | Default selection | File containing module defintion | Notes |
---|---|---|---|
Timer_A | Timer_A2 | ussSWLib/USS_HAL/USS_Lib_HAL.h | Used to generated USS crystal/resonator settling times. Use to enable transitions to LPM3 during low power captures. |
LEA | Not configurable | Internally used by Algorithms API to accelerate vector based operations | |
Timer_A | Timer_A0 | ussSWLib/USS_HAL/USS_Lib_HAL.h | Use to generate AFE events. |
GPIO USSSWLIB_HAL_AFE_RXEN | P6.7 | ussSWLib/USS_HAL/USS_Lib_HAL.h | Only use when controlling external AFE |
GPIO USSSWLIB_HAL_AFE_RX_SEL1 | P3.6 | ussSWLib/USS_HAL/USS_Lib_HAL.h | Only use when controlling external AFE |
GPIO USSSWLIB_HAL_AFE_RX_SEL2 | P3.7 | ussSWLib/USS_HAL/USS_Lib_HAL.h | Only use when controlling external AFE |
GPIO USSSWLIB_HAL_AFE_RXPWR | P2.2 | ussSWLib/USS_HAL/USS_Lib_HAL.h | Only use when controlling external AFE |
GPIO USSSWLIB_HAL_AFE_TXPWR | P1.0 | ussSWLib/USS_HAL/USS_Lib_HAL.h | Only use when controlling external AFE |
DMA | DMA_Channel 2 | Not configurable | Only needed when using multitoned excitation pulses and running on device with USS_A module |
DMA_Channel 3 | Not configurable | Only needed when using multitoned excitation pulses and running on device with USS_A module |
Library configuration assumptions¶
The following modules are automatically configured by the library and don’t need to be initialized as part of the application:
- USS module
- Timer_A
- GPIOs use to control external circuitry
- DMA channel when multitoned generation is selected
Iar Embedded Workbench Download
In order to achieve the lowest power consumption and achieve the expected timing configuration, it is recommended that users configure the following modules.
- Clock System (CS)
- It is highly recommended that ACLK is sourced externally by a 32.768 KHz crystal
- Please refer to MSP430™ 32-KHz Crystal Oscillators Application Report for further information for crystal selection
- It is highly recommended that ACLK is sourced externally by a 32.768 KHz crystal
- Digital I/O
- It is highly recommended to terminate unused pins.
For further recommendations to achieve the lowest power consumption please refer to How to achieve the specified power consumption values as in the datasheet?
In addition, the clock module configuration must match LIBRARY CLOCK DEFINITION configuration defines in <USS_SW_LIB_ROOT>/examples/USSSWLib_template_example/USS_Config/USS_userConfig.h
.
Code section :
Code Example Directory Structure¶
The USS SW Library contains a basic template example project. The intention of the example is showcase the typical ultrasonic
- CCS - Code composer specific project files this directory contains project configuration files (*_USSSWLib_template_example.projectspec) and linker command files.
- IAR - IAR specific project files and IAR linker command files.
- USS_Config - Default library configuration files. For more information regarding modifying the library configuration file please refer to Modifying USS SW Library Configuration files
Code Composer Studio¶
Importing the Project¶
- In CCS, select File -> Import..
- In the Import window, select C/C++ -> CCS Projects and select the Next button
- In the Import CCS Eclipse Projects window, hit the Browse button to browse to
<USS_SW_LIB_EXAMPLES_DIR>
and then select Refresh to update the window. Select the checkbox next to the project and click Finish. This will load the project into CCS workspace.
Building the Project¶
To build the project, right-click on the project name in the Project Explorer and select Build Project OR click on the Build icon in the top toolbar.
IAR Embedded Workbench for MSP430¶
Importing the Project¶
All code examples that are shipped with the USS SW Library come with a .eww IAR workspace file. To import a project into IAR, navigate to the project’s IAR directory <USS_SW_LIBRARY_INSTALL_DIR>examplesUSSSWLib_template_example>
and double-click on the .eww workspace file for that project.
Building the Project¶
Make / Build the project by right-clicking on the project in your Workspace and selecting Make or by clicking Shortcut F7 on your keyboard.
Recommended USS SW Library usage¶
Recommended measurement and algorithms initialization¶
Users can decide to use to use the provided Absolute Time Of Flight, Delta Time of Flight and Volume Flow as part of the USS SW Library or implement custom algorithms using the sampled waveforms.
The following diagrams shows the recommended measurement configuration sequence.
Before invoking USS_runAlgorithms or USS_runAlgorithmsFixedPoint it is highly recommended to follow the configuration sequence below.
Fig. 7 Measurement Configuration
Most API supported by the library will return an error code back to the application which the user can use to determine if the there was an error detected when invoking an API. All measurement configurations and algorithm initialization APIs will return USS_message_code_no_error
if the API ran successfully.
Modifying Library Configuration Files¶
All modifications to USS SW Library are done via <USS_userConfig.h>
file. This header file in four main sections:
- Library memory optimization configuration
- Library basic configuration parameters
- Clock Definition
- Diagnostic Configuration
- Meter Configuration
- Ultrasonic Firing/Capture Configuration
- Calibration Configuration
- Algorithm Configuration
- Library advanced configuration parameters
- Advanced Algorithm Configuration
- Advanced Ultrasonic Firing/Capture Configuration
- Library Derived parameter
Library memory optimization configuration¶
This section allows user to optimize LEA RAM, RAM and FRAM library memory usage by allowing users to modify various temporary buffers sizes during compilation time.
Crack Iar Embedded Workbench Msp430 Examples Pdf
USS SW Library Macro Name |
---|
USS_SW_LIB_APP_MAX_CAPTURE_SIZE |
USS_SW_LIB_APP_MAX_FILTER_LENGTH |
USS_SW_LIB_APP_MAX_FILTER_OPTIONS |
USS_SW_LIB_APP_MAX_HILBERT_FILTER_OPTIONS |
USS_SW_LIB_APP_MAX_HILBERT_FILTER_LENGTH |
USS_BINARY_ARRAY_MAX_SIZE |
USS_NUM_OF_MAX_TRILL_PULSES |
USS_NUM_OF_MAX_ADDTL_TRILL_PULSES |
The sections below list all temporary buffer used by the library and the. The buffers listed below are defined in <USS_userConfig.c>
LEA RAM Buffers¶
LEA RAM Buffer Name | Data type | Default Configuration Buffer size | Comment |
---|---|---|---|
gUSSLEATempMemBlock | int16_t | [2*(USS_SW_LIB_APP_MAX_CAPTURE_SIZE +USS_SW_LIB_APP_MAX_FILTER_LENGTH)] | Required for Firing/Capture Process |
gUSSLEARAMReservedBlock1 | int16_t | [USS_SW_LIB_APP_MAX_CAPTURE_SIZE + USS_SW_LIB_APP_MAX_FILTER_LENGTH] | Used by algorithm dtoFCalcOption:
|
gUSSLEARAMReservedBlock2 | int16_t | [USS_SW_LIB_APP_MAX_CAPTURE_SIZE + USS_SW_LIB_APP_MAX_FILTER_LENGTH] | Used by algorithm absToFOption:
|
gUSSBinaryPattern | int16_t | USS_BINARY_ARRAY_MAX_SIZE | Used by algorithm absToFOption:
|
FRAM Buffers¶
Crack Iar Embedded Workbench Msp430 Examples Pdf
FRAM Buffer Name | Data type | Default Configuration Buffer size | Comment |
---|---|---|---|
gNVMemBlock | int16_t | [USS_SW_LIB_APP_MAX_CAPTURE_SIZE * 2] | Used by all absToFOption computation options |
gUSSFilterCoeffs | int16_t | [USS_SW_LIB_APP_MAX_FILTER_OPTIONS] * [USS_SW_LIB_APP_MAX_FILTER_LENGTH] | Used by USS_runAlgortihms APIs when signal filtering is enabled |
gUSSHilbertCoeffs | int16_t | [USS_SW_LIB_APP_MAX_HILBERT_FILTER_OPTIONS] * [USS_SW_LIB_APP_MAX_HILBERT_FILTER_LENGTH] | Used by algorithm absToFOption:
|
|
uint16_t | [USS_NUM_OF_MAX_TRILL_PULSES] | Required when using multitone generation functionality on devices with SAPH_A module. To determine is your device has SAPH or SAPH_A module please refer to the device datasheet. |
|
uint16_t | [USS_NUM_OF_ADDTL_TRILL_PULSES] | Required when using multitone generation functionality on devices with SAPH_A module and (USS_NUM_OF_ADDTL_TRILL_PULSES > 0). To determine is your device has SAPH or SAPH_A module please refer to the device datasheet. |
additionalBinarySequence | int16_t | [USS_NUM_OF_ADDTL_TRILL_PULSES] | Required when (USS_NUM_OF_ADDTL_TRILL_PULSES > 0) |
RAM Buffers¶
Crack Iar Embedded Workbench Msp430 Examples 2017
RAM Buffer Name | Data type | Default Configuration Buffer size | Comment |
---|---|---|---|
RAM_XE | uint16_t | [(USS_NUM_OF_MAX_TRILL_PULSES + USS_NUM_OF_ADDTL_TRILL_PULSES) * 6] | Required when using multitone generation functionality on devices with SAPH_A module. To determine is your device has SAPH or SAPH_A module please refer to the device datasheet. |
RAM_DMA_CONFIG | uint16_t | [(USS_NUM_OF_MAX_TRILL_PULSES + USS_NUM_OF_ADDTL_TRILL_PULSES) * 18] | Required when using multitone generation functionality on devices with SAPH_A module. To determine is your device has SAPH or SAPH_A module please refer to the device datasheet. |