<?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: How to Debug with no executable and no sources</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548281#M10474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Mon Mar 09 18:05:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are close to working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a dummy project, with an empty main(). Sounds like you've done this already. Compile the project with a debug setting of "None". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create a Debug Configuration for the above project. Set "Attach" to true. You don't need to disable the "Load image" because the debugger will ignore the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Attach a debug session to the running target.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Hit the pause key. There will be no debug information, so you'll get a message similar to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"No source available for "0x????"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The address in the message is whatever PC you've halted at.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy the no symbols experience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS&amp;nbsp; After saving the Dummy Debug Configuration, open it back up and check your settings. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:25:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:25:27Z</dc:date>
    <item>
      <title>How to Debug with no executable and no sources</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548280#M10473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Mon Mar 09 14:41:51 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to start a debug session on&amp;nbsp; a board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no source, no elf (axf) files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to select the processor type (4370) and to select SWD mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have IDE version 7 and a LPCLink-2 probe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can setup a NXP MCU debug launch (with the application left blank)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And setup the options. Mainly SWD, AttachOnly:True: LoadImage:False,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ResetScript:blank (I do not want to reset!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And no RedTrace or semihosting support thank you so very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the "Debug" button is greyed out and I can't even try to start a debug session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then tried "Attach to Application"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly, there seems to be no way to specify the NXP MCU -- other than having it set in the project properties*.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Second with the debugger tab defaults of gdb clicking the "Debug" button Failed with the error "gdb --version".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I specified a path to &amp;lt;install dir&amp;gt;/tools/arm-none-eabi-gdb.exe, then when I click the "Debug" button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a list of processes running on the host PC [Win7-64]. Not what I need at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I am stuck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please NXP (or anyone else) post a FAQ about how to debug a board (attach only/no load) when there is no&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;source or executable available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am quite happy to only see the disassembly. But I do want to open 4370 specific peripheral views.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* By the way I could not setup a new completely empty project folder. I had to put a dummy empty file there&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(which I called main.c).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548280#M10473</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug with no executable and no sources</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548281#M10474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Mon Mar 09 18:05:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are close to working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a dummy project, with an empty main(). Sounds like you've done this already. Compile the project with a debug setting of "None". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create a Debug Configuration for the above project. Set "Attach" to true. You don't need to disable the "Load image" because the debugger will ignore the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Attach a debug session to the running target.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Hit the pause key. There will be no debug information, so you'll get a message similar to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"No source available for "0x????"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The address in the message is whatever PC you've halted at.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy the no symbols experience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS&amp;nbsp; After saving the Dummy Debug Configuration, open it back up and check your settings. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548281#M10474</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug with no executable and no sources</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548282#M10475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Tue Mar 10 10:38:48 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, I forgot to say thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had just about come to a similar conclusion: Create a dummy executable and debug with attach only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially, the dummy code is ignored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I have been using 1778 for about 3+ years, but I am new to the flashless 4370.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I actually load the dummy code (via the debugger), I am confused about the MEM4MAP setting.&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;
@=======================================================================!
@ DUMMY.SCopyright (c) Waived.10-08-12!
@=======================================================================!

@ vim: set ts=8 sw=8:@ [tabs:8]

.file"Dummy.s"
.syntax unified
.thumb

.macrofn n
.type\n, %function
.func\n
.thumbFunc
\n:
.endm

.macrofe n
.endfunc
.size\n, .-\n
.align1,0
.endm

@-----------------------------------------------------------------------!
@ Publics!
@-----------------------------------------------------------------------!

.globalStartHere

@-----------------------------------------------------------------------!
@ Constants and Equates!
@-----------------------------------------------------------------------!

@-----------------------------------------------------------------------!
@ CODE!
@-----------------------------------------------------------------------!
.text
.align 4,0

Vectors:

.word0x10000800@ stack
.wordStartHere@ reset
.wordStartHere@ NMI
.wordStartHere@ hard fault
.word0@ dummy
.word0@ dummy
.word0@ dummy
.word0@ dummy

@-----------------------------------------------------------------------!
@ Initialise Clock etc. Copy Code &amp;amp; Data, Zap bss!
@-----------------------------------------------------------------------!

fn StartHere

b.@ spin forever

fe StartHere

@-----------------------------------------------------------------------!
@ LDR pool!
@-----------------------------------------------------------------------!
.align 2,0xFF

Pool: .pool@ LDR pool

@------------------------------------------------------------------------
.align4,0xFF
@========================================================================

&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't normally use the managed linker scripts; it wasn't working for me and I could not be bothered to find out why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I used this script (minimal as you can see).&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;
ENTRY(StartHere)


SECTIONS
{
.text 0:
{
*(.text)
}

}

&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is: The debugger loaded the code to memory @ 0x10000000, but did not change the MEM4MAP register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;away from the default of [boot rom].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why, the exectable shows 'reset' at 0x21 (and not 0x10000021) if you disassemble.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would a genuine dfu load set memmap correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, looking at the code bytes in the memory viewer, shows that the 'vector checksum'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;was not changed from zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548282#M10475</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug with no executable and no sources</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548283#M10476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Tue Mar 10 12:03:47 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first thought is your linker script is inadequate. By providing almost no guidance to the linker, you're begging to be victimized by default tool behavior. I recommend you use the managed linker scripts, and the LPC43xx startup code provided by LPCXpresso. Review the LPC4330 example projects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A DFU load would setup the M4MEMMAP. And, the debugger bypasses the bootloader by loading directly to RAM so there's no reason to change the vector checksum. I recommend you add the reset script LPC18LPC43RamReset.scp to your debug configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548283#M10476</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug with no executable and no sources</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548284#M10477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Tue Mar 10 14:25:55 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. I will look into all you say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Debug-with-no-executable-and-no-sources/m-p/548284#M10477</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:28Z</dc:date>
    </item>
  </channel>
</rss>

