                ===========================================
                Read Me File for Multi Core Sample Projects
                ===========================================

Created:     26.04.2016 [TM] Initial Supply
Update:      29.04.2018 [TM] Added decription for emulaotr E2 and SC project types.
Update:      28.05.2018 [TM] Added decription about single build sample (*_SC)
Update:      20.09.2018 [TM] Added description of restrictions
Update:      16.03.2021 [TM] Added Advanced StarterKit clock initialization

========
Contents
========

  1. General Information 
  2. Manual Corrections and Updates
  3. Software Corrections and Updates
  4. Restrictions and Operating Precautions


======================
1. General Information 
======================

1.1 The samples can be used along with the GHS tools for projects using the 
    gcores utility. To start, please change into the desired sample directory 
    and open MCA2.gpj project with Multi. Starting the debugger requires a 
    working target connection. Please start the script MCA_GettingStarted.rc
    from Multi debuggers command pane, like this:

        MULTI> <MCA_GettingStarted.rc

    or respectively in sample projects having the _SC extension in the name,

        MULTI> <GettingStarted.rc

    The SC projects will not use the gcores utility, instead it is a plain build 
    of a single project, but handling both cores. It is required to run GHS Multi 
    V7.1.4/2017.1.5 or later, because multiple SDA areas are handled here. The 
    project is only sample code, it mmight be necessary to add more initialization
    options per core.
    
    The script will connect to the target board and guide you through the 
    debug process. These basic options are used to establish a connection:

    Core:              -rh850 
    Connection method: -e1lpd4=default 
    target clock:      -dclock=16000,0,swoff 
    Power Supply:      -t3v (Supply 3 Volt from emulator to target), or
                       -t5v to supply 5 Volt from emulator

    Sometimes, the a new emulator E2 is used. In that case, please refer to 
    actual RC- scripts provided.

1.2 The single build sample is best used along with actual compiler only, as it is
    using the multiple SDA addressing feature, which means, each core has its own SDA 
    area limited to the local RAM. V2015.1.7 does not support this and it is required 
    to modify one source module 'device.h' to remove version check preprocessor code:

	 #if (__GHS_VERSION_NUMBER <201713)
	   #error "Wrong compiler version! Please consider to update GHS compiler!"
	 #endif

    In addition to this, the build file "GettingStarted.gpj" shall contain the option
    '-sda=0' to avoid sda mode addressing.

1.3 Prior to build any sample, you have to add a preprocessor symbol to select the clock tree,
    depeneding on the target board you are using. Either define 
      o Y_ASK_RH850=1 for Advanced StarterKit or 
      o Y_RH850_U2A=1 for Y-RH850-U2A daughter board!


=================================
2. Manual Corrections and Updates
=================================

2.1 None.

===================================
3. Software Corrections and Updates
===================================

3.1 None

===================================
4. Restrictions
===================================

4.1 Multi Core Archive (MCA- Build)
4.1.1 Cores are now executing in trheir own FLASH BANK
4.2.2 Sample code relies on the fact that option bytes are having
      common cluster startup at 0 and FLASH_BANK_C

4.2 Single Build (SC) [ EXPERIMENTAL! ]
4.2.1 Only 1 core is allowed initialze the global memory
      => startup after RESET is weak, since local memories cannot be initialized, yet.
      => Startup code of GHS requires modifications to do so.
4.2.2 SELF RAM cannot be used.
4.2.3 Sample code relies on the fact that option bytes are having
      common cluster startup at 0 and FLASH_BANK_C



=========================================
4. Restrictions and Operating Precautions
=========================================

4.1 To use the included sample project the follow environment is recommended:
     - EXEC-DLL Executor Version=RH850G4 Executor V1.00.01.05 [30 Aug 2018]
     - GHS Multi V2018.1.5 or later
     - 850eserv2 Version: V2.050 or later


In case of any question please do not hesitate to contact:

        ABG.Support
        Software Tools Support

        Renesas Electronics Europe GmbH
        Arcadiastrasse 10
        D-40472 Duesseldorf, Germany

        e-mail: sw_tool_support-eu@lm.renesas.com
        FAX:   +49 - (0)211 / 65 03 - 12 79


==================================================
End of Read Me File for Multi Core Sample Projects
==================================================
