<?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: Faulty assert() in USART_SetBaudRate() of fsl_uart.c for LPC80x</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912887#M36515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that this issue is fixed in the lastest LPC80x SDK v2.7.0 (Dec 2019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2020 08:12:29 GMT</pubDate>
    <dc:creator>roberto74</dc:creator>
    <dc:date>2020-01-10T08:12:29Z</dc:date>
    <item>
      <title>Faulty assert() in USART_SetBaudRate() of fsl_uart.c for LPC80x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912884#M36512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the lastest McuXpresso v11 and LPCXpresso804 SDK v2.6.0, I noticed when setting the baudrate of a USART to 57600 or either 115200 bps an assert got triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* If the baud rate calculated is not very precise, please select the FRG clock as&lt;BR /&gt; * the USART's source clock, and set the FRG frequency to a more suitable value.&lt;BR /&gt; */&lt;BR /&gt; assert(diff &amp;lt; ((baudrate_Bps / 100) * 3));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should in my opinion be changed to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* If the baud rate calculated is not very precise, please select the FRG clock as&lt;BR /&gt; * the USART's source clock, and set the FRG frequency to a more suitable value.&lt;BR /&gt; */&lt;BR /&gt; assert(best_diff &amp;lt; ((baudrate_Bps / 100) * 3));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this change I was able to successfully set the baudrate to 115k2 (or 57k6) within my application.&lt;/P&gt;&lt;P&gt;Hopefully you agree with this change so it can be incorparated to prevent others bumping into this faulty assert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 20:15:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912884#M36512</guid>
      <dc:creator>roberto74</dc:creator>
      <dc:date>2019-06-27T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Faulty assert() in USART_SetBaudRate() of fsl_uart.c for LPC80x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912885#M36513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="332835" data-objecttype="3" href="https://community.nxp.com/people/mike.katz@nucurrent.com" rel="nofollow noopener noreferrer" target="_blank"&gt;Mike Katz&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Yes, it should be replaced by the below code, I'll report it to SDK team for checking.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;assert&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; best_diff &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;baudrate_Bps &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2019 06:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912885#M36513</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-06-29T06:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Faulty assert() in USART_SetBaudRate() of fsl_uart.c for LPC80x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912886#M36514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, problem is already known: &lt;A href="https://community.nxp.com/thread/501767"&gt;https://community.nxp.com/thread/501767&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:21:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912886#M36514</guid>
      <dc:creator>1234567890</dc:creator>
      <dc:date>2019-07-03T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Faulty assert() in USART_SetBaudRate() of fsl_uart.c for LPC80x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912887#M36515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that this issue is fixed in the lastest LPC80x SDK v2.7.0 (Dec 2019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 08:12:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Faulty-assert-in-USART-SetBaudRate-of-fsl-uart-c-for-LPC80x/m-p/912887#M36515</guid>
      <dc:creator>roberto74</dc:creator>
      <dc:date>2020-01-10T08:12:29Z</dc:date>
    </item>
  </channel>
</rss>

