Home ·

# SAMV71 QML Type

Contains chip-specific information about SAMU70 devices. More...

Import Statement: | import SAMBA.Device.SAMV71 3.2
Inherits: | Device
Inherited By: | SAME70Xplained and SAMV71Xplained

- List of all members, including inherited members

## Properties

- config : alias

## Methods

- checkDeviceID()
- initialize()

## Detailed Description

This QML type contains configuration, applets and tools for supporting the SAMV71 device family (SAME70 / SAMS70 / SAMV70 / SAMV71).

## Applets

SAM-BA uses small programs called "Applets" to initialize the device or flash external memories. Please see SAMBA::Applet for more information on the applet mechanism.

### Low-Level Applet

This applet is in charge of configuring the device clocks.

It is only needed when using JTAG for communication with the device. When communication using USB or Serial via the SAM-BA Monitor, the clocks are already configured by the ROM-code.

The only supported command is "init".

### External RAM Applet

This applet is in charge of configuring the external RAM.

The Low-Level applet must have been initialized first.

The only supported command is "init".

Note: The external RAM is not needed for correct operation of the other applets. It is only provided as a way to upload and run user programs from external RAM.

### InternalFlash Applet

This applet is used to read/write internal flash memory.

Supported commands are "init", "read", "write" and "blockErase".

## Configuration

When creating an instance of the SAMU70 type, some configuration can be supplied. The configuration parameters are then used during applet initialization where relevant.

### Preset Board selection

A set of pre-configured values can be selected by instanciating sub-classes of SAMU70. The following preset boards are available:

Command-Line Name | QML Name | Board Name
--- | --- | ---
same70-xplained | SAME70Xplained | SAME70 Xplained
samv71-xplained | SAMV71Xplained | SAMV71 Xplained Ultra

### Custom configuration

Each configuration value can be set individually. Please see SAMV71Config for details on the configuration values.

For example, the following QML snipplet configures a device to output console traces on UART0 IOSet 1:

    SAMA5D2 {
            config {
                    serial {
                            instance: 0
                            ioset: 1
                    }
            }
    }

## Property Documentation

config : alias

The device configuration used by applets (peripherals, I/O sets, etc.)

See also SAMV71Config.

## Method Documentation

checkDeviceID()

Checks that the device is a SAME70/S70/V70/V71.

Reads CHIPID_CIDR register using the current connection and display a warning if its value does not match the expected value.

initialize()

Initialize the SAMV7 device using the current connection.

This method calls checkDeviceID.