<?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 Pin Assigment Tool Bugged For GPIOs in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Pin-Assigment-Tool-Bugged-For-GPIOs/m-p/2351026#M5239</link>
    <description>&lt;P&gt;When I use the pin tool and assign GPIO pins the generated code incorrectly assigns the PORT macro to the initialization code instead of the GPIO macro:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;expected 'GPIO_Type *' but argument is of type 'PORT_Type *'&lt;BR /&gt;hal_gpio_pin_config_t createAdapterGpioPinConfig(GPIO_Type *port, uint8_t pin, hal_gpio_direction_t direction, uint8_t level)&lt;/PRE&gt;&lt;P&gt;e.g in my pin_mux.h:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;/* Symbols to be used with GPIO driver */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_GPIO GPIOA /*!&amp;lt;@brief GPIO peripheral base pointer */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_INIT_GPIO_VALUE 1U /*!&amp;lt;@brief GPIO output initial state */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_GPIO_PIN_MASK (1U &amp;lt;&amp;lt; 17U) /*!&amp;lt;@brief GPIO pin mask */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;/* Symbols to be used with PORT driver */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_PORT PORTA /*!&amp;lt;@brief PORT peripheral base pointer */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_PIN 17U /*!&amp;lt;@brief PORT pin number */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_PIN_MASK (1U &amp;lt;&amp;lt; 17U) /*!&amp;lt;@brief PORT pin mask */&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Then in peripherals.c&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;gpioPinConfig = createAdapterGpioPinConfig(&lt;STRONG&gt;BOARD_INITPINS_LCD_BL_PORT&lt;/STRONG&gt;, BOARD_INITPINS_LCD_BL_PIN, BOARD_INITPINS_LCD_BL_PIN_DIRECTION, BOARD_INITPINS_LCD_BL_PIN_LEVEL);&lt;/PRE&gt;&lt;P&gt;I need to change to:&lt;/P&gt;&lt;PRE&gt;gpioPinConfig = createAdapterGpioPinConfig(&lt;STRONG&gt;BOARD_INITPINS_LCD_BL_GPIO&lt;/STRONG&gt;, BOARD_INITPINS_LCD_BL_PIN, BOARD_INITPINS_LCD_BL_PIN_DIRECTION, BOARD_INITPINS_LCD_BL_PIN_LEVEL);&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;This requires a manual edit of the peripherals.c code every time I make a change to the configuration. Is there any way to fix this permanently?&lt;BR /&gt;&lt;BR /&gt;Target Processor: MCXW71&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Apr 2026 00:05:04 GMT</pubDate>
    <dc:creator>cnebe-autopac</dc:creator>
    <dc:date>2026-04-15T00:05:04Z</dc:date>
    <item>
      <title>Pin Assigment Tool Bugged For GPIOs</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Pin-Assigment-Tool-Bugged-For-GPIOs/m-p/2351026#M5239</link>
      <description>&lt;P&gt;When I use the pin tool and assign GPIO pins the generated code incorrectly assigns the PORT macro to the initialization code instead of the GPIO macro:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;expected 'GPIO_Type *' but argument is of type 'PORT_Type *'&lt;BR /&gt;hal_gpio_pin_config_t createAdapterGpioPinConfig(GPIO_Type *port, uint8_t pin, hal_gpio_direction_t direction, uint8_t level)&lt;/PRE&gt;&lt;P&gt;e.g in my pin_mux.h:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;/* Symbols to be used with GPIO driver */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_GPIO GPIOA /*!&amp;lt;@brief GPIO peripheral base pointer */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_INIT_GPIO_VALUE 1U /*!&amp;lt;@brief GPIO output initial state */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_GPIO_PIN_MASK (1U &amp;lt;&amp;lt; 17U) /*!&amp;lt;@brief GPIO pin mask */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;/* Symbols to be used with PORT driver */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_PORT PORTA /*!&amp;lt;@brief PORT peripheral base pointer */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_PIN 17U /*!&amp;lt;@brief PORT pin number */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#define BOARD_INITPINS_LCD_BL_PIN_MASK (1U &amp;lt;&amp;lt; 17U) /*!&amp;lt;@brief PORT pin mask */&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Then in peripherals.c&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;gpioPinConfig = createAdapterGpioPinConfig(&lt;STRONG&gt;BOARD_INITPINS_LCD_BL_PORT&lt;/STRONG&gt;, BOARD_INITPINS_LCD_BL_PIN, BOARD_INITPINS_LCD_BL_PIN_DIRECTION, BOARD_INITPINS_LCD_BL_PIN_LEVEL);&lt;/PRE&gt;&lt;P&gt;I need to change to:&lt;/P&gt;&lt;PRE&gt;gpioPinConfig = createAdapterGpioPinConfig(&lt;STRONG&gt;BOARD_INITPINS_LCD_BL_GPIO&lt;/STRONG&gt;, BOARD_INITPINS_LCD_BL_PIN, BOARD_INITPINS_LCD_BL_PIN_DIRECTION, BOARD_INITPINS_LCD_BL_PIN_LEVEL);&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;This requires a manual edit of the peripherals.c code every time I make a change to the configuration. Is there any way to fix this permanently?&lt;BR /&gt;&lt;BR /&gt;Target Processor: MCXW71&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Apr 2026 00:05:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Pin-Assigment-Tool-Bugged-For-GPIOs/m-p/2351026#M5239</guid>
      <dc:creator>cnebe-autopac</dc:creator>
      <dc:date>2026-04-15T00:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pin Assigment Tool Bugged For GPIOs</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Pin-Assigment-Tool-Bugged-For-GPIOs/m-p/2351108#M5242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257898"&gt;@cnebe-autopac&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested it on my end.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2026-04-15_12-25-10.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/382384i66CB387E559549DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2026-04-15_12-25-10.png" alt="Snipaste_2026-04-15_12-25-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/* Get GPIO pin configuration */
hal_gpio_pin_config_t createAdapterGpioPinConfig(GPIO_Type *port, uint8_t pin, hal_gpio_direction_t direction, uint8_t level){
  hal_gpio_pin_config_t temp;&lt;/LI-CODE&gt;
&lt;P&gt;The generated code is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2026-04-15_12-25-10.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/382385i1F09589ED3EFE9A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2026-04-15_12-25-10.png" alt="Snipaste_2026-04-15_12-25-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can i reproduce this issue?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 04:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Pin-Assigment-Tool-Bugged-For-GPIOs/m-p/2351108#M5242</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-04-15T04:29:02Z</dc:date>
    </item>
  </channel>
</rss>

