
.. _evm_setup_|dev_platform|:

EVM Setup for |dev_platform|
===============================

This section is intended to give a quick reference of EVM related to SDK usage.  Full EVM documentation
will be referenced at `TDA4AP, TDA4VP EVM <https://www.ti.com/tool/J742S2XEVM>`_ at a later time.

.. IMPORTANT::

   - The power supply requires an output voltage of 24-48 VDC, and output capacity of 100-160W, depending on use
     case and connected peripherals.
   - When connecting the fusion daughter card, the power cable connecting processor board
     and fusion board should look exactly like the picture in section :ref:`j784s4_fusion-daughter-card`.
     (P.S. The same cable from TDA2P EVM has the opposite wire connection at one end)

EVM Setup to run SDK demos
--------------------------

Daughter card requirements
**************************

Below table shows the daughter cards required for various features/demos

+-----------------------------------------+--------------------+------------------------------+-------------+
| Feature                                 | Fusion 1 card      | IMX390+UB953 FPDLink sensors | QPENet card |
+=========================================+====================+==============================+=============+
| eDP (DisplayPort) display (1)           | na                 | na                           | na          |
+-----------------------------------------+--------------------+------------------------------+-------------+
| HDMI display (2)                        | na                 | na                           | na          |
+-----------------------------------------+--------------------+------------------------------+-------------+
| CSI2RX camera input                     | REQURIED           | REQURIED                     | na          |
+-----------------------------------------+--------------------+------------------------------+-------------+
| CAN demos (1)                           | na                 | na                           | na          |
+-----------------------------------------+--------------------+------------------------------+-------------+

| \(1\) Supported on base EVM board
| \(2\) Supported on base EVM board along with external DP to HDMI adapter


UART terminal setup
*******************

- Connect USB cable to Main UART port on EVM (see :ref:`j784s4_common-processor-board`)

  - 4 UART ports would be visible at the PC side
  - Port 0 from this is used this for Linux, RTOS UART terminal from A72

- **Setup UART for 115200 baud rate, 8 data bits, no parity, 1 stop bit**

Boot Modes
**********

Bootmodes are selected using the SW11 and SW7 switches on the EVM.

.. _j784s4_no_boot_mode:

No Boot Mode
############

When you want the binaries to be loaded from a debugger (CCS), the EVM
has to be set in the NO boot mode.

Following are the switch settings to do the same.::

    SW11[1-8] = 1000 1000
    SW7[1-8]  = 0111 0000


.. figure::  images/K3-J784S4-EVM-Switch-NO-boot.png
   :scale: 95%

   No Boot Mode


.. _j784s4_sd_boot_mode:

SD Boot Mode
############

Following are the switch settings to set the boot mode to SD for EVM.::

    SW11[1-8] = 1000 0010
    SW7[1-8]  = 0000 0000

.. figure:: images/K3-J784S4-EVM-Switch-SD-boot.png

   MMC/SD Boot Mode


.. _j784s4_xspi_boot_mode:

XSPI Boot Mode
##############

Following are the switch settings to set the boot mode to XSPI for EVM.::

    SW2[1-8]  = 0xxx xxxx
    SW11[1-8] = 0000 1010
    SW7[1-8]  = 0110 0000

.. figure:: images/K3-J784S4-EVM-SW2-UART-boot.png
   :scale: 65%

   XSPI Boot Mode SW2

.. figure:: images/K3-J784S4-EVM-Switch-XSPI-boot.png
   :scale: 95%

   XSPI Boot Mode SW11 and SW7


.. _j784s4_uart_boot_mode:

UART Boot Mode
##############

Following are the switch settings to set the boot mode to UART for EVM.::

    SW2[1-8]  = 0xxx xxxx
    SW11[1-8] = 0000 0000
    SW7[1-8]  = 0111 0000

.. figure:: images/K3-J784S4-EVM-SW2-UART-boot.png
   :scale: 65%

   UART Boot Mode SW2

.. figure:: images/K3-J784S4-EVM-Switch-UART-boot.png

   UART Boot Mode SW11 and SW7


EVM and Daughter Card information
---------------------------------

.. _j784s4_common-processor-board:

EVM
***

Whereas other J7 family boards consist of a Common Processor Board plus SOM, the |dev_platform| Evaluation Module (EVM) has these
two components combined into a single board. The |dev_platform| EVM is the main board which includes the following:

- |dev_platform| SoC
- Leo PMIC (Power controller)
- 16 (2x8) GiB LPDDR4 RAM
- XSPI NOR flash

In addition, the |dev_platform| EVM has peripherals to provide most common functionality. It has expander ports to
connect to different adapter cards.

.. figure:: images/j784s4_evm.png
   :scale: 75%

   |dev_platform| EVM

Contents of the board

#. 4xUART to USB port for Main uarts

   - Port0 from this is used this for Linux, RTOS UART terminal from A72

#. 2xUART to USB port MCU domain uarts

   - Port0 from this is used for Cortex M4F UART
   - Port1 from this is used for MCU R5F UART

#. 6x CAN FD Interfaces 
#. Main Domain Ethernet (CPSW2G) port
#. MCU Domain Ethernet (CPSW2G) port
#. MIPI JTAG connector
#. SD card slot
#. XDS110 on board USB JTAG connector
#. USB Host ports
#. Quad Port Ethernet daughter card (bottom of EVM) **sold separately**
#. 2x Display (eDP/DP) ports

   - Display0 is used by software for eDP/DP output

#. USBC port
#. 12V Power input
#. Power switch


Quad Port Ethernet daughter card
********************************

Quad Port Ethernet (QPENet) board is an adapter board which offers
additional CPSW9G Ethernet port capabilities to the Jacinto7 EVM.  It is connected
to the bottom of the EVM beneath the 2x Display (eDP/DP) ports.

.. figure:: images/K3-QPENet-card_j784s4.png

   QPENet daughter card


.. _j784s4_fusion-daughter-card:

Fusion daughter card
********************

Fusion daughter card is adapter board to connect 8 camera sensors (IMX390+UB953 serializer)
through de-serializer (UB960) available on the Fusion1 daughter card to CSI2RX ports of |dev_platform| SoC.

Connect the daughter card to bottom side of EVM at connector J57.

.. figure:: images/Fusion_card_connector_j784s4.png
   :scale: 75%

   CSI2 Exp Connector

.. figure:: images/fusion1_board.png

   Fusion1 Board

.. figure:: images/fusion1_board_mounted_j784s4.png

   Fusion1 Mounting
