Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page properties
hiddentrue
idComments

Design Name always "TE Series Name" + Design name, for example "TEI0006 TEM0007 Test Board"

202206152
DateVersionChangesAuthor
2024-
04-
16
1.2
  • add 'QSPI-Boot mode'
  • add 'Get prebuilt boot binaries'
  • changed SD-Boot mode chapter
  •  'Device Tree' chapter expanded
TD
2022-04-212.1
  • update to 21.x
TD
2022-02-282.0
  • add yocto to
    • Overview → Key Features
    • Overview → Requirements
    • Design Flow
    • Launch
  • add section 'Software Design - Yocto'
TD
2021-06-151.2
  • table of content view
  • template history
  • placed a horizontal separation line under each chapter heading
  • replaced <design name> by <project folder>
  • changed title-alignment for tables from left to center
  • update 19.x to 20.x
JH,TD
2020-11-241.1
  • add fix table of content
  • add table size as macro
JH
--1.0----

Custom_table_size_100

  • Modification of the document
  • Such topics same as Hart Software Services is added. 
MC
2024-02-141.1Conversion into templateKJ
2023-11-131.0

Initial Template based on Intel/AMD template initial used by TEM0007 testboard copy

MC/JH


Custom_table_size_100

Page properties
hiddentrue
idComments

Important General Note:

  • Export PDF to download, if quartus revision is changed!

  • Designate all graphics and pictures with a number and a description, Use "Scroll Title" macro

    • Use "Scroll Title" macro for pictures and table labels. Figure number must be set manually at the moment (automatically enumeration is planned by scrollPDF)
      • Figure template (note: inner scroll ignore/only only with drawIO object):

        Scroll Title
        anchorFigure_xyz
        titleText


        Scroll Ignore

        Create DrawIO object here: Attention if you copy from other page, use


        Scroll Only

        image link to the generate DrawIO PNG file of this page. This is a workaround until scroll pdf export bug is fixed



      • Table template:

        • Layout macro can be use for landscape of large tables
        • Set column width manually(can be used for small tables to fit over whole page) or leave empty (automatically)
Page properties
hiddentrue
idComments

Important General Note:

  • Export PDF to download, if quartus revision is changed!

  • Designate all graphics and pictures with a number and a description, Use "Scroll Title" macro

    • Use "Scroll Title" macro for pictures and table labels. Figure number must be set manually at the moment (automatically enumeration is planned by scrollPDF)
      • Figure template (note: inner scroll ignore/only only with drawIO object):

      • Scroll Title
        anchorFigureTable_xyz
        titleText

        scroll-

        ignore

        Create DrawIO object here: Attention if you copy from other page, use

        Scroll Only

        image link to the generate DrawIO PNG file of this page. This is a workaround until scroll pdf export bug is fixed

  • Table template:

    • Layout macro can be use for landscape of large tables
    • Set column width manually(can be used for small tables to fit over whole page) or leave empty (automatically)
  • tablelayout
    orientationportrait

    Scroll Title
    anchorTable_xyz
    titleText

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    style
    widths
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    ExampleComment
    12



  • ...
  • Overview

    Scroll Ignore
    scroll-pdftrue
    scroll-officetrue
    scroll-chmtrue
    scroll-docbooktrue
    scroll-eclipsehelptrue
    scroll-epubtrue
    scroll-htmltrue


    Page properties
    hiddentrue
    idComments

    Notes :

    Refer to http://trenz.org/tem0007-info for the current online version of this manual and other available documentation.

    Key Features

    Page properties
    hiddentrue
    idComments

    Notes :

    • Add basic key futures, which can be tested with the design


    Excerpt
    • Libero SoC v2023.1
    • SoftConsole v2022.2-RISC-V-747
    • PolarfireSoC MSS Configurator v2023.1
    • HSS (Hardware System Service)
    • Yocto
    • UART
    • v2023.02
    • Microchip polarfire SoC BSP v2022.11
    • FPExpress v2023.1
    • Linux distribution BSP: "Yocto Kirkstone"
    • UART
    • ETH
    • USB
    • I2C
    • QSPI flash
    • DDR3 LPDDR4 memory
    • User LED

    Revision History

    Page properties
    hiddentrue
    idComments

    Notes :

    • add Add every update file on the download
    • add Add design changes on description


    Scroll Title
    anchorTable_DRH
    title-alignmentcenter
    titleDesign Revision History

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    style
    widths
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    DateLibero SoCProject BuiltAuthorsDescription
    2023
    2024-
    08
    04-
    16
    17
    v2023.1

    TEM0007-test_board_noprebuilt-libero_23.1-20240417101518.zip
    TEM0007-test_board-libero_23.1-20240417101518.zip

     

    v2023.1

    Mohsen Chamanbaz
    • initial release

    Release Notes and Know Issues

    • Release for more variants
    • The design is matched to new carrier board TEB2000.
    2023-11-13
    v2023.1

    TEM0007-test_board_noprebuilt-libero_23.1-20231113135744.zip
    TEM0007-test_board-libero_23.1-20231113135744.zip

    Mohsen Chamanbaz
    • Clock frequency of LPDDR4 reduced to 500MHz.
    • USB and ethernet phys will be reset while booting.
    2023-09-07v2023.1

    TEM0007-test_board_noprebuilt-libero_23.1-20230907135657.zip
    TEM0007-test_board-libero_23.1-20230907135657.zip

    Mohsen Chamanbaz
    • initial release


    Release Notes and Know Issues

    Page properties
    hiddentrue
    idComments
    Notes :
    • Add
    Page properties
    hiddentrue
    idComments
    Notes :
    • add known Design issues and general notes for the current revision
    • do Do not delete known issue, add fixed version time stamp if  issue fixed


    Scroll Title
    anchorTable_KI
    title-alignmentcenter
    titleKnown Issues

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    style
    widths
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    IssuesDescriptionWorkaroundTo be fixed version
    No known issues---------


    Requirements

    Software

    Page properties
    hiddentrue
    idComments

    Notes :

    • list List of software which was used to generate the design


    Scroll Title
    anchorTable_SW
    title-alignmentcenter
    titleSoftware

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    SoftwareVersionNote
    Libero SoCv20223v2023.1needed for generating / viewing / modifying the hardware design
    FPExpress
    v2023.1needed. Included within Libero SoC installation or as a standalone application .
    SoftConsoleSoftConsolev2022.2needed for generating / viewing / modifying the software design
    PolarfireSoC MSS Configuratorv2023.1needed for configuration of MSS
    Linux distribution "Yocto"Kirkstoneneeded (more information: Yocto KICKstart#Used source files)


    Additional software requirement

    Scroll Title
    anchorTable_SW
    title-alignmentcenter
    titleAdditional Software Requirement

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    RequirementVersionNote
    hart software servicesHart Software Servicesv2023.02needed
    Microchip PolarFire SoC Yocto BSP (meta-polarfire-soc-yocto-bsp) v2022.11needed


    Hardware

    Page properties
    hiddentrue
    idComments

    Notes :

    • list List of hardware which was used to generate the design
    • mark Mark the module and carrier board, which was used tested with an *

    Complete List is available on <project folder>/board_files/*_board_files.csv

    Design supports following modules:

    Scroll Title
    anchorTable_HWM
    title-alignmentcenter
    titleHardware Modules

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    style
    widths
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    Module ModelBoard Part Short NameYocto Machine NamePCB Revision SupportDDRQSPI FlashEMMCOthersNotes
    TEM0007-01-S002*25_1E0_ES_1GBtem0007REV011GB64MB------------
    TEM0007-01-CHE11-A*250_1E_1GBtem0007REV011GB64MB------------

    *used as reference

    Design supports following carriers:

    Scroll Title
    anchorTable_HWC
    title-alignmentcenter
    titleHardware Carrier
    Scroll Table LayoutorientationportraitsortDirectionASCrepeatTableHeadersdefaultstylewidthssortByColumn1sortEnabledfalsecellHighlightingtrueCarrier ModelNotesModified TE0703*As carrier board. This board must be modified. For more information see Modified TE0703 for Microchip Getting Started

    TEM0007-01-CAA11-A

    025_1E_1GB

    tem0007REV011GB64MB------------

    TEM0007-01-CAD11-A

    025_1I_1GB

    tem0007REV011GB64MB------------
    TEM0007-01-CBD11-A095_1I_1GBtem0007REV011GB64MB------------

    *used as reference

    The Design requires one of the following carriers:

    *used as reference

    Additional HW Requirements:

    Scroll Title
    anchorTable_AHWHWC
    title-alignmentcenter
    titleAdditional Hardware Carrier

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    style
    widths
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    Carrier ModelPCB Revision SupportAdditional HardwareQuantityNotes
    TE0790 XMOD1For HSS console
    Mini USB cable for JTAG/UART2Check Carrier Board and Programmer for correct type
    Modified TE0703----
    As carrier board. This board must be modified. For more information see Modified TE0703 for Microchip Getting Started
    TEB2000*
    REV01
    RJ45 Ethernet cable1The carrier board for TEM0007. For more information refer to TEB2000 Getting Started

    *used as reference

    Content

    Page properties
    hiddentrue
    idComments

    Notes :

    • content of the zip file

    For general structure and usage of the reference design, see Project Delivery - Microchip devices

    Design Sources

    Additional hardware requirements:

    Scroll Title
    anchorTable_AHW
    title-alignmentcenter
    titleAdditional Hardware

    scroll-

    Scroll Title
    anchorTable_DS
    title-alignmentcenter
    titleDesign sources

    scroll-tablelayout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    style
    widths
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    TypeAdditional HardwareLocationQuantityNotes
    TE0790 XMOD
    Libero

    <project folder>/source_files/Libero

    <project folder>/source_files/<Board Part Short Name>/Libero

    Libero project will be generated by TE Scripts

    (Optional) Source files for specific assembly variants

    SoftConsole

    <project folder>/source_files/SoftConsole

    <project folder>/source_files/<Board Part Short Name>/SoftConsole

    Additional software will be generated by TE Scripts

    (Optional) Source files for specific assembly variants

    Yocto<project folder>/source_files/os/yoctoYocto BSP layer template for linux
    Prebuilt
    1For HSS console
    Mini USB cable for JTAG/UART2Check Carrier Board and Programmer for correct type
    RJ45 Ethernet cable1
    SD card1At least 8GB
    USB Stick1Optional


    Content

    Page properties
    hiddentrue
    idComments

    Notes :

  • prebuilt files
  • Template Table:
    • List content of the zip file

    For further insight into the structure of a Trenz Reference Design Download and usage of its content in general , please follow the link  Project Delivery - Microchip devices

    Design Sources

    PFPrebuilt files (only on ZIP with prebult content)

    Scroll Title
    anchorTable_
    DS
    title-alignmentcenter
    title
    Design sources
    widths
    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault

    style

    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    File
    Type
    File-Extension
    Location

    Description

    Libero Project File*.prjxFlashPro Express Job*.jobConstraint File*.pdcTiming Constraint File*.sdcComponents in Block Design*.cxfConfiguration File*.cfgSoftware-Application-File*.elfSoftware application for SoftConsole

    Device Tree

    *.dtbDevice tree blobCONF-File*.confBoot configuration file (extlinux.conf)Yocto linux image*.wicThis File can be flashed via bmaptool on the SD card.Yocto linux image*.imgLinux image for SD card Scroll Title
    Notes
    Folder name

    Path inside the Trenz Reference Download Archive

    ---

    Libero

    <project folder>/libero_source

    Hardware Design Project , will be generated by TE Scripts

    <project folder>/libero_<Board Part Short Name>

    Source files for specific assembly variants

    SoftConsole

    <project folder>/softconsole_source

    Software Design / Boot Code / Bootloader / Application Software  

    Yocto<project folder>/os/yoctoLinux distribution. Trenz electronic yocto BSP files for TEM0007

    <project folder>/prebuiltCompiled binaries to program Hard and Soft -ware Designs

    <project folder>scriptsTE Scripts folder
    *.cmd<project folder>Starting scripts for the most imported TE Scripts


    Prebuilt

    Table
    Page properties
    hiddentrue
    idComments

    Notes :

    • prebuilt files
    • Template Table:

      • Scroll Title
        anchorTable
    anchor
      • _PF
        title-alignmentcenter
        titlePrebuilt files (only on ZIP with prebult content)

        Scroll Table Layout
        orientationportrait
        sortDirectionASC
        repeatTableHeadersdefault
        style
        widths
        sortByColumn1
        sortEnabledfalse
        cellHighlightingtrue

        File

        File-Extension

        Description

        Libero Project File*.prjxProject file
        FlashPro Express Job*.jobThe exported job file contains the data contents to be programmed into PolarFire FPGA and external SPI Flash. This job file is used in the FlashPro Express software to program both device and external SPI Flash.
        Constraint File*.pdcIO constraint file
        Timing Constraint File*.sdc
    Components in Block Design*.cxf
    Timing constraint file
    Configuration File*.cfg
    Software-Application-File*.elfSoftware application for SoftConsole
      • Polarfire MSS configuration file is prepared in Polarfire MSS Configurator software. The  Polarfire MSS Configuration software will export the *.xml , *.cxf files after that.
        Components in Block Design*.cxfExported file of Polarfire MSS Configuration software for importing in Libero software
        xml file
        *.xml
        Exported file of Polarfire MSS Configuration software for importing in SoftConsole software
        Software Application File*.hexGenerated hex file by SoftConsole software to program on eNVM memory of Polarfire SoC
        Software-Application-File*.elfSoftware application generated by SoftConsole software
        Libero Application File
        *.ppd / *dat
        Bitstream files

        Device Tree

        *.dtbDevice

    Device Tree

    *.dtbDevice
      • tree blob
        CONF-File*.confBoot configuration file
    (extlinux.conf)

      • Yocto linux image*.wicThis File can be flashed via bmaptool
    on the
      • command in host linux or other tools same as Win32DiskImager or balenaEtcher on the SD card.
        Yocto linux image*.imgLinux image for SD card

    Download

    Reference Design is only usable with the specified Libero version. Do never use different versions of Libero software for the same project.

    Page properties
    hiddentrue
    idComments

    Reference Design is available on:

    Design Flow

    Scroll Ignore
    scroll-pdftrue
    scroll-officetrue
    scroll-chmtrue
    scroll-docbooktrue
    scroll-eclipsehelptrue
    scroll-epubtrue
    scroll-htmltrue



    Scroll Title
    anchorTable_PF
    title-alignmentcenter
    titlePrebuilt files (only on ZIP with prebult content)

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    style
    widths
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    File

    File-Extension

    Description

    Libero Project File*.prjxProject file
    FlashPro Express Job*.jobThe exported job file contains the data contents to be programmed into PolarFire FPGA and external SPI Flash. This job file is used in the FlashPro Express software to program both device and external SPI Flash.
    Constraint File*.pdcIO constraint file
    Timing Constraint File*.sdcTiming constraint file
    Configuration File*.cfgPolarfire MSS configuration file is prepared in Polarfire MSS Configurator software. The  Polarfire MSS Configuration software will export the *.xml , *.cxf files after that.
    Components in Block Design*.cxfExported file of Polarfire MSS Configuration software for importing in Libero software
    xml file
    *.xml
    Exported file of Polarfire MSS Configuration software for importing in SoftConsole software
    Software Application File*.hexGenerated hex file by SoftConsole software to program on eNVM memory of Polarfire SoC
    Software-Application-File*.elfSoftware application generated by SoftConsole software
    Libero Application File
    *.ppd / *dat
    Bitstream files

    Device Tree

    *.dtbDevice tree blob
    CONF-File*.confBoot configuration file
    Yocto linux image*.wicThis File can be flashed via bmaptool command in host linux or other tools same as Win32DiskImager or balenaEtcher on the SD card.
    Yocto linux image*.imgLinux image for SD card


    Download

    Reference Design is only usable with the specified Libero version. Do never use different versions of Libero software for the same project.

    Page properties
    hiddentrue
    idComments

    Reference design is available on:

    Design Flow

    Scroll Ignore
    scroll-pdftrue
    scroll-officetrue
    scroll-chmtrue
    scroll-docbooktrue
    scroll-eclipsehelptrue
    scroll-epubtrue
    scroll-htmltrue
    Page properties
    hiddentrue
    idComments
    Notes :
    • Basic Design Steps

    • Add/ Remove project specific description

    Note

    Reference Design is available with and without prebuilt files. It's recommended to use TE prebuilt files for first launch.

    Trenz Electronic provides a tcl based built environment based on Libero Design Flow.

    See also:

    The most Trenz Electronic FPGA Reference Designs are TCL-script based projects.

    The "normal" Libero project will be generated in the subfolder "/Libero/" and the additional software part will be generated in the subfolder "/software/" after executing scripts.

    To create project do the following steps:

    1. Execute "create_project_win.cmd" or "create_project_linux.sh"
    2. Select your board in "Board selection" , if there is more than one variant.
    3. Choose one of the following options::
      1. Press 0 , if it will enter the full path of Libero SoC TCL shell.
      2. Press 1, if it will enter the full path of Microchip installation folder. For example "c:\Microchip\"
      3. Press 2, if it will enter folder path or drive to search for variable TCL shell and select from generated list elements.
      4. Press x to exit script.
    4. Choose one of the following options:
      1. Press 0 to use Libero SoC at its path. For example Libero_SoC_v2022.2 at C:/Microchip/Libero_SoC_v2022.2
      2. Press 1 to enter path of installation folder of Microchip or Libero SoC
      3. Press 2 to enter full path of Libero SoC exe file
      4. Press 3 to exit th script
    5.  Choose one of the following options:
      1. Press 0 to overwrite old Libero project folder , if it exists.
      2. Press 1 to to generate another project folder
      3. Press 2 to to enter own Libero project folder name
      4. Press 3 to exist script and do not generate the hardware design
    6. Waiting to be completed the generation of new project , if a new project is desired.
    7. Press y to open the generated Libero SoC project.

    Launch

    scroll-ignore


    Page properties
    hiddentrue
    idComments
    NoteNotes :
    • Programming and Startup procedure

    Programming

    Note

    Check Module and Carrier TRMs for proper HW configuration before you try any design.

    Programming eNVM in SoftConsole

    To program HSS *.elf file on FPGA:

    • Connect the TEM0703 board via its Mini-USB connector. (J4)
    • Open SoftConsole software as administrator, if it is not done yet.
    • Select correct directory as workspace directory.
    • Build the hart-software-services-master , if it is not done yet.
    • Click on Run > External Tools > Polarfire SoC program non-secure boot-mode 1

    Programming Bitstream

    There is two ways to program bitstream file on FPGA:

  • Using Libero SoC
    • Connect the TEM0703 board via its Mini-USB connector. (J4)
    • After generating bitstream in Libero click on  Run PROGRAM Action to program bitstream file on FPGA.
      Expand
      titleProgramming FPGA using Libero SoC

      Image Removed

  • Using FPExpress software
  • Connect the board via USB connector
  • Export  *.job file , if does not exist yet.
    Expand
    titleJob File Exporting using Libero SoC

    Image Removed

  • Expand
    titleOpen FPExpress software

    Image Removed

  • Click on new
  • Give path of job file by clicking on Browse
  • Click on OK
  • Click on RUN
  • Get prebuilt boot binaries

    Note

    Reference Design is also available with prebuilt files. It's recommended to use TE prebuilt files for first launch.

    1. Run create_project_win.cmd/create_project_linux.sh
    2. Select Module in 'Board selection'
    3. Click on 'Export prebuilt files' button
      1. Folder <project folder>/_binaries_<Article Name> with subfolder boot_linux will be generated and opened

    SD-Boot mode

    Prepare SD card as follows for SD-Boot.

    There are two commands to write image file on the SD card after mounting SD card in the host linux same as WSL:

  • Insert SD card in the SD card reader
  • Expand
    titlebmaptool command
    Code Block
    themeMidnight
    linenumberstrue
    bmaptool copy --nobmap <Path of image file *.img>  /dev/sdX
    1. After mounting the SD card in linux the name of SD card recognized via lsblk command. For example SD card name can be sda or sdb.
  • Expand
    titledd command
    Code Block
    themeMidnight
    linenumberstrue
    dd if=<Path of image file *.img> of=/dev/sdX
    1. After mounting the SD card in linux the name of SD card recognized via lsblk command. For example SD card name can be sda or sdb.
  • Alternative SD card can be written via Win32DiskImager or balenaEtcher softwares in Windows OS.

    JTAG

    Not used on this example.

    Usage

    1. Prepare HW like described on section Programming
    2. Connect UART USB (most cases same as JTAG)
    3. Connect your board to the network
    4. Power on PCB

    UART

    Open Serial Console (e.g. PuTTY)

    select COM Port

    Info

    Win OS: see device manager

    Linux OS: see  dmesg | grep tty  (UART is *USB1)

  • Speed: 115200
  • Press reset button
  • Console output depends on used Software project, see Software Design - SDK#Application
  • Linux Console:

    Login data:

    Info

    Note: Wait until Linux boot finished

    Code Block
    themeMidnight
    linenumberstrue
    tem0007 login: root
    

    You can use Linux shell now.

    Code Block
    themeMidnight
    linenumberstrue
    i2cdetect -y -r 1   (check I2C 1 Bus)
    dmesg | grep rtc    (RTC check)
    udhcpc              (ETH0 check)
    lsusb               (USB check)
    • Describe how to get the Hard and Soft -ware Designs from the Trenz Board Download .

    • Add project specific description

    Trenz Electronic provides a TCL project generation based on Microchip's Design Flow where possible.

    See also:

    Libero SoC

    Note

    Reference Design is available with and without prebuilt files. It's recommended to use TE prebuilt files for first launch.

     The Libero SoC Hardware Design Project for this board is delivered as a TCL script which utilizes the Libero SoC Command API .

    The script Libero SoC Project will be generated into the folder "<project folder> / libero_<Variant short name>".

    • Run the script "Generate_TEM0007_Hardware-Design_in_Libero_SoC_v2023.1.cmd" and follow instructions on the console :
      • The script searches for a suitable Libero SoC installation at the beginning and lists them plus some other option to manually guide the script to the Libero SoC installation of your liking .
      • Further will the script offer options  to chose from :
        • Upgrade all Libero SoC General Soft Cores
        • Select your Trenz Board Subversion / Assembly Variant from a list
        • Select the set of Soft Cores to be used during project generation. The set of soft cores versions used during development or the newest available versions and if possible this selection is possible , download them or use a copy from the Trenz Download
        • When necessary , to resolve a Folder Overwrite Conflict
        • Chose your prefered Hardware Description Language (VHDL / Verilog)
    • After the project generation , the script continues with the following options :
      • Compile the bitstream of the project and obtain the Programming Files
      • Open the project for use
        Code Block
        languagexml
        themeMidnight
        titleProject generation script console messages
        linenumberstrue
        collapsetrue
            E:\Microchip_svn\23.1\designs\TEM0007\test_board\scripts\
        Generate_TEM0007_Hardware-Design_in_Libero_SoC_v2023.1 
        
        --------------- Start : design_subversion_setup.tcl ---------------
        
        ###   Autostart via System Path Variable "acttclsh"   ### - Probing for acttclsh.exe
        "where acttclsh"
        INFORMATION: Es konnten keine Dateien mit dem angegebenen
        Muster gefunden werden.
        
        ###   Autostart via System Path Variable "tclsh"   ### - Probing for tclsh.exe
        "where tclsh"
        INFORMATION: Es konnten keine Dateien mit dem angegebenen
        Muster gefunden werden.
        
        ###   Autostart searching for default Libero SoC installation   ### - Searching for acttclsh.exe
        List of Libero_SoC installations in c:\Microchip\ and their TCL Shell(s) :
        Libero_SoC_v2023.1
            c:\Microchip\Libero_SoC_v2023.1\Designer\bin\acttclsh.exe
        
        # Autostart via Libero_SoC TCL Shell # - Executing script
            Using TCL Shell  c:\Microchip\Libero_SoC_v2023.1\Designer\bin\acttclsh.exe
        
        Processing script parameters :
          Setting dict key:windowWidth value:118 pair
          Console window has width : 118
          Parameter path not an argument to this script : key "path" not known in dictionary
         
        --------------------   TEM0007 test_design   --------------------
        TCL Version : 8.6
        
        
        This script generates the Hardware Design for the Trenz Electronic module series TEM0007.
                The Hardware Design itself is a Microchip Libero SoC Design Suite project.
        
        This script requires a Libero SoC installation equal or later than :
                Libero SoC Version   2023.1
        
        
                [When the built stops with the error message :
                 Error: Cannot find Spirit core configuration file for vendor:.. library:.. name:.. version:...
                 Error: The command 'create_and_configure_core' failed.
        
                 Upgrading the Libero SoC Soft Core Catalog can help .
                 To do so , use the script option to upgrade the cores later in this script .
        
                 Manually this is done via :
                 Open Libero and go to the Soft Core Catalog via "View > Windows > Catalog"
                 and press the button "Download them now!" .]
        
        
        Found Libero SoC installations in default folder :
          C:/Microchip/Libero_SoC_v2023.1
          C:/Microsemi/Libero_SoC_v2021.2
          C:/Microsemi/Libero_SoC_v12.4
        
        ### Select from the following options which Libero SoC version should be used
            to build the design :
        
            Option 0 : C:/Microchip/Libero_SoC_v2023.1/Designer/bin/libero.exe
            Option 1 : Enter path to your Microchip or Libero SoC installations folder
                       The script selects automatically the Libero exe
            Option 2 : Enter the full path to your Libero SoC exe
            Option 3 : Exit the script
            Selection : (0 to 3) 0
        
          Using Libero SoC @ : C:/Microchip/Libero_SoC_v2023.1/Designer/bin/libero.exe
        
        
        ### Do you wish to update the Libero SoC Soft Cores ?
             (Yes = y/t/1 or No = n/f/0) : 1
          Updating soft cores started
        
        Console Mode = Downloading Microchip:SolutionCore:YCbCrtoRGB:4.6.0...
        OK
        Info:  Core 'Microchip:SolutionCore:YCbCrtoRGB:4.6.0' was successfully downloaded.
        Downloading Microsemi:MiV:MIV_RV32:3.1.200...
        OK
        
        ### Hardware Designs are available for these variants :
            ID   :  PRODID               FAMILY           DEVICE      PACKAGE   SPEED   TEMP   SHORTNAME     FLASH_SIZE
                     DDR_SIZE   PCB_REV   NOTES
        
               1 :  TEM0007-01-S002      "PolarfireSoC"   MPFS250T_ES FCVG484   STD     EXT    25_1E0_ES_1GB NA
                     1GB        REV01     "produced prototyp"
               2 :  TEM0007-01-CHE11-A   "PolarfireSoC"   MPFS250T    FCVG484   STD     EXT    250_1E_1GB    NA
                     1GB        REV01     "produced"
               3 :  TEM0007-01-CAA11-A   "PolarfireSoC"   MPFS025T    FCVG484   STD     EXT    025_1E_1GB    NA
                     1GB        REV01     "currently factory order 5555"
               4 :  TEM0007-01-CAD11-A   "PolarfireSoC"   MPFS025T    FCVG484   -1      IND    025_1I_1GB    NA
                     1GB        REV01     "currently ERP only"
               5 :  TEM0007-01-CBD11-A   "PolarfireSoC"   MPFS095T    FCVG484   -1      IND    095_1I_1GB    NA
                     1GB        REV01     "currently factory order 5555"
               6 :  Exit script
        
            Enter ID number of your board (1 to 6) : 1
        
        
        ### Which Soft Core Versions should be used to generate the Hardware Design ?
            (The design can be generated with local sources ,
             when a Libero SoC version with the same major version is used)
        
            Option 0 : Download the newest soft core versions
            Option 1 : Download the soft cores versions , for which the Hardware Design was verified
            Option 2 : Use a local copy of the soft cores sources , which the Hardware Design was verified for
            Option 3 : Exit script
            Selection : (0 to 3) 1
        
        
        ### Folder overwrite protection .
            Checking for existing Libero SoC project folder named "libero_25_1E0_ES_1GB" :
            Found existing Libero SoC project folder "libero_25_1E0_ES_1GB"
        
            Select how to proceed :
            Option 0 : Overwrite this Libero SoC project folder
            Option 1 : Enter new Libero SoC project folder name
            Option 2 : Exit script
            Selection : (0 to 2) 0
        
        
        ### Which Hardware Description Language do you prefer :
            VHDL or Verilog ?
            Option 0 : VHDL
            Option 1 : Verilog
            Option 2 : Exit script
            Selection : (0 to 2) 0
        
        
        ### Determine expected Libero SoC Project path lengths :
            Expected maximum Libero SoC Project path length :
          root  + project name  + relatvive path  =  path length
             48   +      21  +     135   =     204
        
          The root path length is well below the Libero SoC Path Length Limit of 250 chars .
          The Hardware Designs Build / Synthesis or Bitstream generation should succeeded .
        
        
        ### Building the hardware design started at 17:17:38 , this will take some minutes .
                [In rare cases, this console may not advance from here on .
                 Visible through a not blinking cursor. Wait some minutes ,
                 focus the console and press space, the script will continue .]
        
        
        ### Checking the results via log evaluation :
          Hardware design generation was successfull  The projects path is :
        E:/Microchip_svn/23.1/designs/TEM0007/test_board/libero_25_1E0_ES_1GB
        
          The build log "libero_25_1E0_ES_1GB_build_2024.02.19_171738.log" was saved to :
        E:/Microchip_svn/23.1/designs/TEM0007/test_board/log
        
        
        ### Hardware Design Compilation and Bitstream Generation :
                Do you want the these files to be build and exported ?
                Selection (Yes = y/t/1 or No = n/f/0) : 1
        
        
          Generating folders for prebuilt files
          Folder bitstream already exists and will be overwritten
          Folder flashpro already exists and will be overwritten
        
        
        ### Executing the prebuilt started at 17:22:24 , this will take some minutes .
        
        
        ### Checking the results via log evaluation :
        Generation and export of Prebuilt Files was successfull
        
        The files have been exported to the subfolders
        bitstream and flashpro inside :
        E:/Microchip_svn/23.1/designs/TEM0007/test_board/prebuilt/hardware/25_1E0_ES_1GB
        
        The prebuilt log "libero_25_1E0_ES_1GB_prebuilt_2024.02.19_171738.log" was saved to :
        E:/Microchip_svn/23.1/designs/TEM0007/test_board/log
        
        
        ### Open the generated Libero Soc TEM0007 test_design ?
        Selection (Yes = y/t/1 or No = n/f/0) : 1
        
        
        Please press any key . . .
    • Now the generated and exported files existing in prebuilt folder are without HSS generated hex/elf file. If the hex file is attached to job file it will not be necessary to program HSS generated hex file on eNVM memory. To attach the hex file to job file execute the following instructions (optional).
      Note

      In test board reference zip file the job files in prebuilt folder consist of HSS generated hex file. The following instruction are only to know , how the final job file is prepared and regenerated.

    • After generating bitstream file double click on "Configure Design Initialization Data and Memories" in Design Flow now. 
      Expand
      titleConfigure Memory

      Image Added

    • Click on eNVM and after that on Add and click on Add Boot Mode 1 Client.
    • Enter the path of generated *.hex File by SoftConsole software (HSS) or the path of saved *.hex file in prebuilt folder ( for example "...\test_board\prebuilt\hardware\250_1E_1GB"and click on OK.
      Expand
      titleHSS generated *.hex File attachment

      Image Added

    • Save the project and double click on Generate Bitstream.
      Expand
      titleGenerate Bitstream again

      Image Added

    • Double click on "Export Flashpro ExpressJob" and enter the desired path for *.job file to generate .job File. The *.job will be used to program the polarfire soc in FPExpress software.
      Expand
      titleGenerate Job File

      Image Added


    Launch

    Scroll Ignore

    Page properties
    hiddentrue
    idComments

    Get prebuilt boot binaries

    Note

    Reference Design is also available with prebuilt files. It's recommended to use TE prebuilt files for first launch.

    Hardware Setup

    Page properties
    hiddentrue
    idComments
    • Describe how to connect the carrier and board or only the board to the development PC .
    • Programming and Startup procedure
    • Connect the TEB2000 carrier board via its J4 mini USB connector to the PC. (For Linux console)
    • Connect the TEB2000 carrier board via its J21 mini USB connector to the PC. (For HSS console)
    • Connect the 5V power supply to 5V input voltage connector J13.
    • Connect the RJ45 network cable to the ethernet interface J14. 
    • Connect the USB stick to the USB stick socket J12.
    • For more information see TEB2000 Getting Started

    Programming Bitstream

    Page properties
    hiddentrue
    idComments
    Describe how to programm the bitstream of the design onto the board or carrier .
    Note

    Check module and carrier TRMs for proper HW configuration before you try any design.

    There is two ways to program bitstream file on FPGA. The Bitstream can be programmed into the FPGA / SOC by Libero SoC or Flash Pro Express :

    Using Libero SoC

    • Prepare the hardware see Hardware Setup
    • Double click onto "Run PROGRAM Action" to program the Polarfire SoC.


    Expand
    titleProgramming FPGA using Libero SoC

    Image Added

    Using FPExpress software

    • Prepare the hardware see Hardware Setup
    • Click on NEW... to open the "Creat New Job Project" dialog
    • Clicking onto the upper Browse... button to specify the Programming Job File location
    • Clicking onto the lower Browse... button to specify the location of where to store the FlashPro Express Job Project which will be created .The Job Project name automatically uses the programming job name and cannot be changed .
    • Click OK and a new Job Project will be created and opened for production programming
    • Click on RUN to start the programming of a board


    Expand
    titleFPExpress software - Load .job-file and program board

    Image Added

    Programming eNVM 

    Page properties
    hiddentrue
    idComments
    Describe how to programm the bitstream of the design onto the board or carrier .

    The eNVM is a user non-volatile flash memory that can be programmed independently. There is two methods to program eNVM:

    Programming eNVM in SoftConsole

    To program HSS *.hex file on FPGA:

    • Prepare the hardware see Hardware Setup
    • Open SoftConsole software as administrator, if it is not done yet.
    • Select correct directory as workspace directory and import hart-software-services source code.
    • Right click on the  hart-software-services and click on Build Project, if it is not done yet. For more information see Hart Software Services (HSS)
    • Click on Run > External Tools > Polarfire SoC program non-secure boot-mode 1
    Programming eNVM in Flashpro Express

    The HSS generated hex file can be attached to bitstream file. For more information see Design Flow

    To program the eNVM in Flashpro Express see Using FlashPro Express


    Page properties
    hiddentrue
    idComments

    Get prebuilt boot binaries

    Note

    Reference Design is also available with prebuilt files. It's recommended to use TE prebuilt files for first launch.

    SD-Boot mode

    This module supports SD card boot and JTAG boot mode. The selection between them will be done in HSS, so there is no need to select the boot mode via Dip Switches .

    Prepare SD card as follows for SD card boot mode:

    1. Extract SD_Card.zip file
    2. Now there is a image file (SD_Card.img)
    3. Alternative SD card can be written via win32diskimager or  balenaEtcher softwares in Windows OS.
    4. In the case of writing image file in  linux there are two commands to write image file on the SD card after mounting SD card in the host linux same as WSL:
      1. Expand
        titlebmaptool command
        Code Block
        themeMidnight
        linenumberstrue
        bmaptool copy --nobmap <Path of image file *.img>  /dev/sdX

        1. After mounting the SD card in linux the name of SD card recognized via "lsblk" command. For example SD card name can be sda or sdb.
      2. Expand
        titledd command
        Code Block
        themeMidnight
        linenumberstrue
        dd if=<Path of image file *.img> of=/dev/sdX
        1. After mounting the SD card in linux the name of SD card recognized via lsblk command. For example SD card name can be sda or sdb.


    JTAG

    Not used on this example.

    Usage

    UART

    1. Open two serial console for HSS and Linux console (e.g. PuTTY)
      1. Select COM Port of linux console (UART1)

        Info

        Win OS: see device manager

        Linux OS: see  dmesg | grep tty  (UART is *USB1)


      2. Select COM port of HSS console (UART0)
      3. Speed for both consoles : 115200
    2. Press reset button
    3. Console output depends on used software project, see Application
    4. HSS console (UART0):
      1. This console can be monitored by user , to know some additional information same as SD card status ( If SD card by booting is detected or not) , U54 cores status or memory size , ....
        Expand
        titleHSS Console

        Image Added


    5. Linux Console (UART1):
      1. Login data:

        Info

        Note: Wait until Linux boot finished


        Code Block
        themeMidnight
        linenumberstrue
        tem0007 login: root
        


      2. You can use Linux shell now.

        Code Block
        themeMidnight
        linenumberstrue
        i2cdetect -l        (check I2C Bus)
        ifconfig -a         (ETH0 check)
        lsusb               (USB check)
        Expand
        titleLinux Console

        Image Added



     

    System Design - Libero

    Scroll Ignore


    Block Design

    Page properties
    hiddentrue
    idComments

    Note:

    • Description of Block Design - Project, Block Design - Platform Designer, ... Block Design Pictures from Export...

    The Block Design of a board variant or revision may differ slightly depending on the assembly variant.

    Scroll Title
    title-alignmentcenter
    titleBlock Design

    Image Added


    HPS Interfaces

    Page properties
    hiddentrue
    idComments

    List of active interfaces of the design . Please update the list 

    Activated interfaces:

    TypeNote
    DDR--
    EMAC0--
    GPIO1--
    GPIO2--
    I2C0--
    I2C1--
    SPI0
    --
    QSPI--
    SDMMC--
    UART0--
    UART1--
    USB--


    Constraints

    Page properties
    hiddentrue
    idComments

    Insert all constraint files which the Hardware Design uses here .

    If a division into sub chapters is necessary , the subchapters "Basic module constrains" and "Design specific constrain" have been added . Delete them not necessary .

    Code Block
    titleTEM0007_Bank_Voltage.pdc
    set_iobank -bank_name Bank0  \
        -vcci 1.80               \
        -fixed true             \
        -update_iostd true
    
    set_iobank -bank_name Bank1  \
        -vcci 3.30               \
        -fixed true             \
        -update_iostd true
    
    set_iobank -bank_name Bank4  \
        -vcci 3.30               \
        -fixed true             \
        -update_iostd true   
    
    


    Code Block
    titleTEM0007_Clock.pdc
    set_io -port_name REF_CLK_PAD_P  \
        -pin_name J19                \
        -DIRECTION INPUT
        
    set_io -port_name REF_CLK_PAD_N  \
        -pin_name J20                \
        -DIRECTION INPUT

    Code Block
    titleTEM0007_GPIOs.pdc
    set_io -port_name GPIO_2_2  \
        -pin_name D9              \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_3  \
        -pin_name D6              \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_4  \
        -pin_name C6              \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_7  \
        -pin_name B5              \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_8  \
        -pin_name C5              \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_9  \
        -pin_name C4              \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_11  \
        -pin_name F16             \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_12  \
        -pin_name D14             \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_13  \
        -pin_name E14             \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT
    
    set_io -port_name GPIO_2_14  \
        -pin_name B4              \
        -fixed true               \
        -io_std LVCMOS33          \
        -DIRECTION INOUT

    Code Block
    titleTEM0007_MAC.pdc
    set_io -port_name MAC_0_MDC \
        -pin_name H6 \
        -fixed true \
        -DIRECTION OUTPUT \
        -io_std LVCMOS33 
        
    set_io -port_name MAC_0_MDIO \
        -pin_name J3 \
        -fixed true \
        -DIRECTION INOUT \
        -io_std LVCMOS33
        

    Code Block
    titleTEM0007_MMUART0.pdc
     set_io -port_name MMUART_0_TXD \
        -pin_name C2 \
        -fixed true \
        -DIRECTION OUTPUT \
        -io_std LVCMOS33 
        
    set_io -port_name MMUART_0_RXD \
        -pin_name D3 \
        -fixed true \
        -DIRECTION INPUT \
        -io_std LVCMOS33

    Code Block
    titleTEM0007_MMUART1.pdc
    set_io -port_name MMUART_1_TXD \
        -pin_name H5 \
        -fixed true \
        -DIRECTION OUTPUT \
        -io_std LVCMOS33 
        
    set_io -port_name MMUART_1_RXD \
        -pin_name H2 \
        -fixed true \
        -DIRECTION INPUT \
        -io_std LVCMOS33 

    Code Block
    titleTEM0007_Peripheral.pdc
    set_io -port_name USER_PWM0    \
        -pin_name D7    \
        -fixed true    \
        -io_std LVCMOS33  \
        -RES_PULL Down \
        -DIRECTION OUTPUT
        	
    set_io -port_name USER_IN0 \
        -pin_name V19 \
        -fixed true \
        -DIRECTION INPUT
        
    set_io -port_name USER_OUT0 \
        -pin_name AB19 \
        -fixed true \
        -DIRECTION OUTPUT
    
    # JM2-Pin73/ JB2-Pin74 / B13_L16_N (Suitable for modified TE0703)      
    #set_io -port_name RESETN  \
        -pin_name H13         \
        -fixed true           \
        -io_std LVTTL         \
        -CLAMP_DIODE OFF      \
        -RES_PULL Up          \
        -DIRECTION INPUT
    
    # JM2-Pin55 TEM0007 / JB2-Pin56 (SRST) TEB2000 / B13_L9_P   
    set_io -port_name RESETN  \
        -pin_name E15         \
        -fixed true           \
        -io_std LVTTL         \
        -CLAMP_DIODE OFF      \
        -RES_PULL Up          \
        -DIRECTION INPUT
        
    
    
    Code Block
    titleTEM0007_QSPI.pdc
    set_io -port_name QSPI_CLK  \
        -pin_name C10           \
        -fixed true             \
        -io_std LVCMOS33        \
        -DIRECTION INOUT
    
    set_io -port_name QSPI_DATA_0  \
        -pin_name D13              \
        -fixed true                \
        -io_std LVCMOS33           \
        -DIRECTION INOUT
    
    set_io -port_name QSPI_DATA_1  \
        -pin_name B12              \
        -fixed true                \
        -io_std LVCMOS33           \
        -DIRECTION INOUT
    
    set_io -port_name QSPI_DATA_2  \
        -pin_name C9               \
        -fixed true                \
        -io_std LVCMOS33           \
        -DIRECTION INOUT
    
    set_io -port_name QSPI_DATA_3  \
        -pin_name C12              \
        -fixed true                \
        -io_std LVCMOS33           \
        -DIRECTION INOUT
    
    set_io -port_name QSPI_SEL  \
        -pin_name A13           \
        -fixed true             \
        -io_std LVCMOS33        \
        -DIRECTION INOUT

    Code Block
    titleMPFS_TEM0007_BASE_DESIGN_derived_constraints.sdc
    create_generated_clock -name {CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/OUT0} -multiply_by 5 -source [ get_pins { CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/REF_CLK_0 } ] -phase 0 [ get_pins { CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/OUT0 } ]
    create_generated_clock -name {CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/OUT1} -multiply_by 5 -source [ get_pins { CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/REF_CLK_0 } ] -phase 0 [ get_pins { CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/OUT1 } ]
    create_generated_clock -name {CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/OUT2} -multiply_by 5 -source [ get_pins { CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/REF_CLK_0 } ] -phase 0 [ get_pins { CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/OUT2 } ]
    create_generated_clock -name {CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/OUT3} -multiply_by 2 -source [ get_pins { CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/REF_CLK_0 } ] -phase 0 [ get_pins { CLOCKS_AND_RESETS_inst_0/CCC_FIC_x_CLK/PF_CCC_C0_0/pll_inst_0/OUT3 } ]
    create_generated_clock -name {CLOCKS_AND_RESETS_inst_0/PF_CLK_DIV_C1_0/PF_CLK_DIV_C1_0/I_CD/Y_DIV} -edges {1 7 11} -source [ get_pins { CLOCKS_AND_RESETS_inst_0/PF_CLK_DIV_C1_0/PF_CLK_DIV_C1_0/I_CD/A } ] [ get_pins { CLOCKS_AND_RESETS_inst_0/PF_CLK_DIV_C1_0/PF_CLK_DIV_C1_0/I_CD/Y_DIV } ]
    set_false_path -through [ get_nets { FIC_0_PERIPHERALS_1/DMA_INITIATOR_inst_0/ARESETN* } ]
    set_false_path -through [ get_nets { FIC_0_PERIPHERALS_1/FIC0_INITIATOR_inst_0/ARESETN* } ]
    
    

    Software Design - SoftConsole

    Scroll Ignore


    Page properties
    hiddentrue
    idComments
    Note:
    • Optional chapter separate

    • Sections for different apps

    Page properties
    hiddentrue
    idComments

    Describe How to generate / compile the application . Use sections for different applications .

    E.g. :
    Create a project / the specific required project type in Softconsole , integrate the sources from the Trenz Board Download , setup the build chain and configure Debug and Compile Profiles .

    Application

    Page properties
    hiddentrue
    idComments

    ----------------------------------------------------------

    General Example:

    Template location: <project folder>/softconsole_source/

    Hart Software Services (HSS)

     Hart Software Services (HSS) code on PolarFire SoC, is comprised of two portions:

    • A superloop monitor running on the E51 minion processor, which receives requests from the individual U54 application processors to perform certain services on their behalf.

    • A Machine-Mode software interrupt trap handler, which allows the E51 to send messages to the U54s, and request them to perform certain functions for it related to rebooting a U54.

    The HSS performs boot and system monitoring functions for PolarFire SoC. The HSS is compressed (DEFLATE) and stored in eNVM. On power-up, a small decompressor wrapper inflates the HSS from eNVM flash to L2-Scratchpad memory and starts the HSS.

    Creating HSS workspace in SoftConsole

    1. Download the test board design zip file in the following path : TEM0007 "Test Board" Reference Design
    2. Unzip the test board zip file
    3. Copy the HSS folder (hart-software-services-<HSS version>) from softconsole_source folder in the SoftConsole workspace folder
    4. Open SoftConsole software as administrator
    5. Select correct directory as workspace directory. The workspace folder must consist of hart-software-services-<HSS version> folder. The hart-software-services-<HSS version> project can be imported in the workspace as an Existing project.
    6. Left click on board folder
    7. There is created already a subfolder for TEM0007 module and HSS is ready to be compiled as shown:
      Expand
      titleTEM0007 HSS

      Image Added

    8. Right click on hart-software-services-<HSS version> and click on Build project to compile it.
    9. It is ready to program created hex file  on the Polarfire SoC. See Programming eNVM

    Note that HSS can be changed for every TEM0007 variant. Therefore the hex file for every variant  is created  and saved in the following path of test design folder separately: (<project folder>/prebuilt/soctware/<short name of the module variant>)

    Creating XML file in PolarfireSoC MSS Configurator Software

    To create HSS file for a desired module variant the saved MSS configuration xml file in "<softconsole workspace folder>/ hart-software-services-<HSS version>/board/TEM0007/soc_fpgs_design/xml/" must be matched for its related xml file. To do it:

    1. Open the PolarfireSoC MSS  Configurator  software.
    2. Click on Project→Open
    3. Select the generated TEM0007_MSS.cfg file that is saved in the "<project folder>/prebuilt/mss/<short name of the module variant>" folder.
    4. Click on Generate icon. It will be opened a window to enter the desired path for generated xml file.
      Expand
      titleCreating xml file

      Image Added

    5. MSS configuration xml file is generated. This file must be imported in SoftConsole software. To import this file copy the generated MSS configuration xml file and replace it with previous xml file in the following path : "<softconsole workspace folder>/ hart-software-services-<HSS version>/boards/TEM0007/soc_fpga_design/xml"
    6. Right click on the project in SoftConsole software and click on Clean Project.
    7. In SoftConsole software delete all configuration header files in  "<softconsole workspace folder>/ hart-software-services-<HSS version>/boards/TEM0007/fpga_design-config"folder.
      Expand
      titleDelete configuration header files

      Image Added


    8. Right click on the project in SoftConsole software again and click on Build Project to compile the project.
    9. The new configuration header files will be generated again by the python script in "<softconsole workspace folder>/ hart-software-services-<HSS version>/tools/polarfire-soc-configuration-generator/mpfs_configuration_generator.py "folder. The generated hex file can be found in the  "<softconsole workspace folder>/ hart-software-services-<HSS version>/Default " folder.
    10. This new hex file must be replaced in Libero to generate new Bitstream file, if this hex file should be attached in Bitstream file. See Libero SoC
      Note that this hex file can be programmed in eNVM in SoftConsole directly. See Programming eNVM in SoftConsole

    Software Design - Yocto

    Scroll Ignore

    Page properties
    hiddentrue
    idComments

    Describe how to generate / compile the Linux distribution .

    E.g. :
    Software Requirements for the Compiling OS , obtaining the sources and adding the sources from the Trenz Board Download , running the compilation script .

    The host pc must be prepared for using the yocto. For more information about host pc setup for yocto and the required packets please refer to System Requirements

    Trenz electronic has developed his own BSP for Microchip devices same as polarfire soc in Yocto. In the following will be explained the folders in detail.

    meta-trenz-polarfire-bsp FolderDescription
    recipes-apps*Consists of start up application for executing of init.sh by booting. More application can be saved in this folder.
    recipes-bspConsists of uboot required files same as *.bbappend files, device tree and etc.
    recipes-coreConsists of *.bb file for Trenz defined image version. This file consists of required packets or files that must be installed.
    recipes-kernelConsists of kernel required files same as *.bbappend files, device tree, config files and etc.
    recipes-toolsConsists of a *.bbappend file.
    tools

    Consists of manifest xml file to define meta data that are required.

    wic

    Consists of *.wks file that describes disk image properties.

    *Note: In this version is not used.

    In the following table exists more information about required packets and supported version.

    Meta dataSupported VersionDescription
    meta-riscvKirkstone
    openembedded-coreKirkstone
    meta-openembeddedKirkstone
    meta-polarfire-soc-yocto-bsp2022.11

    Trenz BSP contains of a shell script. If this shell script is executed , all required processes for making a linux image file will be executed automatically. The user needs only to write the generated image file on the SD card. To prepare the image file :

    1. Create a new folder (for example TEM0007) in host linux ( here Ubuntu18.04 and Ubuntu 20.04 have been tested )
    2. Download the test board design as zip file (See Download) and save meta-trenz-polarefile-bsp BSP folder from  "<project folder>/os/yocto/ " folder in the created folder. (for example TEM0007) 
    3. Go to the created folder (for example TEM0007) that meta-trenz-polarfire-bsp is saved  and execute its shell script as shown:
      Expand
      titleExecute shell script
      Code Block
      themeMidnight
      linenumberstrue
      	. ./meta-trenz-polarfire-bsp/trenz_polarfire_setup.sh
      *Note: The shell script must be executed in created new folder (for example TEM0007) that has bsp folder saved in it.
    4. After compiling image file *.img and its converted zip file *.zip will be saved in trenz bsp folder:
      •  " <trenz BSP folder>/prebuilt/boot/yocto/SD_Card.img "
      •  " <trenz BSP folder>/prebuilt/boot/yocto/SD_Card.zip "

    U-Boot

    Page properties
    hiddentrue
    idComments

    Please update the listing of ... .

    File location: <trenz BSP folder>/recipes-bsp/u-boot/

    Changes:

    • CONFIG_PHY_MARVELL=y

    • CONFIG_DEFAULT_DEVICE_TREE="tem0007"

    • CONFIG_DEFAULT_FDT_FILE="tem0007.dtb"

    • CONFIG_OF_LIST="tem0007"

    • CONFIG_DM_GPIO=y

    • CONFIG_CMD_GPIO=y

    • CONFIG_LOG=y

    • CONFIG_LOG_MAX_LEVEL=y

    • CONFIG_LOG_CONSOLE=y

    • CONFIG_NVMEM=y  → to be able to read MAC vom EEPROM

    • CONFIG_DM_RTC=y

    Device Tree

    Page properties
    hiddentrue
    idComments

    Please insert the Device Tree files into the Codeblocks below . Add or remove Codeblocks if necessary

    U-boot Device Tree

    Code Block
    languagejs
    titletem0007.dtsi
    // SPDX-License-Identifier: (GPL-2.0 OR MIT)
    /*
     * Copyright (C) 2020 Microchip Technology Inc.
     * Padmarao Begari <padmarao.begari@microchip.com>
     */
    
    / {
    	aliases {
    		cpu1 = &cpu1;
    		cpu2 = &cpu2;
    		cpu3 = &cpu3;
    		cpu4 = &cpu4;
    	};
    };
    Code Block
    titletem0007.dts
    // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
    /*
     * Copyright (C) 2021 Microchip Technology Inc.
     * Padmarao Begari <padmarao.begari@microchip.com>
     */
    
    /dts-v1/;
    
    #include "microchip-mpfs.dtsi"
    #include "dt-bindings/gpio/gpio.h"
    
    /* Clock frequency (in Hz) of the rtcclk */
    #define RTCCLK_FREQ		1000000
    
    / {
    	model = "Microchip PolarFire-SoC Icicle Kit";
    	compatible = "microchip,mpfs-icicle-kit", "microchip,mpfs";
    
    	aliases {
    		serial1 = &uart1;
    		ethernet0 = &mac0;
    		spi0 = &qspi;
    	};
    
    	chosen {
    		stdout-path = "serial1";
    	};
    
    	cpus {
    		timebase-frequency = <RTCCLK_FREQ>;
    	};
    
    	ddrc_cache: memory@80000000 {
    		device_type = "memory";
    		reg = <0x0 0x80000000 0x0 0x40000000>;
    		clocks = <&clkcfg CLK_DDRC>;
    		status = "okay";
    	};
       
        usb_phy: usb_phy {
            #phy-cells = <0>;
            compatible = "usb-nop-xceiv";
            reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
            reset-names = "OTG_RST";
        };    
    };
    
    &uart1 {
    	status = "okay";
    };
    
    &mmc {
    	status = "okay";
    	bus-width = <4>;
    	disable-wp;
    	cap-mmc-highspeed;
    	cap-sd-highspeed;
        cd-debounce-delay-ms;
    	card-detect-delay = <200>;
    	// mmc-ddr-1_8v;
    	// mmc-hs200-1_8v;
    	sd-uhs-sdr12;
    	sd-uhs-sdr25;
    	sd-uhs-sdr50;
    	sd-uhs-sdr104;
    };
    
    &i2c1 {
    	status = "okay";
        #address-cells = <1>;
    	#size-cells = <0>;
    	eeprom: eeprom@50 {
    		compatible = "microchip,24aa025", "atmel,24c02";
            //compatible = "atmel,24c02";
    		reg = <0x50>;
    		#address-cells = <1>;
    		#size-cells = <1>;        
    		eth0_addr: eth-mac-addr@FA {
    			reg = <0xFA 0x06>;
    		};
    	};
    };
    
    &refclk {
    	clock-frequency = <125000000>;
    };
    
    &mac1 {
    	status = "disabled";
    };
    
    &mac0 {
    	status = "okay";
    	phy-mode = "sgmii";
        nvmem-cells = <&eth0_addr>;
    	nvmem-cell-names = "mac-address";
    	phy-handle = <&phy0>;
    	phy0: ethernet-phy@1 {
    		device-type = "ethernet-phy";
    		reg = <1>;       
            reset-names = "ETH_RST";
            reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
    	};
    };
    
    
    
    &qspi {
    	status = "okay";
    	num-cs = <1>;
    	flash0: spi-nor@0 {
    		compatible = "spi-nor";
    		reg = <0x0>;
    		spi-tx-bus-width = <4>;
    		spi-rx-bus-width = <4>;
    		spi-max-frequency = <20000000>;
    		spi-cpol;
    		spi-cpha;
    	};
    };
    
    &usb
  • ...
  • System Design - Libero

    Scroll Ignore
    Page properties
    hiddentrue
    idComments

    Note:

    • Description of Block Design - Project, Block Design - Platform Designer, ... Block Design Pictures from Export...

    Block Design

    The block designs may differ depending on the assembly variant.

    Scroll Title
    title-alignmentcenter
    titleBlock Design

    Image Removed

    HPS Interfaces

    Activated interfaces:

    TypeNoteDDR--EMAC0--EMAC1--GPIO0--GPIO1--GPIO2--I2C0--I2C1--QSPI--SDMMC--UART0--UART1--USB0--USB1--CAN0--CAN1--

    Software Design - SoftConsole

    Scroll Ignore
    Page properties
    hiddentrue
    idComments
    Note:
    • optional chapter separate

    • sections for different apps

    Application

    Page properties
    hiddentrue
    idComments

    ----------------------------------------------------------

    General Example:

    hello_tei0006

    Hello TEI0006 is a Hello World example as endless loop instead of one console output.

    Used software project depends on board assembly variant. Template location: <project folder>/source_files/software/

    ...

    HSS (Hart Software Service)

    This is Hart Software Services (HSS) code.On PolarFire SoC, this is comprised of two portions:

    • A superloop monitor running on the E51 minion processor, which receives requests from the individual U54 application processors to perform certain services on their behalf;

    • A Machine-Mode software interrupt trap handler, which allows the E51 to send messages to the U54s, and request them to perform certain functions for it related to rebooting a U54.

    The HSS performs boot and system monitoring functions for PolarFire SoC. The HSS is compressed (DEFLATE) and stored in eNVM. On power-up, a small decompressor wrapper inflates the HSS from eNVM flash to L2-Scratchpad memory and starts the HSS.

    Creating HSS workspace in SoftConsole
  • Download the HSS folder here: hart-software-services
  • Unzip the hart-software-services-master zip file in the SoftConsole workspace
  • Open SoftConsole software as administrator
  • Select correct directory as workspace directory. The workspace folder must consist of hart-software-services-master folder
  • Right click on board folder in the left side and click on new folder
  • Rename the folder for desired board. For example for TEM0007 module rename it to TEM0007. If there is TEM0007, this HSS workspace was created already and HSS is ready to be compiled.
  • Create other subfolders as shown (For example for TEM0007):
    Expand
    titleHSS Structure Example

    Image Removed

    • hart-software-serevices-master
      • board
        • TEM0007
          • drivers_config
            • fpga_ip
              • miv_ihc
                • Copy miv_ihc_add_mapping.h and miv_ihc_config.h files from original folder of icicle kit board ( mpfs-icicle-kit-es ) and paste in this folder.
          • fpga_design_config
            • This folder should be left empty. After compiling the neccessary header files for ddr, clock, IOs and other properties of desired module and hardware design will be generated and saved in this folder by mpfs_configuration_generator.py python script. The python script is saved already in the tools/polarfire-soc-configuration-generator folder.
          • mpfs_hal_config
            • Copy  mss_sw_config.h file from original folder of icicle kit board ( mpfs-icicle-kit-es ) and paste
          • soc_fpga_design
            • xml
              • Copy the generated xml with PolarFireSoC MSS Configurator software here. For example TEM0007_MSS_mss_cfg.xml
          • Copy the following files from original folder of icicle kit board ( mpfs-icicle-kit-es ) and paste in this folder (TEM0007 folder) :
            • hss_board_init.c
            • hss_usrt_init.c
            • usrt_helper.c
            • hss_I2Scratch.lds
            • Kconfig
              • Edit Kconfig for example for TEM0007 module as shown:
                Expand
                titleKconfig
                Code Block
                titleKconfig
                menu "TEM0007 Design Configuration Options"
                
                config SOC_FPGA_DESIGN_XML
                	string "Enter path to Libero XML file"
                	default "boards/$(BOARD)/soc_fpga_design/xml/TEM0007_MSS_mss_cfg.xml"
                	help
                		This option specifies the design XML file to use.
                endmenu
                
                
              • Makefile
                • Edit Makefile for example for TEM0007 module as shown:
                  Expand
                  titleMakefile of TEM0007 folder
                  Scroll Title
                  title-alignmentcenter
                  titleMakefile of TEM0007 folder

                  Image Removed

      • Edit Makefile in hart-software-services-master Folder for example for TEM0007 as shown:
        Expand
        titleMakefile of hart-software-services-master
        Scroll Title
        title-alignmentcenter
        titleMakefile of hart-software-services-master folder

        Image Removed

      • Copy def_config file from original folder of icicle kit board ( mpfs-icicle-kit-es ) and paste it in hart-software-services-master folder and rename it to .config file.
        • Edit .config file according to your module. For example for TEM0007 is edited this file as shown:
          Expand
          title.config File
          Scroll Title
          title-alignmentcenter
          title.config File

          Image Removed

      • Now HSS workspace is ready to be compiled. Right click on hart-software-services-master and  click on Build Project.
      • After compiling a config.h will be generated in the hart-software-services-master folder. By opening this header file it can be seen all configurations of .config file.

    Software Design - Yocto

    Scroll Ignore

    Trenz electronic has developed his own BSP for Microchip devices same as polarfire soc in Yocto. In the following will be explained the folders in detail.

    meta-trenz-polarfire-bsp FolderDescriptionrecipes-appsContains of start up application for executing of init.sh by booting.recipes-bspContains of uboot necessary files same as *.bbappend files, device tree and etc.recipes-coreContains of *.bb file for Trenz defined image version. In this file are defined necessary packets or files that must be installed in linux.recipes-kernelContains of kernel necessary files same as *.bbappend files, device tree, config files and etc.recipes-toolsContains of *.bbappend filetools

    Contains of manifest xml file to define necessary meta data that are required.

    In the following table exists more information about required packets and supported version.

    Meta dataSupported VersionDescriptionmeta-riscvKirkstoneopenembedded-coreKirkstonemeta-openembeddedKirkstonemeta-polarfire-soc-yocto-bsp2022.11

    Trenz BSP contains of a shell script. If this shell script in be executed , all required processes for making a linux image file will be executed. The user needs only to write the image file on the SD card. To prepare the image file :

    1. Download and save meta-trenz-polarefile-bsp folder in the host linux
    2. Expand
      titleIn meta-trenz-polarfire-bsp execute shell script via the following command:
      Code Block
      themeMidnight
      linenumberstrue
      	. ./meta-trenz-polarfire-bsp/trenz_polarfire_setup.sh
    3. Expand
      titleEnter the machine name. Here the machine is equal to module name , but with lower case letters. For example for TEM0007 module enter : tem0007

      Image Removed

    4. Expand
      titleEnter the image type. It depends on the user application and required installed packages in linux. As default the user can enter: te-image-minimal

      Image Removed

    5. After compiling image file *.img and its converted zip file *.zip will be in trenz bsp folder saved :
      • <trenz bsp folder>/prebuilt/boot/yocto/SD_Card.img
      • <trenz bsp folder>/prebuilt/boot/yocto/SD_Card.zip

    For Yocto installation and project creation, follow instructions from:

    U-Boot

    Start with Create a custom BSP layer for Microchip SoC or FPGA#Configure u-boot

    File location: meta-<module>/recipes-bsp/u-boot/

    Changes:

    • No changes

    Device Tree

    U-boot Device Tree

    Code Block
    languagejs
    titletem0007.dtsi
    // SPDX-License-Identifier: (GPL-2.0 OR MIT)
    /*
     * Copyright (C) 2020 Microchip Technology Inc.
     * Padmarao Begari <padmarao.begari@microchip.com>
     */
    
    / {
    	aliases {
    		cpu1 = &cpu1;
    		cpu2 = &cpu2;
    		cpu3 = &cpu3;
    		cpu4 = &cpu4;
    	};
    };
    Code Block
    titletem0007.dts
    // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
    /*
     * Copyright (C) 2021 Microchip Technology Inc.
     * Padmarao Begari <padmarao.begari@microchip.com>
     */
    
    /dts-v1/;
    
    #include "microchip-mpfs.dtsi"
    #include "dt-bindings/gpio/gpio.h"
    
    /* Clock frequency (in Hz) of the rtcclk */
    #define RTCCLK_FREQ		1000000
    
    / {
    	model = "Microchip PolarFire-SoC Icicle Kit";
    	compatible = "microchip,mpfs-icicle-kit", "microchip,mpfs";
    
    	aliases {
    		serial1 = &uart1;
    		ethernet0 = &mac0;
    		spi0 = &qspi;
    	};
    
    	chosen {
    		stdout-path = "serial1";
    	};
    
    	cpus {
    		timebase-frequency = <RTCCLK_FREQ>;
    	};
    
    	ddrc_cache: memory@80000000 {
    		device_type = "memory";
    		reg = <0x0 0x80000000 0x0 0x40000000>;
    		clocks = <&clkcfg CLK_DDRC>;
    		status = "okay";
    	};
       
        usb_phy: usb_phy {
            #phy-cells = <0>;
            compatible = "usb-nop-xceiv";
            reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
            reset-names = "OTG_RST";
        };    
    };
    
    &uart1 {
    	status = "okay";
    };
    
    &mmc {
    	status	dr_mode = "otg";  
    	// dr_mode = "okayhost";
    	bus-widthphys = <4><&usb_phy>;
    	disable-wp};
    	cap-mmc-highspeed;
    	cap-sd-highspeed;
        cd-debounce-delay-ms;
    	card-detect-delay = <200>;
    	// mmc-ddr-1_8v;
    	// mmc-hs200-1_8v;
    	sd-uhs-sdr12;
    	sd-uhs-sdr25;
    	sd-uhs-sdr50;
    	sd-uhs-sdr104;
    };
    
    &i2c1 {
    	status = "okay";
        
    
    


    Kernel Device Tree

    Code Block
    languagejs
    titletem0007.dts
    // SPDX-License-Identifier: (GPL-2.0 OR MIT)
    /* Copyright (c) 2020-2021 Microchip Technology Inc */
    
    /dts-v1/;
    
    #include "mpfs.dtsi"
    
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/phy/phy.h>
    
    /* Clock frequency (in Hz) of the rtcclk */
    #define MTIMER_FREQ		1000000
    
    / {
    	#address-cells = <1><2>;
    	#size-cells = <0><2>;
    
    	eeprom: eeprom@50 {
    		    
    	model = "Trenz TEM0007";
    	compatible = "microchiptrenz,24aa025tem0007", "atmelmicrochip,24c02mpfs";
            //compatible = "atmel,24c02";
    	aliases {
    		regethernet0 = <0x50>&mac0;
    		#address-cellsserial0 = <1>&mmuart0;
    		#size-cellsserial1 = <1>;        &mmuart1;
    		eth0_addr: eth-mac-addr@FA {
    			reg = <0xFA 0x06>;
    		};
    	};
    };
    
    &refclk {
    	clock-frequency = <125000000>;
    };
    
    &mac1 {
    	status = "disabled";
    };
    
    &mac0 {
    	status = "okay";
    	phy-mode = "sgmii";
        nvmem-cells = <&eth0_addr>;
    	nvmem-cell-names = "mac-address";
    	phy-handle = <&phy0>;
    	phy0: ethernet-phy@1serial2 = &mmuart2;
    		serial3 = &mmuart3;
    		serial4 = &mmuart4;
    	};
    
    	chosen {
    		stdout-path = "serial1:115200n8";
    	};
    
    	cpus {
    		timebase-frequency = <MTIMER_FREQ>;
    	};
    
    
    
    	//******************************************************//
    
    	ddrc_cache: memory@80000000 {
    		device-_type = "ethernet-phymemory";
    		reg = <1>;<0x0       
            reset-names = "ETH_RST";
            reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
    	};
    };
    
    
    
    &qspi {
    0x80000000 0x0 0x40000000>;
    		status = "okay";
    	num-cs = <1>;
    	flash0: spi-nor@0 {
    		compatible = "spi-nor"};
    
    	reserved-memory {	
    		#address-cells = <2>;
    		reg#size-cells = <0x0>;<2>;
    
    		ranges;
    
    		spi-tx-bus-width = <4>;
    		spi-rx-bus-width = <4>;
    		spi-max-frequency = <20000000>;
    		spi-cpol;
    		spi-cpha;
    	};
    };
    
    &usb {
    	status = "okay";
    	dr_mode = "otg";  
    	// dr_mode = "host";
    	phys = <&usb_phy>;
    };
    
    

    Kernel Device Tree

    Code Block
    languagejs
    titletem0007.dts
    // SPDX-License-Identifier: (GPL-2.0 OR MIT)
    /* Copyright (c) 2020-2021 Microchip Technology Inc */
    
    /dts-v1/;
    
    #include "mpfs.dtsi"
    
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/phy/phy.h>
    
    /* Clock frequency (in Hz) of the rtcclk */
    #define MTIMER_FREQ		1000000
    
    / {
    	#address-cells = <2>;
    	#size-cells = <2>;
    
        
    	model = "Trenz TEM0007";
    	compatible = "trenz,tem0007","microchip,mpfs";
        
    	aliases {
    		ethernet0 = &mac0;
    		serial0 = &mmuart0;
    		serial1 = &mmuart1;
    		serial2 = &mmuart2;
    		serial3 = &mmuart3;
    		serial4 = &mmuart4;
    	};
    
    	chosen {
    		stdout-path = "serial1:115200n8";
    	};
    
    	cpus {
    		timebase-frequency = <MTIMER_FREQ>;
    	};
    
    
    
    	//******************************************************//
    
    	ddrc_cache: memory@80000000 {
    		device_type = "memory";
    		reg = <0x0 0x80000000 0x0 0x40000000>;
    		status = "okay";
    	};
    
    	reserved-memory {	fabricbuf0ddrc: buffer@A0000000 {
    			compatible = "shared-dma-pool";
    			reg = <0x0 0xA0000000 0x0 0x2000000>;
    			no-map;
    		};
    	};
        
    	udmabuf0 {
    		compatible = "ikwzm,u-dma-buf";
    		device-name = "udmabuf-ddr-c0";
    		minor-number = <0>;
    		size = <0x0 0x2000000>;
    		memory-region = <&fabricbuf0ddrc>;
    		sync-mode = <3>;
    	};
    
    
    	//******************************************************//
    
    	usb_phy: usb_phy {
    		#phy-cells = <0>;
    		compatible = "usb-nop-xceiv";
    		reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
    		reset-names = "OTG_RST";
    	};
    
    
    	soc {
    		dma-ranges = <0 0 0 0 0x40 0>;
    	};
    };
    
    &gpio1 {
    	status = "okay";
    };
    
    &gpio2 {
    	interrupts = <53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>;
    	status = "okay";
    };
    
    &i2c0 {
    	status = "okay";
    };
    
    &i2c1 {
    	status = "okay";    
    	#address-cells = <1>;
    	#size-cells = <0>;
    
    	eeprom: eeprom@50 {
    		compatible = "microchip,24aa025", "atmel,24c02";
            //compatible = "atmel,24c02";
    		reg = <0x50>;
    		#address-cells = <2><1>;
    		#size-cells = <2>;
    
    		ranges;
    
    		fabricbuf0ddrc: buffer@A0000000 {
    			compatible = "shared-dma-pool";<1>;        
    		eth0_addr: eth-mac-addr@FA {
    			reg = <0x0 0xA0000000 0x0 0x2000000><0xFA 0x06>;
    			no-map};
    		};
    	};
        
    
    &mac0 {
    	udmabuf0 {
    		compatiblestatus = "okay";
    	phy-mode = "ikwzm,u-dma-bufsgmii";    
    		device-namenvmem-cells = <&eth0_addr>;
    	nvmem-cell-names = "udmabufmac-ddr-c0";
    		minor-number = <0>;
    		size = <0x0 0x2000000>;
    		memory-regionaddress";
                                       
    	phy-handle = <&fabricbuf0ddrc>phy0>;
    		sync-mode = <3>;
    	};
    
    
    	//******************************************************//
    
    	usb_phy: usb_phy {
    		#phy-cells = <0>;
    		compatible = "usb-nop-xceivphy0: ethernet-phy@1 {
    		device-type = "ethernet-phy";
    		reg = <1>;
    		reset-names = "ETH_RST";
    		reset-gpios = <&gpio1 1716 GPIO_ACTIVE_LOW>;
    		reset-names};
    };
    
    &mbox {
    	status = "OTG_RSTokay";
    	};
    
    &mmc {
    	soc {status = "okay";
    		dmabus-rangeswidth = <0 0 0 0 0x40 0>;
    	};
    };
    
    &gpio1 {
    	status = "okay";
    };
    
    &gpio2 {
    	interrupts = <53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>,
    		<53>, <53>, <53>, <53>;<4>;
    	disable-wp;
    	cap-sd-highspeed;
    	cap-mmc-highspeed;
    	// mmc-ddr-1_8v;
    	// mmc-hs200-1_8v;
    	sd-uhs-sdr12;
    	sd-uhs-sdr25;
    	sd-uhs-sdr50;
    	sd-uhs-sdr104;
    };
    
    
    &mmuart1 {
    	status = "okay";
    };
    
    &mmuart2 {
    	status = "okay";
    };
    
    &mmuart3 {
    	status = "okay";
    };
    
    &i2c0mmuart4 {
    	status = "okay";
    };
    
    
    &i2c1qspi {
    	status = "okay";    
    	#addressnum-cellscs = <1>;
    	#size-cells = <0>};
    
    	eeprom: eeprom@50&refclk {
    		compatibleclock-frequency = "microchip,24aa025", "atmel,24c02";
            //compatible = "atmel,24c02";
    		reg = <0x50>;
    		#address-cells = <1>;
    		#size-cells = <1>;        
    		eth0_addr: eth-mac-addr@FA {
    			reg = <0xFA 0x06>;
    		};
    	};
    };
    
    
    &mac0 {
    	status = "okay";
    	phy-mode = "sgmii";    
    	nvmem-cells = <&eth0_addr>;
    	nvmem-cell-names = "mac-address";
                                       
    	phy-handle = <&phy0>;
    	phy0: ethernet-phy@1 {
    		device-type = "ethernet-phy";
    		reg = <1>;
    		reset-names = "ETH_RST";
    		reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
    	};
    };
    
    &mbox {
    	status = "okay";
    };
    
    &mmc {
    	status = "okay";
    	bus-width = <4>;
    	disable-wp;
    	cap-sd-highspeed;
    	cap-mmc-highspeed;
    	// mmc-ddr-1_8v;
    	// mmc-hs200-1_8v;
    	sd-uhs-sdr12;
    	sd-uhs-sdr25;
    	sd-uhs-sdr50;
    	sd-uhs-sdr104;
    };
    
    
    &mmuart1 {
    	status = "okay";
    };
    
    &mmuart2 {
    	status = "okay";
    };
    
    &mmuart3 {
    	status = "okay";
    };
    
    &mmuart4 {
    	status = "okay";
    };
    
    
    &qspi {
    	status = "okay";
    	num-cs = <1>;
    };
    
    &refclk {
    	clock-frequency = <125000000>;
    };
    
    
    &spi0 {
    	status = "okay";
    };
    
    
    &usb {
    	status = "okay";
    	dr_mode = "otg";  
    	// dr_mode = "host";
    	phys = <&usb_phy>;
    };
    
    &syscontroller {
        status = "okay";
    };
        
    
    

    Kernel

    Start withCreate a custom BSP layer for Intel SoC or FPGA#Configure linux kernel
    <125000000>;
    };
    
    
    &spi0 {
    	status = "okay";
    };
    
    
    &usb {
    	status = "okay";
    	dr_mode = "otg";  
    	// dr_mode = "host";
    	phys = <&usb_phy>;
    };
    
    &syscontroller {
        status = "okay";
    };
        
    
    

    Kernel

    Page properties
    hiddentrue
    idComments

    Please update the listing of ... .

    File location: <trenz BSP folder>/recipes-kernel/linux/

    Changes:

    • CONFIG_CMDLINE_BOOL=y

    • CONFIG_CMDLINE="earlycon=sbi root=/dev/mmcblk0p3 rootwait uio_pdrv_genirq.of_id=generic-uio"

    • CONFIG_EEPROM_AT24=y

    • CONFIG_NVMEM=y

    • CONFIG_NVMEM_SYS=y

    • CONFIG_REGMAP_I2C=y

    • CONFIG_MARVELL_PHY=y
    • CONFIG_LEDS_GPIO=y

    • CONFIG_LEDS_CLASS=y

    • CONFIG_NEW_LEDS=y

    • CONFIG_GPIOLIB=y

    • CONFIG_USB_MUSB_HOST=y

    • CONFIG_USB_MUSB_DUAL_ROLE=y

    • CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=n

    • CONFIG_MTD_UBI=y

    • CONFIG_MTD_CMDLINE_PARTS=y

    • CONFIG_UBIFS_FS=y

    • CONFIG_MTD_SPI_NOR=y

    • CONFIG_OF_OVERLAY=y

    • CONFIG_OF_CONFIGFS=y

    • CONFIG_MFD_SENSEHAT_CORE=m

    • CONFIG_INPUT_JOYDEV=m

    • CONFIG_INPUT_JOYSTICK=y

    • CONFIG_JOYSTICK_SENSEHAT=m

    • CONFIG_AUXDISPLAY=y

    • CONFIG_SENSEHAT_DISPLAY=m

    • CONFIG_HTS221=m

    • CONFIG_IIO_ST_PRESS=m

    • CONFIG_IIO_ST_LSM6DSX=m

    • CONFIG_IIO_ST_MAGN_3AXIS=m

    • #CONFIG_MUSB_PIO_ONLY is not set

    • CONFIG_USB_INVENTRA_DMA=y

    Images

    Page properties
    hiddentrue
    idComments

    Please update the listing of ... .

    Image recipe for minimal console image

    File location: <trenz BSP folder>/recipes-core/images/

    Image recipes:

    • te-image-minimal.bb: create minimal linux image

    Added packages/recipes:

    • startup

    • iputils-ping

    • expect

    • rsync

    • rng-tools

    • iperf3

    • devmem2

    • can-utils

    • usbutils

    • pciutils

    • polarfire-soc-linux-examples

    • dt-overlay-mchp

    • libgpiod

    • libgpiod-tools

    • libgpiod-dev

    • i2c-tools

    • vim vim-vimrc

    • net-tools

    • htop

    • iw

    • python3

    • python3-pip

    • python3-flask

    • python3-flask-dev

    • python3-werkzeug

    • libudev

    • glib-2.0

    • sqlite3

    • dtc

    • cmake

    • tar

    • wget

    • zip

    • mtd-utils

    • mtd-utils-ubifs


    Rootfs

    Page properties
    hiddentrue
    idComments

    Please update the listing of ... .

    Used filesystem: Root file system (RootFS

    File location: meta-<module>/recipes-kernel/linux/

    Changes:

    • No changes.

    Images

    Image recipe for minimal console image

    File location: meta-<module>/recipes-images/yocto/

    Image recipes:

    • te-image-minimal.bb: create minimal linux image
    • te-initramfs.bb: required for building an image with initial RAM Filesystem

    Added packages/recipes:

    • No packages/recipes

    Rootfs

    Used filesystem: Initial RAM Filesystem (initramfs)

    Appx. A: Change History and Legal Notices

    Scroll Ignore
    scroll-pdftrue
    scroll-officetrue
    scroll-chmtrue
    scroll-docbooktrue
    scroll-eclipsehelptrue
    scroll-epubtrue
    scroll-htmltrue

    Document Change History

    To get content of older revision  got to "Change History"  of this page and select older document revision number.

    Page properties
    hiddentrue
    idComments
    • Note this list must be only updated, if the document is online on public doc!
    • It's semi automatically, so do following
      • Add new row below first

      • Copy "Page Information Macro(date)" Macro-Preview, Metadata Version number, Author Name and description to the empty row. Important Revision number must be the same as the Wiki document revision number Update Metadata = "Page Information Macro (current-version)" Preview+1 and add Author and change description. --> this point is will be deleted on newer pdf export template

      • Metadata is only used of compatibility of older exports


    Scroll Title
    anchorTable_dch
    title-alignmentcenter
    titleDocument change history

    Scroll Table Layout
    orientationportrait
    sortDirectionASC
    repeatTableHeadersdefault
    style
    widths2*,*,3*,4*
    sortByColumn1
    sortEnabledfalse
    cellHighlightingtrue

    DateDocument Revision

    Authors

    Description

    Page info
    infoTypeModified modified-datemodified- date
    dateFormatyyyy-MM-dd
    typeFlat

    Page info
    infoTypeCurrent version
    dateFormatyyyy-MM-dd
    prefixv.
    typeFlat

    Page info
    infoTypeModified by
    typeFlat

    • Release for more variants
    • The design is matched to new carrier board TEB2000.

    2023-11-13

    v.57

    Mohsen Chamanbaz

    • Clock frequency of LPDDR4 reduced to 500MHz.
    • USB and ethernet phys will be reset while booting.

    2023-09-08

    v.56

    Mohsen Chamanbaz

    • Update download path

    2023-09-07

    v.54

    Mohsen Chamanbaz

    • Initial release v2023.1
    --all

    Page info
    infoTypeModified users
    dateFormatyyyy-MM-dd
    typeFlat

    --


    Legal Notices

    Include Page
    IN:Legal Notices
    IN:Legal Notices




    Scroll Only


    HTML
    <style>
    .wiki-content .columnLayout .cell.aside {
    width: 0%;
    }</style>
    



    Scroll pdf ignore


    Custom_fix_page_content

    Table of contents

    Table of Contents
    outlinetrue