CodeLite: add a small delay during the debugger initialization.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 28 May 2010 14:40:23 +0000 (14:40 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 28 May 2010 14:40:23 +0000 (14:40 +0000)
Introduce a small delay (1 sec) before attaching GDB to the debugging
socket.

At the moment this is a requirement only for the lm3s boards, because
openocd claims that the connection for GDB is ready even when it is not
properly initialized.

To a large degree, it is safer to add such small delay also for the
other boards to be sure that the debugger can reliably connect to the
debugging socket.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3875 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/cltemplates/bertos.project

index e6a16f891b813355de00262b1e5813939b385fff..7516404cd0e24fc25baa15f2b51b05c8a8550989 100644 (file)
@@ -14,8 +14,10 @@ $filelist
         <PostConnectCommands>
 source $initscript
        </PostConnectCommands>
-        <StartupCommands></StartupCommands>
-      </Debugger>      
+        <StartupCommands>
+shell sleep 1
+        </StartupCommands>
+      </Debugger>
       <ResourceCompiler Required="no" Options=""/>
       <PreBuild/>
       <PostBuild/>