Home ·

- SAM-BA lowlevel applet

# SAM-BA lowlevel applet

The lowlevel applet initializes the device clock tree: CPU clock, Master clock (MCK), PLLs, ... The targetted frequencies are specific to each device. This applet should be executed only once afer reset, prior to the extram applet.

## Applet initialization

The lowlevel applet doesn't accept any parameter to be initialized. The only exceptions are SAM9X60 and SAMA7G5 devices. In this later case, the list of supported parameters to initialize the applet can be displayed with the following command:

    $ sam-ba -p serial -d sam9x60 -a lowlevel:help
    Syntax: lowlevel:[<preset>]
    Parameters:
        preset  System clock configuration
    Examples:
        lowlevel    use default board settings if defined, preset 0 otherwise
        lowlevel:0  use preset 0 for system clock configuration

    $ sam-ba -p serial -d sama7g5 -a lowlevel:help
    Syntax: lowlevel:[<preset>]:[<xtalf>]
    Parameters:
        preset  System clock configuration
        xtalf   Frequency (in kHz) of the Main Crystal Osciallator
    Examples:
        lowlevel           use default board settings if defined, preset 0 otherwise
        lowlevel:0         use preset 0 for system clock configuration
        lowlevel::24000    skip the main crystal detection and force its frequency at 24MHz

### CPU and Master clock frequencies

Device | Preset | CPU clock (MHz) | Master clock (MHz)
--- | --- | --- | ---
SAM9xx5 | N/A | 399 | 133
SAM9X60 | 0 | 600 | 200
SAM9X60 | 1 | 500 | 166
SAMA5D2 | N/A | 498 | 166
SAMA5D3 | N/A | 528 | 133
SAMA5D4 | N/A | 600 | 200
SAMA7G5 | 0 | 800 | 200
SAMA7G5 | 1 | 570 | 142

## Supported commands

The lowlevel applet doesn't support any command.