<?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: Config tool to FLEXCOM UART setup LPCXpresso 55S69 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1203760#M43355</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The config tool will help you to initialize the module, for the usart interruption you need to add what the code will do in the interruption. The function BOARD_InitBootPeripherals() initializes the peripheral and enables the interruptions based in your configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add the function USART_TransferCreateHandle() after calling the init function, in this way your code will execute code when an interruption is called.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Omar&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 17:50:56 GMT</pubDate>
    <dc:creator>Omar_Anguiano</dc:creator>
    <dc:date>2020-12-23T17:50:56Z</dc:date>
    <item>
      <title>Config tool to FLEXCOM UART setup LPCXpresso 55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1202517#M43320</link>
      <description>&lt;P&gt;So , I created a FC2 UART configuration using the MCUXpresso Config tool , it created code, which is good.&lt;/P&gt;&lt;P&gt;I am working under the usart_interrupt_rb_transfer.c example for testing. I fire up the code and it gets to the BOARD_InitBootPeripherals(); and then I get an assert trap.&lt;/P&gt;&lt;P&gt;The problem is that an interrupt is being call for FC2 and there isn't a routine in there yet.&lt;/P&gt;&lt;P&gt;Some background, this example doesn't actually use the configuration tool for the example, it initialized the DEMO_USART in a manual way. This is fine and understandable. It configures the interrupt return routine in the USART_TransferCreateHandle() function.&lt;/P&gt;&lt;P&gt;My question is , when you use the Config tool, the code created does nothing with the interrupt service routine, so should I be setting this up BEFORE calling BOARD_InitBootPeripherals() ?? Why isn't there a ready made hook.&lt;/P&gt;&lt;P&gt;I guess I could turn off Enabled in initialization in Configuration screen. Then I can turn it on normally.&lt;BR /&gt;Its just not logical behavior , but then my expectations don't make something True...am I right?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 13:59:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1202517#M43320</guid>
      <dc:creator>a_guy</dc:creator>
      <dc:date>2020-12-21T13:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Config tool to FLEXCOM UART setup LPCXpresso 55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1202526#M43321</link>
      <description>&lt;P&gt;The assert occurs in the fsl_flexcomm.c source&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#if defined(FLEXCOMM2)
void FLEXCOMM2_DriverIRQHandler(void)
{
    assert(s_flexcommIrqHandler[2]);
    s_flexcommIrqHandler[2]((uint32_t *)s_flexcommBaseAddrs[2], s_flexcommHandle[2]);
    SDK_ISR_EXIT_BARRIER;
}
#endif&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Dec 2020 14:22:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1202526#M43321</guid>
      <dc:creator>a_guy</dc:creator>
      <dc:date>2020-12-21T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Config tool to FLEXCOM UART setup LPCXpresso 55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1202550#M43323</link>
      <description>&lt;P&gt;I am starting to think that I can't use the MCU Config with the example program I am using.&amp;nbsp; I think there is an assumption that the MCU config will generate a blank template, and the example wants to use a larger library , with a few things taken care of ....&lt;/P&gt;&lt;P&gt;I think I should just use the example program setup and just undo the MCU Config Tool for now.&lt;BR /&gt;I would be nice if there was a UART walk through with the expected pieces needed after using the Config Tool.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 15:26:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1202550#M43323</guid>
      <dc:creator>a_guy</dc:creator>
      <dc:date>2020-12-21T15:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Config tool to FLEXCOM UART setup LPCXpresso 55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1203760#M43355</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The config tool will help you to initialize the module, for the usart interruption you need to add what the code will do in the interruption. The function BOARD_InitBootPeripherals() initializes the peripheral and enables the interruptions based in your configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add the function USART_TransferCreateHandle() after calling the init function, in this way your code will execute code when an interruption is called.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 17:50:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1203760#M43355</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2020-12-23T17:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Config tool to FLEXCOM UART setup LPCXpresso 55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1203765#M43356</link>
      <description>&lt;P&gt;The problem is that the BOARD_InitBootPeripherals() was enabling the interrupt. While debugging this was causing an assert because the interrupt was enabled before you could call the USART_TransferCreateHandle() function.&lt;BR /&gt;&lt;BR /&gt;If the "solution" is to remove that from the generated code, then fine, but why enable interrupts if the callback routine isn't set yet. Its like there is a step missing in the code creation, like connecting a dummy callback should be done.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 18:33:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Config-tool-to-FLEXCOM-UART-setup-LPCXpresso-55S69/m-p/1203765#M43356</guid>
      <dc:creator>a_guy</dc:creator>
      <dc:date>2020-12-23T18:33:35Z</dc:date>
    </item>
  </channel>
</rss>

