<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPCXpresso IDE中的主题 Re: GDB Issue</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590263#M29035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by navin on Thu Nov 22 05:11:02 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more question, is it possible to have semi hosting with this procedure? Any special option to be set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have put a printf whose message shows up in LPC xpresso IDE but not in the GDB console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Navin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:48:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:48:51Z</dc:date>
    <item>
      <title>GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590258#M29030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by navin on Tue Nov 20 02:17:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have lpc1115&amp;nbsp; xpresso module. I want to use gdb with this board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have gone through &lt;/SPAN&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/UsingGDB&lt;/A&gt;&lt;SPAN&gt; and using this could set up&amp;nbsp; the gdb but my issue here is that whenever I enter continue or run the gdb freezes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the output&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;Reading symbols from c:\nxp\lpcxpresso_4.2.3_292\lpcxpresso\tools\bin\bin\blinky.axf...done.
(gdb) target extended-remote | crt_emu_lpc11_13_nxp.exe -2&amp;nbsp; -pLPC1115/303 -wire=winusb
Remote debugging using | crt_emu_lpc11_13_nxp.exe -2&amp;nbsp; -pLPC1115/303 -wire=winusb
Ni: LPCXpresso Debug Driver v4.0 (May 21 2012 21:42:54)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/Tools/bin/bin/LPC1115/303.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/Tools/bin/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/Tools/bin/bin/crt_directory.xml

Nc: Emu(0): Conn&amp;amp;Reset. DpID:&amp;nbsp; BB11477. Info: T1S6RGRIA
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0&amp;nbsp; Poll delay: 0.
Nc: NXP: LPC1115/303&amp;nbsp; Part ID: 0x00050080
Nt: Connected: was_reset=false. was_stopped=true
Cr:v Registered license, download limit of 128K
0x0000016e in SetSegment (n=719) at ../src/blinky_main.c:47
47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
(gdb) set remotetimeout 60000
(gdb) set mem inaccessible-by-default off
(gdb) mon ondisconnect cont
(gdb) set arm force-mode thumb
(gdb) info program
Debugging a target over a serial line.
Program stopped at 0x16e.
(gdb) tb main
Temporary breakpoint 1 at 0x236: file ../src/blinky_main.c, line 83.
(gdb) continue
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.
Xw:&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Can somebody please tell me why this is happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590258#M29030</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590259#M29031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Wed Nov 21 01:40:52 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If GDB does not return, it is because the breakpoint on main is not being hit - not because there is a problem with GDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In you GDB session hit Ctrl-C to break execution, and then look at the PC to see where in your application you are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most likely you are in a Fault handler because something went wrong in your startup code. To step through the startup code, set the breakpoint on your startup code (typically ResetISR) instead of (or as well as) main.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590259#M29031</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590260#M29032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by navin on Thu Nov 22 03:10:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. As you had suggested, I did put a break point at ResetISR and tried once again but still no luck. I am using the blinky example here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;

C:\nxp\LPCXpresso_4.2.3_292\lpcxpresso\Tools\bin\bin&amp;gt;[COLOR=Sienna]arm-none-eabi-gdb.exe blinky.axf[/COLOR]
GNU gdb (Red Suite 2010Q4 by Code Red) 7.2.50.20100908-cvs
Copyright (C) 2010 Free Software Foundation, Inc.
&lt;SPAN&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgnu.org%2Flicenses%2Fgpl.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-mingw32 --target=arm-none-eabi".
For bug reporting instructions, please see:
&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.code-red-tech.com%2Fsupport%2Fbugs.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.code-red-tech.com/support/bugs.html&lt;/A&gt;&lt;SPAN&gt;&amp;gt;...&lt;/SPAN&gt;
Reading symbols from c:\nxp\lpcxpresso_4.2.3_292\lpcxpresso\tools\bin\bin\blinky.axf...done.
(gdb)[COLOR=Red] b ResetISR[/COLOR]
Breakpoint 1 at 0xda: file ../startup/cr_startup_lpc11.c, line 222.
(gdb) target extended-remote | crt_emu_lpc11_13_nxp.exe -2&amp;nbsp; -pLPC1115/303 -wire=winusb
Remote debugging using | crt_emu_lpc11_13_nxp.exe -2&amp;nbsp; -pLPC1115/303 -wire=winusb
Ni: LPCXpresso Debug Driver v4.0 (May 21 2012 21:42:54)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/Tools/bin/bin/LPC1115/303.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/Tools/bin/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/Tools/bin/bin/crt_directory.xml

Xs:
Xc:
Nc: Emu(0): Conn&amp;amp;Reset. DpID:&amp;nbsp; BB11477. Info: T1S6RGRIA
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0&amp;nbsp; Poll delay: 0.
Nc: NXP: LPC1115/303&amp;nbsp; Part ID: 0x00050080
Nt: Connected: was_reset=false. was_stopped=false
Cr:v Registered license, download limit of 128K
[COLOR=SeaGreen]0x0000016e in SetSegment (n=719) at ../src/blinky_main.c:47[/COLOR]&amp;nbsp; ???????
47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
(gdb) set remotetimeout 60000
(gdb) set mem inaccessible-by-default off
(gdb) mon ondisconnect cont
(gdb) set arm force-mode thumb
(gdb) [COLOR=Blue]continue[/COLOR]
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.
Xw:
Xc:
Nt: [COLOR=Blue]Stopped: Halt[/COLOR]

Program received signal SIGINT, Interrupt.
[COLOR=SeaGreen]0x0000016e in SetSegment (n=719) at ../src/blinky_main.c:47[/COLOR]
47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
(gdb) [COLOR=Blue]run[/COLOR]
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: c:\nxp\lpcxpresso_4.2.3_292\lpcxpresso\tools\bin\bin\blinky.axf
Nc: Executing in user flash.
Xw:




&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Navin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590260#M29032</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590261#M29033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Nov 22 04:23:20 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You might want to try loading the code to the target before starting execution..:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the steps in the grey box towards to top of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/UsingGDB&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590261#M29033</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590262#M29034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by navin on Thu Nov 22 04:55:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My bad. I some how missed that critical info. Thanks for pointing that out. Now it works like it should.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So here is the summary that I had to do to get this done so that some one who wants to have gdb console running can follow these steps (under win):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Copy all the contents of bin folder in lpc xpresso folder to a folder convenient to you (Some how, exporting path in env variable under win did not work for me. I would get ExecError when the emulator utility was launched under GDB. Under Linux the export PATH should work I hope and this step might not be necessary)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Now copy arm-none-eabi-gdb.exe to the same folder where you had copied the contents of bin folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) cd to Script folder in bin and execute "bootLPCXpresso.cmd winusb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) cd to the folder where you had made all the copies and run arm-none-eabi-gdb.exe&amp;nbsp; /path/to/your/axf/file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Enter "target extended-remote | crt_emu_lpc11_13_nxp.exe -2&amp;nbsp; -pLPC1115/303 -wire=winusb" under gdb prompt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) Then enter "load"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7) Now GDB is ready to accept your commands enter 's' to single step, 'b' to add break point (say b main) p to print variables...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this will help some one in future who wants to use GDB to use LPC xpresso with other editors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Navin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590262#M29034</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590263#M29035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by navin on Thu Nov 22 05:11:02 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more question, is it possible to have semi hosting with this procedure? Any special option to be set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have put a printf whose message shows up in LPC xpresso IDE but not in the GDB console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Navin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590263#M29035</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590264#M29036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by navin on Fri Nov 23 23:25:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could make semihosting to work with&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
 monitor semihosting ena
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;I could see printf output in the console but still can't figure out how to use scanf(). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers on this issue would be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Navin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590264#M29036</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590265#M29037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by manish9161 on Thu Jul 11 03:37:50 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=georgia][COLOR=#ff0000]Hello&amp;nbsp; I am Manish .I am doing ARM cortex M4 Programming with STM32F4&amp;nbsp; discovery ,code flashes properly but it having problem when debgging&amp;nbsp; with GDB.Following result i have found.please guide me how to slove that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[COLOR=Black]manish@manish-Inspiron-1501:~/my-wow-adc$ arm-none-eabi-gdb obj/STM32F4_Test.elf &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GNU gdb (Sourcery CodeBench Lite 2013.05-23) 7.4.50.20120716-cvs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copyright (C) 2012 Free Software Foundation, Inc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgnu.org%2Flicenses%2Fgpl.html" rel="nofollow" target="_blank"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is free software: you are free to change and redistribute it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type "show copying"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and "show warranty" for details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-eabi".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For bug reporting instructions, please see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsourcery.mentor.com%2FGNUToolchain%2F" rel="nofollow" target="_blank"&gt;https://sourcery.mentor.com/GNUToolchain/&lt;/A&gt;&lt;SPAN&gt;&amp;gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reading symbols from /home/manish/my-wow-adc/obj/STM32F4_Test.elf...done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) target extended-remote localhost:4242&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Remote debugging using localhost:4242&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x080077fc in Reset_Handler ()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) load&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .isr_vector, size 0x188 lma 0x8000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .text, size 0x7e34 lma 0x8000188&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .ARM, size 0x8 lma 0x8007fbc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .init_array, size 0x4 lma 0x8007fc4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .fini_array, size 0x4 lma 0x8007fc8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .data, size 0x5b0 lma 0x8007fcc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start address 0x80077fc, load size 34172&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transfer rate: 6 KB/sec, 4881 bytes/write.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) monitor reset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) b&amp;nbsp; ResetISR&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Function "ResetISR" not defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Make breakpoint pending on future shared library load? (y or [n]) y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Breakpoint 1 (ResetISR) pending.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) b main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Breakpoint 2 at 0x80073f2: file src/main_temp.c, line 4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) info b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Num&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Disp Enb Address&amp;nbsp;&amp;nbsp;&amp;nbsp; What&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; breakpoint&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep y&amp;nbsp;&amp;nbsp; &amp;lt;PENDING&amp;gt;&amp;nbsp; ResetISR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; breakpoint&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep y&amp;nbsp;&amp;nbsp; 0x080073f2 in main at src/main_temp.c:4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Continuing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: automatically using hardware breakpoints for read-only addresses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/COLOR][/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[COLOR=#0000cd]then program halts[/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I am not getting why&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [COLOR=#ff0000]Note: automatically using hardware breakpoints for read-only addresses.[/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; above line prints and how to caime from that. :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [FONT=georgia][COLOR=#ff0000][/COLOR][/FONT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590265#M29037</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590266#M29038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by manish9161 on Thu Jul 11 03:41:23 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;If GDB does not return, it is because the breakpoint on main is not being hit - not because there is a problem with GDB.&lt;BR /&gt;&lt;BR /&gt;In you GDB session hit Ctrl-C to break execution, and then look at the PC to see where in your application you are.&lt;BR /&gt;&lt;BR /&gt;Most likely you are in a Fault handler because something went wrong in your startup code. To step through the startup code, set the breakpoint on your startup code (typically ResetISR) instead of (or as well as) main.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=georgia][COLOR=#ff0000]Hello&amp;nbsp; I am Manish .I am doing ARM cortex M4 Programming with STM32F4&amp;nbsp; discovery ,code flashes properly but it having problem when debgging&amp;nbsp; with GDB.Following result i have found.please guide me how to slove&amp;nbsp; that.[/COLOR][/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=georgia][COLOR=#ff0000][COLOR=Black]manish@manish-Inspiron-1501:~/my-wow-adc$ arm-none-eabi-gdb obj/STM32F4_Test.elf &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GNU gdb (Sourcery CodeBench Lite 2013.05-23) 7.4.50.20120716-cvs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copyright (C) 2012 Free Software Foundation, Inc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgnu.org%2Flicenses%2Fgpl.html" rel="nofollow" target="_blank"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is free software: you are free to change and redistribute it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type "show copying"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and "show warranty" for details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-eabi".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For bug reporting instructions, please see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsourcery.mentor.com%2FGNUToolchain%2F" rel="nofollow" target="_blank"&gt;https://sourcery.mentor.com/GNUToolchain/&lt;/A&gt;&lt;SPAN&gt;&amp;gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reading symbols from /home/manish/my-wow-adc/obj/STM32F4_Test.elf...done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) target extended-remote localhost:4242&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Remote debugging using localhost:4242&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x080077fc in Reset_Handler ()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) load&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .isr_vector, size 0x188 lma 0x8000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .text, size 0x7e34 lma 0x8000188&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .ARM, size 0x8 lma 0x8007fbc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .init_array, size 0x4 lma 0x8007fc4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .fini_array, size 0x4 lma 0x8007fc8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .data, size 0x5b0 lma 0x8007fcc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start address 0x80077fc, load size 34172&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transfer rate: 6 KB/sec, 4881 bytes/write.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) monitor reset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) b&amp;nbsp; ResetISR&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Function "ResetISR" not defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Make breakpoint pending on future shared library load? (y or [n]) y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Breakpoint 1 (ResetISR) pending.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) b main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Breakpoint 2 at 0x80073f2: file src/main_temp.c, line 4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) info b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Num&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Disp Enb Address&amp;nbsp;&amp;nbsp;&amp;nbsp; What&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; breakpoint&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep y&amp;nbsp;&amp;nbsp; &amp;lt;PENDING&amp;gt;&amp;nbsp; ResetISR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; breakpoint&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep y&amp;nbsp;&amp;nbsp; 0x080073f2 in main at src/main_temp.c:4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Continuing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: automatically using hardware breakpoints for read-only addresses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/COLOR][/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[COLOR=#0000cd]then program halts[/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I am not getting why&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [COLOR=#ff0000]Note: automatically using hardware breakpoints for read-only addresses.[/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; above line prints and how to caime from that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [FONT=georgia][COLOR=#ff0000][/COLOR][/FONT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590266#M29038</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590267#M29039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Jul 11 11:46:26 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This forum is for NXP LPC users and not STM parts. I suggest you find a more appropriate forum to ask your questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:48:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GDB-Issue/m-p/590267#M29039</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:48:54Z</dc:date>
    </item>
  </channel>
</rss>

