MotoHawk-Compilers: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 11: Line 11:


!scope="col" style = "width:250px;"|Product       
!scope="col" style = "width:250px;"|Product       
!scope="col" style = "width:200px;"|Download Now
!scope="col" style = "width:200px;"|Downloads
!scope="col" style = "width:200px;"|MotoHawk Compatibility
!scope="col" style = "width:200px;"|MotoHawk Compatibility
!scope="col" style = "width:400px;"|Module Compatibility
!scope="col" style = "width:400px;"|Module Compatibility
Line 17: Line 17:
|-
|-
|GCC PowerPC EABI 4.6.0 SPE
|GCC PowerPC EABI 4.6.0 SPE
|[http://www.neweagle.net/support/wiki/ProductDocumentation/MotoTron/MotoHawk/gcc-powerpc-eabispe-4_6_0.exe Download Now]
|'''[http://www.neweagle.net/support/wiki/ProductDocumentation/MotoTron/MotoHawk/gcc-powerpc-eabispe-4_6_0.exe Download]'''
| 2011b and up
| 2011b and up
| Any 112-pin module w/ a MPC55XX processor of SECM70 with a MPC56xx processor
| Any 112-pin module with an MPC55XX processor or SECM70 with an MPC56xx processor


|-
|-
|GCC PowerPC EABI 4.6.0
|GCC PowerPC EABI 4.6.0
|[http://www.neweagle.net/support/wiki/ProductDocumentation/MotoTron/MotoHawk/gcc-powerpc-eabi-4_6_0.exe Download Now]
|'''[http://www.neweagle.net/support/wiki/ProductDocumentation/MotoTron/MotoHawk/gcc-powerpc-eabi-4_6_0.exe Download]'''
| 2011b and up
| 2011b and up
| Any 48, 80, or 128-pin module w/ a MPC5XX processor
| Any 48-, 80- or 128-pin module with an MPC5XX processor


|-
|-
|GCC PowerPC EABI 4.4.0 SP1 SPE
|GCC PowerPC EABI 4.4.0 SP1 SPE
|[http://www.neweagle.net/support/wiki/ProductDocumentation/MotoTron/MotoHawk/gcc-powerpc-eabispe-4_4_0-SP1.exe Download Now]
|'''[http://www.neweagle.net/support/wiki/ProductDocumentation/MotoTron/MotoHawk/gcc-powerpc-eabispe-4_4_0-SP1.exe Download]
| 2009b to 2011a
| 2009b to 2011a
| Any 112-pin module w/ a 55XX processor
| Any 112-pin module with a 55XX processor


|-
|-
|GCC PowerPC EABI 4.4.0 SP1
|GCC PowerPC EABI 4.4.0 SP1
|[http://www.neweagle.net/support/wiki/ProductDocumentation/MotoTron/MotoHawk/gcc-powerpc-eabi-4_4_0-SP1.exe Download Now]
|'''[http://www.neweagle.net/support/wiki/ProductDocumentation/MotoTron/MotoHawk/gcc-powerpc-eabi-4_4_0-SP1.exe Download]
| 2009b to 2011a
| 2009b to 2011a
| Any 48, 80, or 128-pin module w/ a MPC5XX processor
| Any 48-, 80- or 128-pin module with an MPC5XX processor


|}
|}
Line 43: Line 43:
= Green Hills Compiler =
= Green Hills Compiler =


GHC is used with MATLAB and MotoHawk for the purpose of helping compile the programs to be used with targeted MotoHawk ECMs. GHS is useful for compiling programs for the ECMs featuring the Freescale 5xx and 55xx processors. Greenhills is installed via a CD and requires either a node-locked or dongle license. Greenhills can be purcahsed from New Eagle.
GHC is used with MATLAB and MotoHawk for the purpose of helping compile the programs to be used with targeted MotoHawk ECMs. GHS is useful for compiling programs for the ECMs featuring the Freescale 5xx and 55xx processors. Green Hills is installed via a CD and requires either a node-locked or dongle license.


== Green Hills Compiler Installation ==
== Green Hills Compiler Installation ==
To install the GHC application from a CD:  
To install the GHC application from a CD:  


#Insert CD in drive. Click Start->Run and double-click Setup.exe. <BR>Follow on-screen instructions. (try to leave the default install directory) <BR><BR>
#Insert CD in drive. Click Start -> Run and double-click Setup.exe. <BR>Follow on-screen instructions. (Try to leave the default install directory.)<br><br>
#If you do not already have a license launch the License Request Generator:<BR>In Windows, select '''Start->All Programs->Multi2000, PowerPC v3.6->Licensing->License Request Generator'''<BR>You may want to request an evaluation license initially. This will help get you started faster.<BR><BR>
#If you do not already have a license, launch the License Request Generator:<BR>In Windows, select Start -> All Programs -> Multi2000, PowerPC v3.6 -> Licensing -> License Request Generator<BR>You may want to request an evaluation license initially. This will help get you started faster.<br><br>
#If you have a license run the License installer:<BR>In Windows, select '''Start->All Programs->Multi2000, PowerPC v3.6->Licensing->Install Licenses'''<BR>
#If you have a license, run the license installer:<BR>In Windows, select Start -> All Programs -> Multi2000, PowerPC v3.6 -> Licensing -> Install Licenses<br><br>
#Select your .key file and then install all the licenses. <BR>
#Select your *.key file and then install all the licenses.


== Using Green Hills ==
== Using Green Hills ==


Before using GHC with MotoHawk, there are a few items to consider:  
Before using GHC with MotoHawk, there are a few items to consider:  
* If targeted, the 5xx-based processors default to using GHS 3.6, although they work with later versions(4.2.1).  
*If targeted, the 5xx-based processors default to using GHS 3.6, although they work with later versions (4.2.1).  
* The 55xx-based processors default to using GHS 4.2.1 and will work with later versions, but will not work with GHS 3.6.  
*The 55xx-based processors default to using GHS 4.2.1 and will work with later versions but will not work with GHS 3.6.  
* '''If you are using GHS version 4.2.1''', you will need to specify the License Manager. To do this, you would create and set an environment variable GHS_LMWHICH and set its value to "elan."<BR>* If you are not going to use the default compiler version you will need to set an environment variable. Set GHS_DIR to the directory which has the compiler you want to use; the default for 4.2.1 is "C:\GHS\ppc421" (other versions follow this naming convention).
*'''If you are using GHS version 4.2.1''', you will need to specify the License Manager. To do this, you would create and set an environment variable GHS_LMWHICH and set its value to "elan."
* There is also a Tool Chain block in MotoHawk that will allow you to select which compiler to use, if necessary. Find it using Simulink Library Browser; it is located in the MotoHawk->Build library.<BR><BR>
*If you are not going to use the default compiler version you will need to set an environment variable. Set GHS_DIR to the directory which has the compiler you want to use; the default for 4.2.1 is "C:\GHS\ppc421" (other versions follow this naming convention).
'''Note:''' To set an environment variable:<BR>In Windows, select '''Start->(right-click)My Computer->Properties->Advanced tab->Environment Variables''', then click on New, and fill in the Variable name and value, then click OK.
*There is also a Toolchain block in MotoHawk that will allow you to select which compiler to use, if necessary. Find it using Simulink Library Browser; it is located under MotoHawk -> Build library.
 
'''Note:''' To set an environment variable:<BR>
:In Windows, select Start -> (right-click) My Computer -> Properties -> Advanced tab -> Environment Variables, then click on New, and fill in the Variable name and value, then click OK.


== Common Green Hills Issues ==
== Common Green Hills Issues ==
*Matlab returns an error ===Green Hills Compiler License Not Available===<BR>
*Matlab returns an error ===Green Hills Compiler License Not Available===<BR>
#Check that GHS purple dongle is plugged in
*#Check that the GHS purple dongle is plugged in.
#Check that GHS_DIR is pointing to the correct compiler directory
*#Check that GHS_DIR is pointing to the correct compiler directory.
#Check that the license is installed correctly
*#Check that the license is installed correctly.


*At install of the license a warning box pops up saying Server Code Mismatch:<BR>
*At installation of the license, a warning box popped up saying "Server Code Mismatch":
:The license you specified were created for a different server code. Your server code has either changed since you requested your license, or you are trying to install them on the wrong machine. Please consult the documentation or contact the Green Hills license administrator for assistance.
**The license you specified was created for a different server code. Your server code has either changed since you requested your license, or you are trying to install it on the wrong machine. Please consult the documentation or contact the Green Hills license administrator for assistance.
# Verify that the USB or parallel port is working correctly.
*# Verify that the USB or parallel port is working correctly.
# Log in as Administrator
*# Log in as Administrator.
# Unplug the key(s).
*# Unplug the key(s).
# Remove the old Sentinel Protection Server/Driver/Combo and reinstall the Sentinel Protection Installer. Go to Start > Settings > Control Panel > Add or Remove Programs (Vista is Programs and Features).  Select both the Sentinel Protection Installer and Sentinel System Driver, and then click Remove.
*# Remove the old Sentinel Protection Server/Driver/Combo and reinstall the Sentinel Protection Installer.<br>Go to Start -> Settings -> Control Panel -> Add or Remove Programs (in Vista, it is Programs and Features).  Select both the Sentinel Protection Installer and Sentinel System Driver, then click Remove.
# Shut Down and Restart the computer system
*# Shut down and restart the computer system
# Download and install the new Sentinel Protection Installer [http://www.neweagle.net/ProductDocumentation/MotoTron/MotoHawk/GreenHills_SentinelInstaller.exe here].  NOTE: If you are using Standalone applications, you can do the custom install and you can uncheck Server from the installation.  The Sentinel Keys Server only needs to be installed on a SHK key server computer.  The Sentinel Protection Server only needs to be installed on a SuperPro and/or UltraPro key server computer.
*# Download and install the new Sentinel Protection Installer [http://www.neweagle.net/ProductDocumentation/MotoTron/MotoHawk/GreenHills_SentinelInstaller.exe here].  '''Note:''' If you are using standalone applications, you can do the custom install and you can uncheck Server from the installation.  The Sentinel Keys Server only needs to be installed on an SHK key server computer.  The Sentinel Protection Server only needs to be installed on a SuperPro and/or UltraPro key server computer.
# Plug in the key(s).
*# Plug in the key(s).
# Download the Medic utility http://www.safenet-inc.com/support/files/SuperproMedic.exe or http://www.safenet-inc.com/support/files/sam1.2.exe and run it to make sure the key(s) is being detected correctly.  Medic does not detect the 64-bit operating system version correctly.  If Medic detects the key, then the computer, operating system, port, key and driver are working correctly.
*# Download the Medic utility http://www.safenet-inc.com/support/files/SuperproMedic.exe or http://www.safenet-inc.com/support/files/sam1.2.exe and run it to make sure the key(s) is being detected correctly.  Medic does not detect the 64-bit operating system version correctly.  If Medic detects the key, then the computer, operating system, port, key and driver are working correctly.


=FreeScale CodeWarrior Compiler=
=FreeScale CodeWarrior Compiler=
Any modules with a S12 processor requires a Freescale CodeWarrior compiler. Codewarrior compilers must be purchased from Freescale directly (Click [http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-HCS12X&nodeId=0152102726E4C7E4CB&tab=Buy_Parametric_Tab&fromSearch=false here] to view purchase options). The "Standard" or "Professional" versions are recommended since these versions do not restrict the size of the application code.
Any modules with an S12 processor require a Freescale CodeWarrior compiler. CodeWarrior compilers must be purchased from Freescale directly (click '''[http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-HCS12X&nodeId=0152102726E4C7E4CB&tab=Buy_Parametric_Tab&fromSearch=false here]''' to view purchase options). The "Standard" or "Professional" versions are recommended since these versions do not restrict the size of the application code.


If you are not going to use the default compiler version you will need to set an environment variable. Set CW_DIR to the directory which has the compiler you want to use; the default for 4.7 is "C:\Program Files\Freescale\CodeWarrior for HCS12 V4.7" (other versions follow this naming convention).
If you are not going to use the default compiler version, you will need to set an environment variable. Set CW_DIR to the directory which has the compiler you want to use; the default for 4.7 is "C:\Program Files\Freescale\CodeWarrior for HCS12 V4.7" (other versions follow this naming convention). There is also a Toolchain block in MotoHawk that will allow you to select which compiler to use, if necessary. Find it using Simulink Library Browser; it is located in the MotoHawk -> Build library.
There is also a Tool Chain block in MotoHawk that will allow you to select which compiler to use, if necessary. Find it using Simulink Library Browser; it is located in the MotoHawk->Build library.


Version v5.1 works if you use the MotoHawk tool chain def block to point it at the v5.1 directory and then build your model (using the Target definition block) to v4.6 still.
Version v5.1 works if you use the MotoHawk toolchain def block to point it at the v5.1 directory and then build your model (using the Target definition block) to v4.6 still.

Latest revision as of 15:22, 2 March 2023

New Eagle > Products Wiki > MotoHawk Platform > MotoHawk > MotoHawk Compilers

GCC Compiler

GCC is a free open-source compiler that is used with 48-, 80- or 128-pin modules that use the MPC5XX processor as well as 112-pin modules that use the MPC55XX processor. Before downloading GCC, please note:

  • GCC cannot be used with modules that use the S12/S12X processor. CodeWarrior is required.
  • Multiple versions of GCC can be installed simultaneously. It is not necessary to uninstall a previous version of GCC before installing a new version.
  • Installation: Download the GCC compiler to a temporary directory. If the file is zipped, unzip the file — do not run the installer from WinZip. Launch the installer.
Product Downloads MotoHawk Compatibility Module Compatibility
GCC PowerPC EABI 4.6.0 SPE Download 2011b and up Any 112-pin module with an MPC55XX processor or SECM70 with an MPC56xx processor
GCC PowerPC EABI 4.6.0 Download 2011b and up Any 48-, 80- or 128-pin module with an MPC5XX processor
GCC PowerPC EABI 4.4.0 SP1 SPE Download 2009b to 2011a Any 112-pin module with a 55XX processor
GCC PowerPC EABI 4.4.0 SP1 Download 2009b to 2011a Any 48-, 80- or 128-pin module with an MPC5XX processor

Green Hills Compiler

GHC is used with MATLAB and MotoHawk for the purpose of helping compile the programs to be used with targeted MotoHawk ECMs. GHS is useful for compiling programs for the ECMs featuring the Freescale 5xx and 55xx processors. Green Hills is installed via a CD and requires either a node-locked or dongle license.

Green Hills Compiler Installation

To install the GHC application from a CD:

  1. Insert CD in drive. Click Start -> Run and double-click Setup.exe.
    Follow on-screen instructions. (Try to leave the default install directory.)

  2. If you do not already have a license, launch the License Request Generator:
    In Windows, select Start -> All Programs -> Multi2000, PowerPC v3.6 -> Licensing -> License Request Generator
    You may want to request an evaluation license initially. This will help get you started faster.

  3. If you have a license, run the license installer:
    In Windows, select Start -> All Programs -> Multi2000, PowerPC v3.6 -> Licensing -> Install Licenses

  4. Select your *.key file and then install all the licenses.

Using Green Hills

Before using GHC with MotoHawk, there are a few items to consider:

  • If targeted, the 5xx-based processors default to using GHS 3.6, although they work with later versions (4.2.1).
  • The 55xx-based processors default to using GHS 4.2.1 and will work with later versions but will not work with GHS 3.6.
  • If you are using GHS version 4.2.1, you will need to specify the License Manager. To do this, you would create and set an environment variable GHS_LMWHICH and set its value to "elan."
  • If you are not going to use the default compiler version you will need to set an environment variable. Set GHS_DIR to the directory which has the compiler you want to use; the default for 4.2.1 is "C:\GHS\ppc421" (other versions follow this naming convention).
  • There is also a Toolchain block in MotoHawk that will allow you to select which compiler to use, if necessary. Find it using Simulink Library Browser; it is located under MotoHawk -> Build library.

Note: To set an environment variable:

In Windows, select Start -> (right-click) My Computer -> Properties -> Advanced tab -> Environment Variables, then click on New, and fill in the Variable name and value, then click OK.

Common Green Hills Issues

  • Matlab returns an error ===Green Hills Compiler License Not Available===
    1. Check that the GHS purple dongle is plugged in.
    2. Check that GHS_DIR is pointing to the correct compiler directory.
    3. Check that the license is installed correctly.
  • At installation of the license, a warning box popped up saying "Server Code Mismatch":
    • The license you specified was created for a different server code. Your server code has either changed since you requested your license, or you are trying to install it on the wrong machine. Please consult the documentation or contact the Green Hills license administrator for assistance.
    1. Verify that the USB or parallel port is working correctly.
    2. Log in as Administrator.
    3. Unplug the key(s).
    4. Remove the old Sentinel Protection Server/Driver/Combo and reinstall the Sentinel Protection Installer.
      Go to Start -> Settings -> Control Panel -> Add or Remove Programs (in Vista, it is Programs and Features). Select both the Sentinel Protection Installer and Sentinel System Driver, then click Remove.
    5. Shut down and restart the computer system
    6. Download and install the new Sentinel Protection Installer here. Note: If you are using standalone applications, you can do the custom install and you can uncheck Server from the installation. The Sentinel Keys Server only needs to be installed on an SHK key server computer. The Sentinel Protection Server only needs to be installed on a SuperPro and/or UltraPro key server computer.
    7. Plug in the key(s).
    8. Download the Medic utility http://www.safenet-inc.com/support/files/SuperproMedic.exe or http://www.safenet-inc.com/support/files/sam1.2.exe and run it to make sure the key(s) is being detected correctly. Medic does not detect the 64-bit operating system version correctly. If Medic detects the key, then the computer, operating system, port, key and driver are working correctly.

FreeScale CodeWarrior Compiler

Any modules with an S12 processor require a Freescale CodeWarrior compiler. CodeWarrior compilers must be purchased from Freescale directly (click here to view purchase options). The "Standard" or "Professional" versions are recommended since these versions do not restrict the size of the application code.

If you are not going to use the default compiler version, you will need to set an environment variable. Set CW_DIR to the directory which has the compiler you want to use; the default for 4.7 is "C:\Program Files\Freescale\CodeWarrior for HCS12 V4.7" (other versions follow this naming convention). There is also a Toolchain block in MotoHawk that will allow you to select which compiler to use, if necessary. Find it using Simulink Library Browser; it is located in the MotoHawk -> Build library.

Version v5.1 works if you use the MotoHawk toolchain def block to point it at the v5.1 directory and then build your model (using the Target definition block) to v4.6 still.