navienginebsp/tools/testreference/lauterbach/init.cmm
changeset 0 5de814552237
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/navienginebsp/tools/testreference/lauterbach/init.cmm	Tue Sep 28 18:00:05 2010 +0100
@@ -0,0 +1,63 @@
+//
+// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:  
+//
+//////////////////////////////////////////////////////////////////////////////
+//
+// This script will attach to the board for debugging and will perform a full
+// hardware initialisation on it.  It is designed to be used in conjunction
+// with the board configuration system to be found in configdialog.cmm.
+//
+// Change History:
+//
+// 01/01/2008 1.0 : Initial version
+// 12/05/2009 1.1 : Tidied up in readiness for putting into Nokia's distribution system
+//
+//////////////////////////////////////////////////////////////////////////////
+
+&scriptversion=1.1
+
+print "======================================================================="
+print "Generic initialisation script version &scriptversion"
+
+; Declare the global variables used by the system and read the current config into them
+do globals.cmm
+
+; Reset t32 symbolics
+system.reset
+
+; Clear all breakpoints
+break.reset
+
+; Turn on spotlight everywhere
+setup.var.%SPOTLIGHT.on
+
+; Do the platform specific operations to attach to the board
+if os.file("&PlatformsDir\&Platform\attach.cmm")
+	(
+	do &PlatformsDir\&Platform\attach.cmm
+	)
+else
+	(
+	print "No platform specific attach script available, trying generic attaching"
+	sys.mode.attach
+	)
+
+; Now do the platform specific operations to reset the board's hardware
+if os.file("&PlatformsDir\&Platform\init.cmm")
+	(
+	do &PlatformsDir\&Platform\init.cmm
+	)
+
+enddo