Template Revision 1.0 - on construction

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


<!-- tables have all same width (web max 1200px and pdf full page(640px), flexible width or fix width on menu for single column can be used as before) -->
<style>
.wrapped{
  width: 100% !important;
  max-width: 1200px !important;
 }
</style>


Important General Note:

  • Export PDF to download, if vivado 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):


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


        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)

      • ExampleComment
        12



  • ...


Table of contents

Overview

Notes :

This demo is a Webserver which utilizes SmartFusion2 SoC ARM Cortex-M3, Ethernet, USB / COM-port, Real Time Clock and the on-board LEDs.

The demo is offered in two variants, one which is stored into the embedded non-volatile memory (eNVM) and the seconde one which stored to the external DDR3/L SDRAM memory and therefore volatile.

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

Key Features

Notes :

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


  • Libero 12.4 (FPGA IDE)
  • SoftConsole 6.2 (Software IDE)
  • FreeRTOS V7.0.1 (Free real time operating system)
  • lwIP 1.4.1 (lightweight IP) 
  • ETH
  • UART
  • DDR
  • eNVM
  • User LED access
  • Real Time Clock

Revision History

Notes :

  • add every update file on the download
  • add design changes on description
  •  
  • Datum & Ordnernamen UPDATEN / CHECKEN


DateLiberoProject BuiltAuthorsDescription
2020-11-xy12.4TEM0002-SmartBerry_HelloWorld-Webserver_Libero-12.4_2020.11.xy-TimeKilian Jahn
  • Added "Hello World" (into SoftConsole workspace)
  • Demo Webserver ported from Libero 11.8
  • Improved its User Interface
2018-02-2611.8Smartberry_Webserver_Demo.zip--
  • Initial release


Release Notes and Know Issues

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


IssuesDescriptionWorkaround/SolutionTo be fixed version
Real time clock configurationClock source wrong set, a second takes ~30 secondUnknownUnknown


Requirements

Software

Notes :

  • list of software which was used to generate the design
  •  
  • ADD / Separate "Reference Design - Hello World" / DEMO into its own Requirements


SoftwareVersionNote
Windows 102004 / 19041
Libero Release12.4
SoftConsole6.2Included in the Libero installation
Microsemi Flash Pro 5 module driver2.10.0.0Utilize onboard programmer and USB / comport connection. Included in the Libero installation
FTDI Driver for the TEM0002 module2.12.28.0
UART / COM-port terminal
Capturing the modules messages
Web browser
Optional for the Demo Webserver, an ordinary Web browser (supporting MS-HTML > 6.0)


Hardware

Notes :

  • list of hardware which was used to generate the design

Design supports following modules:

Module ModelBoard Part Short NamePCB Revision SupportDDRembedded SRAMembedded FlashNotes
TEM0002-01-010CSmartBerryREV011 GBit / 128 MB64 kB256 kB       NA


Additional hardware Requirements:

Additional HardwareNotes
Demo host computerDemo was created and tested on windows
SmartBerry board
Micro USB to USB Type A CablePower supply,  JTAG: Programming the board, UART: Communication Interface to the board.
ETH cableOptional Hardware for the Demo Webserver.
Router / Lan to USB brifgeOptional Hardware for the Demo Webserver.


Content

Notes :

  • content of the zip file
  •  
  • Ordnernamen UPDATEN / CHECKEN

Content of the zip archive "TEM0002-SmartBerry_HelloWorld-Webserver_Libero-X.y_Datum-Time":

Design Sources

TypeLocationNotes

Revision History

Libero<zip archive>
      /Libero-X.y_Referenz-Design_XY

Libero Project containing

the System Design

SoftConsole<zip archive>
      /Softconsole-X.y-Workspace
            /Smartberry_Hello_World_X.y
            /Smartberry_Webserver_X.y
            /Smartberry_Webserver_DDR_X.y

SoftConsole Workspace
contains the Reference Design :

  • Hello_World_X.y

and two variants of the Demo :

  • Smartberry_Webserver_X.y
  • Smartberry_Webserver_DDR_X.y


Download

The Trenz Electronic Reference Designs and Demos are usable with the specified Libero / SoftConsole version. Usage of a different Microsemi / Libero / SoftConsole software versions is not recommended.

Reference Designs / Demos are available via the following link:

The download is a ZIP compressed archive. Extract the archive before usage.

Design Flow

Notes :
  • Basic Design Steps

  • Add/ Remove project specific description

The Hardware and Software Reference / Demo -Designs Projects are available as a prebuild zip archive. The archive contains at least a Libero Hardware Project and a SoftConsole Workspace folder, they were created and tested in windows environment.

This SoftConsole Workspace contains the Software Reference Design Hello World and the Demo Webserver, the demo is offered in two variants. For software development via the IDE SoftConsole a board configuration file "microsemi-smartfusion2-smartberry-ddr.cfg" is included.

Board configuration file

Copy the board configuration file "microsemi-smartfusion2-smartberry-ddr.cfg" along the following default installation path inside you Microsemi / SoftConsole installation into the folder board:

C:\Microsemi\SoftConsole_v6.2\openocd\share\openocd\scripts\board\

Launch

Note:

  • Programming and Startup procedure
  •  
  • UPDATE HW-Design path / NAME - Disk:\Path-to-the-Demo_archive\Smartberry_Webserver_Libero-12.4\
  • CHECK SW-Design path / NAME - Disk:\Path-to-the-Demo_archive\Softconsole-6.2-Workspace\
  • Ist das wirklich so? ... the ports IP of Host PC  and module must match,

Executing a Reference / Demo Design on a module requires the powering of it and a JTAG or UART Connection for Programming and Communication. Often the programming is a two fold process, where the first programming configures the FPGA and the second programming flashes Software code to be executed inside the FPGA / ARM processor.

Connecting

Connect the modules micro USB connector to your host pc, this enables the powering of the module and a simultaneous JTAG and UART connection .

Only necessary for running the Demo Webserver:
The demo is configured to establish a network connection via the DHCP protocol, therefore, if a a free router port is used, no further port setup is required.

If a "direct Ethernet Connection" between Host PC and module is used, the user must know how to setup this connection type. Further down in this chapter is explained how to setup the Demo Webserver and recompile it, so that it uses a static IP.

Driver check

When the module is connected via USB cable to your demo host computer, in the Windows Device Manager appear the following tree board driver related devices:

In section Ports (COM & LPT):

In section Universal Serial Bus controllers:

The Device Manager is accessible via "Right mouse click context menu" from the Windows Start Menu Button.

Programming Hardware design

Open Libero 12.4, in the to left corner, open the Webserver Demo hardware project inside the extracted ZIP download via   "Project > Open Project" and point the file dialogue to the demo archives hardware project:

Disk :\ Path-to-the-Demo-archive \ Extracted ZIP-archive \ Libero-X.y_Referenz-Design\

double left mouse click onto the project file "Referenz-Design_XY .prjx" to open it. The board is automatically selected and setup to be flashed by Libero.

In the upper left section of Libero, select the tab "Design Flow" (picture above - green rectangle) and flash it to the board via   "Program Design > and double left mouse click onto   Run PROGRAM Action" (picture above - row with blue background).

Warnings should not affect the functionality of a Reference / Demo -Design.

UART connection

Before flashing the Webserver Demo server application to the module, open a comport terminal to the boards comport, so that it's messages about the used IP Address and executed Demo-Variant can be captured.

demo into the module is a three fold process, programming the FPGA Design, establishing a COM-port terminal connection to the module and programming the web server program code into the modules FPGA's embedded flash or it's external DDR memory.

Programming Software project

Open SoftConsole 6.2 and press "Browse..." to point the "Workspace: " to the folder "Softconsole-6.2-Workspace" inside the demo folder.

Disk:\Path-to-the-Demo_archive\Softconsole-6.2-Workspace\

Subsequently the program opens and shows the software project's who are contained inside the workspace to the left, under "Project Explorer".


The demo is offered in two variants:



Before flashing the demo, open a comport terminal to the boards comport, so that its messages about the used IP Address and executed Demo-Variant can be captured.

To simply run the demo press the triangle right to the button marked with a "R" in the picture above and select a variant of the demo.


MOVE up to beginning!!!!!:------------------------

Pressing the triangle next to the button marked with "D" let you select which variant to be executed in debug mode.

Debug controls - Resume - Pause - Stop

Switch between Debug and Run perspective (upper right corner program window)

Demo Variants

The two demo projects "Smartberry_Webserver_6.2" and "Smartberry_Webserver_DDR_6.2" are identical variants of the demo, they only differ in their memory location. The first one is stored in embedded non volatile memory (eNVM) and the later is stored volatile in the external DDR ram and therefore lost during power down.

Static IP configuration

To disengaging the DHCP mode one has to setup up an IP and Gateway Address in the code unit "main.c" line 274. Alternativly, the demo hosts IP Address can be changed.

Furthermore the corresponding compiler flag needs to be deleted in the project setting. To do so, in the "Project Explorer" tab, right mouse click onto the project and select Properties in the appearing menu.

In the left section of the properties window select "C/C++ Build   >   Settings" in the right section select the tab "Tool Settings   >   GNU ARM Cross C Compiler   >   Preprocessor" under "Defined symbols (-D)" delete the compiler flag "NET_USE_DHCP" and press "Apply". Confirm the following dialogue and press "Cancel".

Lastly, the project needs to be recompiled. In the top menu of the SoftConsole select "Project   >   Build ALL / Build Project".

Warnings should not affect the demo. can be ignored.

Pictures of the Webserver pages

Open a new tab in a web browser and enter the IP Address from the comport terminal. The start page, picture below, should appear immediately.





System Design - Libero

Note:

  • Description of Block Design, Constrains... BD Pictures from Export...

Smart Design


Constrains

set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design]
set_property BITSTREAM.CONFIG.UNUSEDPIN PULLNONE [current_design]



Software Design - SoftConsole

Note:
  • optional chapter separate

  • sections for different apps

Application

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

FPGA Example

scu

MCS Firmware to configure SI5338 and Reset System.

srec_spi_bootloader

TE modified 2019.2 SREC

Bootloader to load app or second bootloader from flash into DDR

Descriptions:

  • Modified Files: blconfig.h, bootloader.c
  • Changes:
    • Add some console outputs and changed bootloader read address.
    • Add bugfix for 2018.2 qspi flash

xilisf_v5_11

TE modified 2019.2 xilisf_v5_11

  • Changed default Flash type to 5.

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

Zynq Example:

zynq_fsbl

TE modified 2019.2 FSBL

General:

  • Modified Files:main.c, fsbl_hooks.h/.c (search for 'TE Mod' on source code)
  • Add Files: te_fsbl_hooks.h/.c(for hooks and board)\n\

  • General Changes: 
    • Display FSBL Banner and Device ID

Module Specific:

  • Add Files: all TE Files start with te_*
    • READ MAC from EEPROM and make Address accessible by UBOOT (need copy defines on uboot  platform-top.h)
    • CPLD access
    • Read CPLD Firmware and SoC Type
    • Configure Marvell PHY

zynq_fsbl_flash

TE modified 2019.2 FSBL

General:

  • Modified Files: main.c
  • General Changes:
    •  Display FSBL Banner
    • Set FSBL Boot Mode to JTAG
    • Disable Memory initialisation

ZynqMP Example:

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

zynqmp_fsbl

TE modified 2019.2 FSBL

General:

  • Modified Files: xfsbl_main.c, xfsbl_hooks.h/.c, xfsbl_board.h/.c(search for 'TE Mod' on source code)
  • Add Files:  te_xfsbl_hooks.h/.c (for hooks and board)\n\
  • General Changes: 
    • Display FSBL Banner and Device Name

Module Specific:

  • Add Files: all TE Files start with te_*
    • Si5338 Configuration
    • ETH+OTG Reset over MIO

zynqmp_fsbl_flash

TE modified 2019.2 FSBL

General:

  • Modified Files: xfsbl_initialisation.c, xfsbl_hw.h, xfsbl_handoff.c, xfsbl_main.c
  • General Changes:
    •  Display FSBL Banner
    • Set FSBL Boot Mode to JTAG
    • Disable Memory initialisation


zynqmp_pmufw

Xilinx default PMU firmware.

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

General Example:

hello_te0820

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

u-boot

U-Boot.elf is generated with PetaLinux. SDK/HSI is used to generate Boot.bin.

SDK template in ./sw_lib/sw_apps/ available.

zynqmp_fsbl

TE modified 2019.2 FSBL

General:

Module Specific:

zynqmp_fsbl_flash

TE modified 2019.2 FSBL

General:

zynqmp_pmufw

Xilinx default PMU firmware.

hello_te0808

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

Appx. A: Change History and Legal Notices

Document Change History

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

  • 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


DateDocument Revision

Authors

Description

  • Libero12.4 release
--all

--


Legal Notices