<?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>LPC MicrocontrollersのトピックRe: Trouble with configuring PIO0_16 as output LPC802</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trouble-with-configuring-PIO0-16-as-output-LPC802/m-p/1165334#M42519</link>
    <description>&lt;P&gt;Hello Gustavo,&lt;/P&gt;&lt;P&gt;I see that port is an input because I put my oscilloscope probe on that pin and signal behaves like a high impedance input. I test a new part to discard port was broken, but same occur.&lt;/P&gt;&lt;P&gt;I migrate my project from MCUxpresso IDE v11.0.0 to v11.1.0 and then to v11.2.0 and same happend in all IDEs.&lt;/P&gt;&lt;P&gt;It is not the first project that it happens to me that one pin configuration is not applied like in pin_mux.c appears. In both "corrupted" projects pin generator tool uses port and pin direct number instead of pin tags desbribed in pin_mux.h for the "corrupted" pin.&lt;/P&gt;&lt;P&gt;If I start a new project from zero and copy my source.c from wrong project to new one, then the problem dissapears.&lt;/P&gt;&lt;P&gt;I think that is some thing that I do which it leaves project wrong. Maybe the reason could be that I've been trying to write in read only pin_mux.c file ?&lt;/P&gt;&lt;P&gt;I will continue observing.&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 16:29:29 GMT</pubDate>
    <dc:creator>asier</dc:creator>
    <dc:date>2020-10-09T16:29:29Z</dc:date>
    <item>
      <title>Trouble with configuring PIO0_16 as output LPC802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trouble-with-configuring-PIO0-16-as-output-LPC802/m-p/1162835#M42462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use Pin Configurator tool in my project with MCUXpresso v11.2.0_4120 IDE.&lt;/P&gt;&lt;P&gt;All was correct until I wanted to use a not using pin as output TEST port. So I configure that port (PIO0_16) as output and Logical 0 and generate code.&lt;/P&gt;&lt;P&gt;When I run code on my custom board, I can see that PIO0_16 port is input direction and not output as expected.&lt;/P&gt;&lt;P&gt;If I open the file generated by the tool pin_mux.c, we have next:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;........&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;gpio_pin_config_t DISP_config = {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.pinDirection = kGPIO_DigitalOutput,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.outputLogic = 0U,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* Initialize GPIO functionality on pin PIO0_11 (pin 9) */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;GPIO_PinInit(BOARD_INITPINS_DISP_GPIO, BOARD_INITPINS_DISP_PORT, BOARD_INITPINS_DISP_PIN, &amp;amp;DISP_config);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;gpio_pin_config_t X0_config = {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.pinDirection = kGPIO_DigitalInput,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;.outputLogic = 0U,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* Initialize GPIO functionality on pin PIO0_15 (pin 11) */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;GPIO_PinInit(BOARD_INITPINS_X0_GPIO, BOARD_INITPINS_X0_PORT, BOARD_INITPINS_X0_PIN, &amp;amp;X0_config);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;gpio_pin_config_t gpio0_pin0_16 = {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;.pinDirection = kGPIO_DigitalOutput,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;.outputLogic = 0U,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;/* Initialize GPIO functionality on pin PIO0_16 (pin ) */&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;GPIO_PinInit(GPIO, 0U, 16U, &amp;amp;gpio0_pin0_16);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;..&lt;FONT face="arial,helvetica,sans-serif"&gt;....&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;It seems ok but using of "0U" and "16U" numbers catches my attention. In other pin configuration code tags are using instead port pin direct numbers. So I was expecting next code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;gpio_pin_config_TEST_config = {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;.pinDirection = kGPIO_DigitalOutput,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;.outputLogic = 0U,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;};&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;/* Initialize GPIO functionality on pin PIO0_16 (pin ) */&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;GPIO_PinInit(GPIO, BOARD_INITPINS_TEST_PORT, BOARD_INITPINS_TEST_PIN, &amp;amp;TEST_config);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I dont know if that bears relation with the trouble.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Any helping with that rare problem ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;thanks in advance,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Asier.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 09:29:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trouble-with-configuring-PIO0-16-as-output-LPC802/m-p/1162835#M42462</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2020-10-05T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with configuring PIO0_16 as output LPC802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trouble-with-configuring-PIO0-16-as-output-LPC802/m-p/1164246#M42495</link>
      <description>&lt;P&gt;Hello Asier,&lt;/P&gt;
&lt;P&gt;I was checking the code generated with the SDK 2.8 version installed and the code is slightly different, but the configuration is ultimately the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize GPIO functionality on pin PIO0_16 (pin 1)&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_PinInit(BOARD_INITPINS_I2C_SCL_GPIO, BOARD_INITPINS_I2C_SCL_PORT, BOARD_INITPINS_I2C_SCL_PIN, &amp;amp;I2C_SCL_config);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;Where BOARD_INITPINS_I2C_SCL_GPIO us defubed as “GPIO” (/*!&amp;lt;@brief GPIO device name: GPIO */)&lt;/P&gt;
&lt;P&gt;BOARD_INITPINS_I2C_SCL_PORT is defined as “0U” (/*!&amp;lt;@brief PORT device index: 0 */)&lt;/P&gt;
&lt;P&gt;and BOARD_INITPINS_I2C_SCL_PIN is defined as “16U” (/*!&amp;lt;@brief PIO0 GPIO pin index: 16 */)&lt;/P&gt;
&lt;P&gt;The pin direction and output logic also look okay.&lt;/P&gt;
&lt;P&gt;It is indeed a rare situation. How is it that you are seeing this pin as input instead of as output after the initialization? Maybe that can provide more information on what may be the problem.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gustavo&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 01:33:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trouble-with-configuring-PIO0-16-as-output-LPC802/m-p/1164246#M42495</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2020-10-08T01:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with configuring PIO0_16 as output LPC802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trouble-with-configuring-PIO0-16-as-output-LPC802/m-p/1165334#M42519</link>
      <description>&lt;P&gt;Hello Gustavo,&lt;/P&gt;&lt;P&gt;I see that port is an input because I put my oscilloscope probe on that pin and signal behaves like a high impedance input. I test a new part to discard port was broken, but same occur.&lt;/P&gt;&lt;P&gt;I migrate my project from MCUxpresso IDE v11.0.0 to v11.1.0 and then to v11.2.0 and same happend in all IDEs.&lt;/P&gt;&lt;P&gt;It is not the first project that it happens to me that one pin configuration is not applied like in pin_mux.c appears. In both "corrupted" projects pin generator tool uses port and pin direct number instead of pin tags desbribed in pin_mux.h for the "corrupted" pin.&lt;/P&gt;&lt;P&gt;If I start a new project from zero and copy my source.c from wrong project to new one, then the problem dissapears.&lt;/P&gt;&lt;P&gt;I think that is some thing that I do which it leaves project wrong. Maybe the reason could be that I've been trying to write in read only pin_mux.c file ?&lt;/P&gt;&lt;P&gt;I will continue observing.&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 16:29:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trouble-with-configuring-PIO0-16-as-output-LPC802/m-p/1165334#M42519</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2020-10-09T16:29:29Z</dc:date>
    </item>
  </channel>
</rss>

