<?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 sscanf question in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1915942#M23942</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working with LPC804 and MCUXpresso IDE.&lt;/P&gt;&lt;P&gt;I'm trying to do work sscanf but no way.&lt;/P&gt;&lt;P&gt;My example is the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;char buff[] = "12";
int i;
sscanf(buff,"%d",&amp;amp;i);

if (i == 12){
GPIO_PinWrite(BOARD_INITPINS_BLOQ_GPIO,BOARD_INITPINS_BLOQ_PORT,BOARD_INITPINS_BLOQ_PIN, 1);
}&lt;/LI-CODE&gt;&lt;P&gt;Any idea what is wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 08:19:40 GMT</pubDate>
    <dc:creator>asier</dc:creator>
    <dc:date>2024-07-24T08:19:40Z</dc:date>
    <item>
      <title>sscanf question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1915942#M23942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working with LPC804 and MCUXpresso IDE.&lt;/P&gt;&lt;P&gt;I'm trying to do work sscanf but no way.&lt;/P&gt;&lt;P&gt;My example is the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;char buff[] = "12";
int i;
sscanf(buff,"%d",&amp;amp;i);

if (i == 12){
GPIO_PinWrite(BOARD_INITPINS_BLOQ_GPIO,BOARD_INITPINS_BLOQ_PORT,BOARD_INITPINS_BLOQ_PIN, 1);
}&lt;/LI-CODE&gt;&lt;P&gt;Any idea what is wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 08:19:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1915942#M23942</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2024-07-24T08:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: sscanf question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1916801#M23944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/79750"&gt;@asier&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you use this pin, please initialize the configuration for this pin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Hang&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 03:57:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1916801#M23944</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2024-07-25T03:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: sscanf question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1940560#M23996</link>
      <description>&lt;P&gt;Hi HangZhang,&lt;/P&gt;&lt;P&gt;The pin is correctly initialized and it works fine.&lt;/P&gt;&lt;P&gt;The issue is not with "GPIO_PinWrite" instruction, but with "sscanf".&lt;/P&gt;&lt;P&gt;"i" does not get 12 value after executing "sscanf(buff,"%d",&amp;amp;i);" code line.&lt;/P&gt;&lt;P&gt;What is wrong when using sscanf in our example?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 16:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1940560#M23996</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2024-08-26T16:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: sscanf question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1940822#M24000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/79750"&gt;@asier&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I refer to your code, i can&amp;nbsp;get 12 value after executing "sscanf(buff,"%d",&amp;amp;i);" code line.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HangZhang_0-1724726855044.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295427i465EB5CAFDD04B13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HangZhang_0-1724726855044.png" alt="HangZhang_0-1724726855044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I share my code with you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Hang&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 02:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1940822#M24000</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2024-08-27T02:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: sscanf question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1944460#M24004</link>
      <description>&lt;P&gt;Hi HangZhang,&lt;/P&gt;&lt;P&gt;My problem was that I was doing&amp;nbsp;uint16_t i; instead int i;.&lt;/P&gt;&lt;P&gt;I don't know why but when using&amp;nbsp;uint16_t i; sscanf stucks.&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 11:45:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/sscanf-question/m-p/1944460#M24004</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2024-08-30T11:45:57Z</dc:date>
    </item>
  </channel>
</rss>

