navienginebsp/tools/testreference/lauterbach/attach.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.  It is designed to be
       
    19 // used in conjunction with the board configuration system to be found in
       
    20 // configdialog.cmm.
       
    21 //
       
    22 // Change History:
       
    23 //
       
    24 // 11/11/2008 1.0 : Initial version
       
    25 // 06/02/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 attach 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 ; Turn on spotlight everywhere
       
    41 setup.var.%SPOTLIGHT.on
       
    42 
       
    43 ; Now do the platform specific operations
       
    44 if os.file("&PlatformsDir\&Platform\attach.cmm")
       
    45 	(
       
    46 	do &PlatformsDir\&Platform\attach.cmm
       
    47 	)
       
    48 else
       
    49 	(
       
    50 	print "No platform specific attach script available, trying generic attaching"
       
    51 	sys.mode.attach
       
    52 	)
       
    53 
       
    54 print "Trace32 is now attached to the board"