<?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>topic Debugger Issues in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532021#M2811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by richas on Tue May 14 13:28:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was having issues with the debugger (LPC1768, Red Probe+) where I had to always start the debugger twice, the first try would produce a "flash init" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I FINALLY traced the issue to a variable in the timer0 ISR.&amp;nbsp; The variable is simply used as a flag to toggle a "heartbeat" LED.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable was declared as static int inside the ISR.&amp;nbsp; I moved the variable to the top of the module and declared it as volatile and the issue is gone, the debugger starts without errors each time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:17:15 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:17:15Z</dc:date>
    <item>
      <title>Debugger Issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532021#M2811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by richas on Tue May 14 13:28:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was having issues with the debugger (LPC1768, Red Probe+) where I had to always start the debugger twice, the first try would produce a "flash init" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I FINALLY traced the issue to a variable in the timer0 ISR.&amp;nbsp; The variable is simply used as a flag to toggle a "heartbeat" LED.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable was declared as static int inside the ISR.&amp;nbsp; I moved the variable to the top of the module and declared it as volatile and the issue is gone, the debugger starts without errors each time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532021#M2811</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532022#M2812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue May 14 13:58:30 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What you are describing sounds like a 'wrong' usage of 'static' qualifier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://en.wikibooks.org/wiki/C_Programming/Variables#static&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you can post the code to investigate that :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532022#M2812</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532023#M2813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by richas on Tue May 14 14:08:19 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: R2D2&lt;/STRONG&gt;&lt;BR /&gt;What you are describing sounds like a 'wrong' usage of 'static' qualifier.&lt;BR /&gt;&lt;BR /&gt;See: &lt;A href="http://"&gt;http://en.wikibooks.org/wiki/C_Programming/Variables#static&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Perhaps you can post the code to investigate that :)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure how the variable ended up being declared as static.&amp;nbsp; Nor am I sure that it is improper to declare a variable as static in an ISR when it is not used outside the ISR (Just like any other function).&amp;nbsp; If it does not work in an ISR I would be interested in knowing why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(And why it breaks the debugger would also be interesting.....)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532023#M2813</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532024#M2814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Tue May 14 14:42:32 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't you post a project that exhibits the problem. Maybe we can the see what you are doing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532024#M2814</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532025#M2815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue May 14 15:15:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: richas&lt;/STRONG&gt;&lt;BR /&gt;Nor am I sure that it is improper to declare a variable as static in an ISR when it is not used outside the ISR (Just like any other function).&amp;nbsp; If it does not work in an ISR I would be interested in knowing why.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Static locals in ISR are working as usual and therefore not stacked. Your map file should show them in RAM (BSS section).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also your debugger should show you in Disassembly ('Instruction stepping mode') what's going on there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532025#M2815</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532026#M2816</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 Tue May 14 15:21:05 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: richas&lt;/STRONG&gt;&lt;BR /&gt;I am not sure how the variable ended up being declared as static.&amp;nbsp; Nor am I sure that it is improper to declare a variable as static in an ISR when it is not used outside the ISR (Just like any other function).&amp;nbsp; If it does not work in an ISR I would be interested in knowing why.&lt;BR /&gt;&lt;BR /&gt;(And why it breaks the debugger would also be interesting.....)&lt;BR /&gt;&lt;BR /&gt;Rich&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's nothing peculiar about declaring a static variable in an ISR. If an initial value is supplied, the startup code will initialize it (along with other initial data) provided it locates within a data section the startup code knows about. The flash driver itself locates in RAM, probably in the same space as your static variable. It's unclear why this would cause a problem for the flash driver initialization since interrupts get disabled at the start of a debug session, and active and pending interrupts are cleared. You'll need to post your code and/or a project which can reproduce the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-Issues/m-p/532026#M2816</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:20Z</dc:date>
    </item>
  </channel>
</rss>

