<?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 Re: Debugging of LPC1830(I2C) in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559902#M15626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by shiggy on Sun Aug 18 06:55:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added the bellow statments at the end of main.c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a result, the compile error in debug mode was resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I can not know the reason of resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#ifdef&amp;nbsp; DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void check_failed(uint8_t *file, uint32_t line)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* User can add his own implementation to report the file name and line number,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Infinite loop */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shiggy&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:36:39 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:36:39Z</dc:date>
    <item>
      <title>Debugging of LPC1830(I2C)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559898#M15622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by shiggy on Fri Aug 16 20:54:54 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now debugging the I2C1 interface on the board of LPC1830_Xplorer board from NGX,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using the LPCXpresso v5.0.14 and v5.2.6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Re1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I compilte the the attached program in Debug mode, "undefined reference to "check failed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But When I compilte the the attached program in Release mode, "undefined reference to "check failed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error does not happen. And the program runs correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Re2)The compile errors depend CHECK_PARAM(PARAM_I2Cx(I2Cx)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when the statement of CHECK_PARAM(PARAM_I2Cx(I2Cx)) was commentalized(or deleted),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no compile error. But the program does not run correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I2C1 function retturns error code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can not resolve this issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I get comment for this question from any one, I am very happy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And if there is a question for my contribution, please tell me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I am a beginner of this forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shiggy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338156"&gt;AAA.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:36:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559898#M15622</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging of LPC1830(I2C)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559899#M15623</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 Sat Aug 17 10:52:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a function that you need to provide in debug mode. It is for you to trap and report errors. Suggest you read the function header.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:36:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559899#M15623</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging of LPC1830(I2C)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559900#M15624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by shiggy on Sat Aug 17 15:54:05 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi TheFallGully-san!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks your important suggestion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you write your answer in easy English, I can understand your meanings of the answer, I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my poor English and my debug techinique.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shiggy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559900#M15624</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging of LPC1830(I2C)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559901#M15625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by shiggy on Sat Aug 17 17:24:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have considered the function of CHECK_PARAM(PARAM__I2Cx(I2Cx).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At compiler stage, the function must not be checked, and at execution stage,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it must be done, I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But my compiler(LPCXpresso) checks the function at compiler stage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SO I think any direction which say to compiler("no check") is necessay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone give me reply or teach, I am very happy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;note) In release mode, the compile and execution is no probrem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shiggy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559901#M15625</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging of LPC1830(I2C)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559902#M15626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by shiggy on Sun Aug 18 06:55:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added the bellow statments at the end of main.c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a result, the compile error in debug mode was resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I can not know the reason of resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#ifdef&amp;nbsp; DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void check_failed(uint8_t *file, uint32_t line)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* User can add his own implementation to report the file name and line number,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Infinite loop */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shiggy&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:36:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugging-of-LPC1830-I2C/m-p/559902#M15626</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:36:39Z</dc:date>
    </item>
  </channel>
</rss>

