Skip to content

Latest commit

 

History

History
134 lines (90 loc) · 3.81 KB

File metadata and controls

134 lines (90 loc) · 3.81 KB

Use CMSIS-Compiler {#usage}

The following steps are required to install the ARM::CMSIS-Compiler pack and to use the software components that are shipped with the CMSIS-Pack.

Note

The installation and usage instructions are assuming you are using a CMSIS-Toolbox based environment.

Pack installation

Add the ARM::CMSIS-Compiler pack to your installation:

cpackget add ARM::CMSIS-Compiler

Alternatively, you can download the latest version from the CMSIS-Compiler page.

Component selection

  1. In your IDE, open the Manage software components dialog.
  2. If you cannot see the CMSIS-Compiler component, select to display All installed packs.
  3. You must select the component CMSIS-Compiler::CORE and at least one additional API.

Manage software components

Resolve Dependencies {#usage_resolve_dependencies}

Using Event Recorder {#usage_evr}

The Event Recorder subcomponent requires the CMSIS-View::Event Recorder component from the CMSIS-View pack.

  1. Install the CMSIS-View pack:

    cpackget add ARM::CMSIS-View
  2. In the Manage Software Components dialog, select Software Pack, then choose All installed packs and find and select ARM::CMSIS-View.

    Select CMSIS-View Pack

  3. Select the CMSIS-View::Event Recorder component.

    Select CMSIS-View::Event Recorder Component

The project yml file should contain:

packs:
   - pack: ARM::CMSIS-Compiler
   - pack: ARM::CMSIS-View
components:
   - component: CMSIS-Compiler:CORE
   - component: CMSIS-Compiler:STDOUT:Event Recorder
   - component: CMSIS-View:Event Recorder&DAP

Using RTT {#usage_rtt}

The RTT subcomponent requires the SEGGER::RTT component from the SEGGER RTT pack.

  1. Install the SEGGER RTT pack:

    cpackget add SEGGER::RTT
  2. In the Manage Software Components dialog, select Software Pack, then choose All installed packs and find and select SEGGER::RTT.

    Select SEGGER Pack

  3. Select the SEGGER::RTT component.

    Select SEGGER::RTT Component

The project yml file should contain:

packs:
   - pack: ARM::CMSIS-Compiler
   - pack: SEGGER::RTT
components:
   - component: CMSIS-Compiler:CORE
   - component: CMSIS-Compiler:STDOUT:RTT
   - component: SEGGER:RTT

Using UART {#usage_uart}

The UART subcomponent provides default implementation variant CMSIS which requires the CMSIS Driver::USART implementation, typically provided by a Board Support Pack (BSP) or Device Family Pack (DFP) for the target hardware.

Note

Use the CMSIS Packs catalog to find the appropriate pack for your target hardware.

  1. Install the Board Support Pack (BSP) or Device Family Pack (DFP):

    cpackget add Vendor::Pack
  2. In the Manage Software Components dialog, select Software Pack, then choose All installed packs and find and select installed BSP or DFP.

  3. Select the CMSIS Driver::USART component.

    Select CMSIS Driver::USART Component

The project yml file should contain:

packs:
   - pack: ARM::CMSIS-Compiler
   - pack: Vendor::Pack
components:
   - component: CMSIS-Compiler:CORE
   - component: CMSIS-Compiler:STDOUT:UART&CMSIS
   - component: CMSIS Driver:USART