#------------------------------------------------------------------------------
#                     Copyright STMicroelectronics
#                           ST RESTRICTED
#       Unauthorized reproduction and communication strictly prohibited
#------------------------------------------------------------------------------

			PRODUCT DESCRIPTION
			-------------------

This is a basic firmware performing configuration of GIC400 and generating a
software interrupt


1) Requirements
=================

1. tlm_infra 3.0 or higher is required

2. To compile this software with gcc 32 bits you need access to /sw/st/gnu_compil/comp/arm/st/4.1/linux-rh-ws-4
   To compile this software with gcc 64 bits you need access to /sw/st/gnu_compil/comp/arm/linaro/gcc-linaro-aarch64-none-elf-4.8-2013.09_linux
   To compile this software with DS5 32/64 bits you need access to /sw/beta/arm/ds-5/5.17a

2) Compile
============

1. Define Infra Key GCC_ARM32 with access path of Linaro 32 bits compiler
   Define Infra Key GCC_ARM64 with access path of Linaro 64 bits compiler
   Define Infra Key ARM_DS5 with access path of DS5 compiler
   Set ARM_ACH variable to 32 for 32 bits compilation, 64 for 64 bits compilation
   Set COMPILER variable to gcc for compilation with gcc, ds5 for compilation with ds5

2. The software will be compiled at platform compilation stage
   You should obtain esw/gic400_esw_32b.axf or esw/gic400_esw_64b.axf depending on ARM_ARCH variable value

3. If you want to compile the software separately from the Virtual Platform, then simply execute the following make commands:

# for gcc 32-bit software, where GCC_ARM32_HOME must be set to a valid ARM 32-bit compiler
make -f tlm_local_make TLM_LOCAL_BUILD=. TLM_BOTTOM=. TLM_TOP=../.. COMPILER=gcc GCC_ARM32_HOME=/sw/st/gnu_compil/comp/arm/st/4.1/linux-rh-ws-4

# for gcc 64-bit software, where GCC_ARM64_HOME must be set to a valid ARM 64-bit compiler
make -f tlm_local_make TLM_LOCAL_BUILD=. TLM_BOTTOM=. TLM_TOP=../.. COMPILER=gcc GCC_ARM64_HOME=/sw/st/gnu_compil/comp/arm/linaro/gcc-linaro-aarch64-none-elf-4.8-2013.09_linux ARM_ARCH=64

# for ds5 32-bit software, where ARM_DS5_HOME must be set to a valid ARM DS5 compiler
make -f tlm_local_make TLM_LOCAL_BUILD=. TLM_BOTTOM=. TLM_TOP=../.. COMPILER=ds5 ARM_DS5_HOME=/sw/beta/arm/ds-5/5.17a

# for ds5 64-bit software, where ARM_DS5_HOME must be set to a valid ARM DS5 compiler
make -f tlm_local_make TLM_LOCAL_BUILD=. TLM_BOTTOM=. TLM_TOP=../.. COMPILER=ds5 ARM_DS5_HOME=/sw/beta/arm/ds-5/5.17a ARM_ARCH=64

Files are generated in subfolder ./esw/

3) Launch the firmware on platform
====================================

To run the firmware do the following steps:

   1. Take place in platform directory

For 64 bits software
   2. Create a link on software : ln -sf <compile_directory>/gic400_esw_64b.axf

   3. Launch the platform : montblanc_vp.exe --arm-esw gic400_esw_64b.axf --fm-params CA53x4.cpu0.vfp-enable_at_reset 1

For 32 bits software
   2. Create a link on software : ln -sf <compile_directory>/gic400_esw_32b.axf

   3. Launch the platform : montblanc_vp.exe --arch32 --arm-esw gic400_esw_32b.axf --fm-params CA53x4.cpu0.vfp-enable_at_reset 1

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

Licensing and Copyright

   Reproduction and Communication of this product is strictly prohibited
   unless specifically authorized in writing by STMicroelectronics.

User Documentation
  
Installation

   See the separate INSTALL.txt file that provides system information and
   installation instructions.

Release Notes

   See the separate RELEASENOTES.txt file that provides up-to-date information
   about this release.

Additional information

   Web Site: <http://spg.codex.cro.st.com>

   Change Request: <https://codex.cro.st.com/tracker/?atid=4677&group_id=167>

# EOF
