1 #*****************************************************************************
\r
4 # Initilization script for GDB for ARM
\r
6 # Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
\r
9 # Redistribution and use in source and binary forms, with or without
\r
10 # modification, are permitted provided that the following conditions
\r
13 # Redistributions of source code must retain the above copyright
\r
14 # notice, this list of conditions and the following disclaimer.
\r
16 # Redistributions in binary form must reproduce the above copyright
\r
17 # notice, this list of conditions and the following disclaimer in the
\r
18 # documentation and/or other materials provided with the
\r
21 # Neither the name of Texas Instruments Incorporated nor the names of
\r
22 # its contributors may be used to endorse or promote products derived
\r
23 # from this software without specific prior written permission.
\r
25 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
\r
26 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
\r
27 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
\r
28 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
\r
29 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
\r
30 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
\r
31 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
\r
32 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
\r
33 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
\r
34 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
\r
35 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\r
37 #*****************************************************************************
\r
39 #*****************************************************************************
\r
40 #Connect To the tartget using OpenOCD
\r
41 #*****************************************************************************
\r
42 target remote | openocd -c "gdb_port pipe; log_output openocd.log" -f cc3200.cfg
\r
44 #*****************************************************************************
\r
46 #*****************************************************************************
\r
47 monitor soft_reset_halt
\r
50 #*****************************************************************************
\r
51 # Initialize the SP and PC values from the application's
\r
53 #*****************************************************************************
\r
54 set $sp = g_pfnVectors[0]
\r
55 set $pc = g_pfnVectors[1]
\r
57 #*****************************************************************************
\r
58 # Set break point at main and run to main
\r
59 #*****************************************************************************
\r