<?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のトピックNeed real time debugging idea.</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Need-real-time-debugging-idea/m-p/548810#M10700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by noritan_org on Sat Feb 13 01:41:52 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I need any real-time debugging idea using LPCXpresso tool-chain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTIVE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adjust parameters during the feedback loop consisting of a software, i.e. a digital filter, is running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have following ideas, but do not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(1) Adjust the parameter in variables with the debugged.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the parameters are assigned to variables, these are listed in the "Variables" view of the LPCXpresso IDE. The variables can be updated by the IDE.&amp;nbsp; But, this does not work, because the "Variables" view is not available&amp;nbsp; when the processor is running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(2) Adjust the parameter using fgetc() functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is available to adjust parameters by implementing a tiny routine using fgetc() function to get commands from the LPCXpresso IDE, parse the command, and update the parameter. I have implemented a dispatcher in the main loop. But this does not work because the fgetc() function is a BLOCK type function to wait for an input from IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(3) Adjust the parameter using external UART terminal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is available to adjust paramters by implementing a tiny routine using UART interface to get and parse commands, and then update parameters. A dispatcher can be included in the main loop and I think this does work. But this solution needs additional hardware externally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give me any ideas to solve my requirement ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is better to have a NON-BLOCKING type fgetc() function for the solution (2)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:40:03 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:40:03Z</dc:date>
    <item>
      <title>Need real time debugging idea.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Need-real-time-debugging-idea/m-p/548810#M10700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by noritan_org on Sat Feb 13 01:41:52 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I need any real-time debugging idea using LPCXpresso tool-chain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTIVE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adjust parameters during the feedback loop consisting of a software, i.e. a digital filter, is running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have following ideas, but do not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(1) Adjust the parameter in variables with the debugged.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the parameters are assigned to variables, these are listed in the "Variables" view of the LPCXpresso IDE. The variables can be updated by the IDE.&amp;nbsp; But, this does not work, because the "Variables" view is not available&amp;nbsp; when the processor is running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(2) Adjust the parameter using fgetc() functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is available to adjust parameters by implementing a tiny routine using fgetc() function to get commands from the LPCXpresso IDE, parse the command, and update the parameter. I have implemented a dispatcher in the main loop. But this does not work because the fgetc() function is a BLOCK type function to wait for an input from IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(3) Adjust the parameter using external UART terminal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is available to adjust paramters by implementing a tiny routine using UART interface to get and parse commands, and then update parameters. A dispatcher can be included in the main loop and I think this does work. But this solution needs additional hardware externally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give me any ideas to solve my requirement ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is better to have a NON-BLOCKING type fgetc() function for the solution (2)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Need-real-time-debugging-idea/m-p/548810#M10700</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need real time debugging idea.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Need-real-time-debugging-idea/m-p/548811#M10701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by noritan_org on Tue Feb 16 06:50:58 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have confirmed if any exception occurs when the "scanf()" function is executed. As the result, the "scanf()" function blocks the SysTick exception.&amp;nbsp; So, I don't think any other exceptions are accepted during the execution of "scanf()" function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any effective use of "scanf()" and "gets()" functions for debugging ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:40:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Need-real-time-debugging-idea/m-p/548811#M10701</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:40:04Z</dc:date>
    </item>
  </channel>
</rss>

