<?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: LPUART FreeRTOS peripherals config incomplete in MCUXpresso Config Tools</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2057485#M1933</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247711"&gt;@koj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The srcclk value in lpuart_rtos_config_t is used to config the&amp;nbsp;SOURCE CLOCK for LP_FLEXCOMM,&lt;/P&gt;
&lt;P&gt;If you use the&amp;nbsp;LP_FLEXCOMM2.&lt;/P&gt;
&lt;P&gt;Please config the clock for LP_FLEXCOMM2 first.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 04:08:52 GMT</pubDate>
    <dc:creator>Harry_Zhang</dc:creator>
    <dc:date>2025-03-07T04:08:52Z</dc:date>
    <item>
      <title>LPUART FreeRTOS peripherals config incomplete</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2057236#M1931</link>
      <description>&lt;P&gt;While configuring the LP_FLEXCOMM LPUART peripheral in FreeRTOS mode, the srcclk field is not populated correctly.&lt;/P&gt;&lt;P&gt;The clock source frequency is selected in the drop down list but doesn't appear in the peripherals.h nor the resulting config.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lpuart_rtos_config_t LP_FLEXCOMM2_rtos_config = {&lt;BR /&gt;.base = LP_FLEXCOMM2_PERIPHERAL,&lt;BR /&gt;.srcclk = 0UL,&lt;BR /&gt;.baudrate = 115200UL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No errors are reported Problems windows.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 17:07:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2057236#M1931</guid>
      <dc:creator>koj</dc:creator>
      <dc:date>2025-03-06T17:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART FreeRTOS peripherals config incomplete</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2057240#M1932</link>
      <description>&lt;P&gt;MCUXpresso IDE installation details attached.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 17:19:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2057240#M1932</guid>
      <dc:creator>koj</dc:creator>
      <dc:date>2025-03-06T17:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART FreeRTOS peripherals config incomplete</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2057485#M1933</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247711"&gt;@koj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The srcclk value in lpuart_rtos_config_t is used to config the&amp;nbsp;SOURCE CLOCK for LP_FLEXCOMM,&lt;/P&gt;
&lt;P&gt;If you use the&amp;nbsp;LP_FLEXCOMM2.&lt;/P&gt;
&lt;P&gt;Please config the clock for LP_FLEXCOMM2 first.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 04:08:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2057485#M1933</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-03-07T04:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART FreeRTOS peripherals config incomplete</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2058064#M1934</link>
      <description>&lt;P&gt;That is exactly what I did and the generated code is incomplete.&lt;/P&gt;&lt;P&gt;There is a bug in the tool.&lt;/P&gt;&lt;P&gt;Here's the output from peripherals.c where you can clearly see the timingConfig in the YAML is configured but that config is not applied to the .srcclk.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/***********************************************************************************************************************
 * LP_FLEXCOMM2 initialization code
 **********************************************************************************************************************/
/* clang-format off */
/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
instance:
- name: 'LP_FLEXCOMM2'
- type: 'lpflexcomm_lpuart'
- mode: 'freertos'
- custom_name_enabled: 'false'
- type_id: 'lpflexcomm_lpuart_2.3.0'
- functional_group: 'BOARD_InitPeripherals'
- peripheral: 'LP_FLEXCOMM2'
- config_sets:
  - fsl_lpuart_freertos:
    - lpuart_rtos_configuration:
      - timingConfig:
        - clockSource: 'LPFLEXCOMMFunctionClock'
        - lpuartSrcClkFreq: 'BOARD_BootClockPLL150M'
        - baudRateBpsStr: '115200'
      - parity: 'kLPUART_ParityDisabled'
      - stopbits: 'kLPUART_OneStopBit'
      - buffer_size: '512'
      - enableRxRTS: 'true'
      - enableTxCTS: 'true'
      - txCtsSource: 'kLPUART_CtsSourcePin'
      - txCtsConfig: 'kLPUART_CtsSampleAtStart'
      - rx_timeout_constant_ms: '10'
      - rx_timeout_multiplier_ms: '0'
      - tx_timeout_constant_ms: '10'
      - tx_timeout_multiplier_ms: '0'
    - interrupt_rx_tx:
      - IRQn: 'LP_FLEXCOMM2_IRQn'
      - enable_priority: 'true'
      - priority: '3'
 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
/* clang-format on */
lpuart_rtos_handle_t LP_FLEXCOMM2_rtos_handle;
lpuart_handle_t LP_FLEXCOMM2_lpuart_handle;
uint8_t LP_FLEXCOMM2_background_buffer[LP_FLEXCOMM2_BACKGROUND_BUFFER_SIZE];
lpuart_rtos_config_t LP_FLEXCOMM2_rtos_config = {
  .base = LP_FLEXCOMM2_PERIPHERAL,
  .srcclk = 0UL,
  .baudrate = 115200UL,
  .parity = kLPUART_ParityDisabled,
  .stopbits = kLPUART_OneStopBit,
  .buffer = LP_FLEXCOMM2_background_buffer,
  .buffer_size = 512UL,
  .enableRxRTS = true,
  .enableTxCTS = true,
  .txCtsSource = kLPUART_CtsSourcePin,
  .txCtsConfig = kLPUART_CtsSampleAtStart,
  .rx_timeout_constant_ms = 10UL,
  .rx_timeout_multiplier_ms = 0UL,
  .tx_timeout_constant_ms = 10UL,
  .tx_timeout_multiplier_ms = 0UL
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 17:52:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2058064#M1934</guid>
      <dc:creator>koj</dc:creator>
      <dc:date>2025-03-07T17:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART FreeRTOS peripherals config incomplete</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2062178#M1935</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247711"&gt;@koj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your information, i will report this issue.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 15:09:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPUART-FreeRTOS-peripherals-config-incomplete/m-p/2062178#M1935</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-03-14T15:09:41Z</dc:date>
    </item>
  </channel>
</rss>

