navienginebsp/tools/testreference/lauterbach/init.cmm
changeset 0 5de814552237
equal deleted inserted replaced
-1:000000000000 0:5de814552237
       
     1 //
       
     2 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:  
       
    15 //
       
    16 //////////////////////////////////////////////////////////////////////////////
       
    17 //
       
    18 // This script will attach to the board for debugging and will perform a full
       
    19 // hardware initialisation on it.  It is designed to be used in conjunction
       
    20 // with the board configuration system to be found in configdialog.cmm.
       
    21 //
       
    22 // Change History:
       
    23 //
       
    24 // 01/01/2008 1.0 : Initial version
       
    25 // 12/05/2009 1.1 : Tidied up in readiness for putting into Nokia's distribution system
       
    26 //
       
    27 //////////////////////////////////////////////////////////////////////////////
       
    28 
       
    29 &scriptversion=1.1
       
    30 
       
    31 print "======================================================================="
       
    32 print "Generic initialisation script version &scriptversion"
       
    33 
       
    34 ; Declare the global variables used by the system and read the current config into them
       
    35 do globals.cmm
       
    36 
       
    37 ; Reset t32 symbolics
       
    38 system.reset
       
    39 
       
    40 ; Clear all breakpoints
       
    41 break.reset
       
    42 
       
    43 ; Turn on spotlight everywhere
       
    44 setup.var.%SPOTLIGHT.on
       
    45 
       
    46 ; Do the platform specific operations to attach to the board
       
    47 if os.file("&PlatformsDir\&Platform\attach.cmm")
       
    48 	(
       
    49 	do &PlatformsDir\&Platform\attach.cmm
       
    50 	)
       
    51 else
       
    52 	(
       
    53 	print "No platform specific attach script available, trying generic attaching"
       
    54 	sys.mode.attach
       
    55 	)
       
    56 
       
    57 ; Now do the platform specific operations to reset the board's hardware
       
    58 if os.file("&PlatformsDir\&Platform\init.cmm")
       
    59 	(
       
    60 	do &PlatformsDir\&Platform\init.cmm
       
    61 	)
       
    62 
       
    63 enddo