Home ·

SAM9xx5 QML Type

Contains chip-specific information about SAM9xx5 device. More...

Import Statement: import SAMBA.Device.SAM9xx5 3.2
Inherits:

Device

Inherited By:

SAM9xx5EK

Properties

Methods

Detailed Description

This QML type contains configuration, applets and tools for supporting the SAM9xx5 device.

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.

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".

SDMMC Applet

This applet is used to read/write SD/MMC and e.MMC devices. It supports all HSMCI peripherals present on the SAM9xx5 device (see SAM9xx5Config for configuration information).

The External RAM applet must have been initialized first.

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

SerialFlash Applet

This applet is used to flash AT25 serial flash memories. It supports all SPI peripherals present on the SAM9xx5 device (see SAM9xx5Config for configuration information).

The External RAM applet must have been initialized first.

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

NAND Flash Applet

This applet is used to flash NAND memories (see SAM9xx5Config for configuration information).

The External RAM applet must have been initialized first.

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

Configuration

When creating an instance of the SAM9xx5 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 SAM9xx5. The following preset boards are available:

Command-Line NameQML NameBoard Name
sam9xx5-ekSAM9xx5EKAT91SAM9x5-EK

Custom configuration

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

For example, the following QML snipplet configures a device using MT47H64M16 DDRAM and a serialflash on SPI1 I/O set 1 and Chip Select 3 at 33Mhz:

SAM9xx5 {
        config {
                extram {
                        preset: 1
                }
                serialflash {
                        instance: 1
                        ioset:1
                        chipSelect: 3
                        freq: 33
                }
        }
}

Property Documentation

config : alias

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

See also SAM9xx5Config.


Method Documentation

checkDeviceID()

Checks that the device is a SAM9xx5.

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


initialize()

Initialize the SAM9xx5 device using the current connection.

This method calls checkDeviceID.



Copyright © 2018 Microchip Technology
SAM-BA Documentation