SK-AM62A

Overview

The SK-AM62A board configuration is used by Zephyr applications that run on the TI AM62A platform.

The sk_am62a/am62a7/mcu_r5f0_0 board configuration provides support for the ARM Cortex-R5F MCU core.

The board configuration also enables support for the semihosting debugging console.

See the TI AM62A Product Page for details.

Hardware

The SK-AM62A EVM features the AM62A SoC, which is composed of a quad Cortex-A53 cluster and a single Cortex-R5F core in the MCU domain. Zephyr is ported to run on the R5F core and the following listed hardware specifications are used:

  • ARM Cortex-R5F
    • 64KB of SRAM

  • Memory
    • 4GB of DDR4

  • Debug
    • XDS110 based JTAG

Supported Features

The sk_am62a board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

sk_am62a/am62a7/mcu_r5f0_0 target

On-target memory for this board target: 15356 KiB of RAM, N/A of Flash.

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-R5F CPU1

arm,cortex-r5f

Clock control

on-chip

TI-SCI clock controller1

ti,k2g-sci-clk

on-board

Generic fixed-rate clock provider1

fixed-clock

Firmware

on-chip

TISCI Client Driver1

ti,k2g-sci

GPIO & Headers

on-chip

GPIO Controller for Davinci and Keystone devices7

ti,davinci-gpio

I2C

on-chip

TI OMAP I2C Controller5

ti,omap-i2c

Interrupt controller

on-chip

TI Vectored Interrupt Manager is a external interrupt controller (TI specific IP) which is compatible with R5F VIC port1

ti,vim

Mailbox

on-chip

TI OMAP MAILBOX13

ti,omap-mailbox

on-chip

TI Secure Proxy MAILBOX1

ti,secure-proxy

Multi-bit SPI

on-chip

Cadence xSPI (dual, quad, octal SPI) Flash controller with MSPI interface1

cdns,xspi-nor

Pin control

on-chip

TI K3 Pin Controller11

ti,k3-pinctrl

Power domain

on-chip

TISCI-managed power domain106

ti,sci-pm-domain

PWM

on-chip

TI SOC EHRPWM based PWM controller3

ti,am3352-ehrpwm

on-chip

TI SOC ECAP based PWM controller3

ti,am3352-ecap

SDHC

on-chip

TI SD/eMMC Host Controller2

ti,am654-sdhci

Serial controller

on-chip

ns16550 UART17

ns16550

SPI

on-chip

TI Multi Channel SPI controller for OMAP and K3 SoCs5

ti,omap-mcspi

SRAM

on-board

Generic on-chip SRAM1

mmio-sram

System controller

on-chip

TI-K3 device level control register module3

ti,control-module

Timer

on-chip

TI Dual-Mode Timer111

ti,am654-timer

Watchdog

on-chip

K3 Watchdog timer (RTI module) available in the K3 generation of processors5

ti,j7-rti-wdt

Devices

System Clock

This board configuration uses a system clock frequency of 400 MHz.

DDR RAM

The board has 4GB of DDR RAM available. This board configuration allocates Zephyr:

  • 1MB for IPC (VirtIO / Vrings)

  • 4KB for Linux RemoteProc resource table

  • 15MB for general usage

Serial Port

This board configuration uses a single serial communication channel with the MCU domain UART (MCU_UART0).

SD Card

Download TI’s official WIC and flash the WIC file with an etching software onto an SD card. This will boot Linux on the A53 application cores of the EVM. These cores will then load the zephyr binary on the R5F core using remoteproc.

Flashing

The board can using remoteproc, and uses the OpenAMP resource table to accomplish this.

The testing requires the binary to be copied to the SD card to allow the A53 cores to load it while booting using remoteproc.

To test the R5F core, we build the Hello World sample with the following command.

# From the root of the Zephyr repository
west build -p -b sk_am62a/am62a7/mcu_r5f0_0 samples/hello_world

This builds the program and the binary is present in the build/zephyr directory as zephyr.elf.

We now copy this binary onto the SD card in the /lib/firmware directory and name it as am62a-mcu-r5f0_0-fw.

# Mount the SD card at sdcard for example
sudo mount /dev/sdX sdcard
# copy the elf to the /lib/firmware directory
sudo cp --remove-destination zephyr.elf sdcard/lib/firmware/am62a-mcu-r5f0_0-fw

The SD card can now be used for booting. The binary will now be loaded onto the R5F core on boot.

To allow the board to boot using the SD card, set the boot pins to the SD Card boot mode. Refer to AM62A Starter Kit EVM Quick Start Guide.

After changing the boot mode, the board should go through the boot sequence on powering up. The binary will run and print Hello world to the MCU_UART0 port.

Debugging

The board is equipped with an XDS110 JTAG debugger. To debug a binary, utilize the debug build target:

west build -b sk_am62a/am62a7/mcu_r5f0_0 <my_app>
west debug

References