<?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>Kinetis Software Development Kit中的主题 freeRTOS_UART example faults in UART_RTOS_Send</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/freeRTOS-UART-example-faults-in-UART-RTOS-Send/m-p/963047#M7979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="" style="color: #333333; background-color: #ffffff; border: 0px; margin: 6px 0px 0px;"&gt;MCUXpresso IDE v11.0.0 [Build 2516] [2019-06-05]&lt;/P&gt;&lt;P class="" style="color: #333333; background-color: #ffffff; border: 0px; margin: 6px 0px 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Device:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;MKL26Z256xxx4&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;SDK_2.x_MKL26Z256xxx4&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;2.4.1&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="color: #333333; background-color: #ffffff; border: 0px; padding: 4px 0px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I started with the freeRTOS_UART example project.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I had to change the MCU and package.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;See attached project&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;My custom board has a&amp;nbsp;MKL26Z256 that is connected to a modem at 115200.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;In fsl_uart_freertos.c,&amp;nbsp;UART_RTOS_Send() calls&amp;nbsp;UART_TransferSendNonBlocking().&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The problem is that&amp;nbsp;&lt;STRONG&gt;UART_RTOS_Send()'s 2nd parameters is not a&amp;nbsp;uart_handle_t *.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f;"&gt;This causes a fault when&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;UART_TransferSendNonBlocking() attempts to deference&amp;nbsp;the bad pointer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Call stack:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Thread #2 536867576 (Uart_task : Running [P: 4]) (Suspended : Breakpoint)&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;UART_TransferSendNonBlocking() at fsl_uart.c:734 0x18a0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UART_RTOS_Send() at fsl_uart_freertos.c:229 0x6e8e&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uart_task() at freertos_uart.c:133 0x5ec&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pxPortInitialiseStack() at port.c:102 0x2dfc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The amazon-freertos code appears to be out of sync with the generated drivers files.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Does anyone have a suggestion that will correct this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Bruce&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2019 23:15:21 GMT</pubDate>
    <dc:creator>bgraham</dc:creator>
    <dc:date>2019-07-24T23:15:21Z</dc:date>
    <item>
      <title>freeRTOS_UART example faults in UART_RTOS_Send</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/freeRTOS-UART-example-faults-in-UART-RTOS-Send/m-p/963047#M7979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="" style="color: #333333; background-color: #ffffff; border: 0px; margin: 6px 0px 0px;"&gt;MCUXpresso IDE v11.0.0 [Build 2516] [2019-06-05]&lt;/P&gt;&lt;P class="" style="color: #333333; background-color: #ffffff; border: 0px; margin: 6px 0px 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Device:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;MKL26Z256xxx4&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;SDK_2.x_MKL26Z256xxx4&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;2.4.1&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="color: #333333; background-color: #ffffff; border: 0px; padding: 4px 0px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I started with the freeRTOS_UART example project.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I had to change the MCU and package.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;See attached project&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;My custom board has a&amp;nbsp;MKL26Z256 that is connected to a modem at 115200.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;In fsl_uart_freertos.c,&amp;nbsp;UART_RTOS_Send() calls&amp;nbsp;UART_TransferSendNonBlocking().&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The problem is that&amp;nbsp;&lt;STRONG&gt;UART_RTOS_Send()'s 2nd parameters is not a&amp;nbsp;uart_handle_t *.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f;"&gt;This causes a fault when&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;UART_TransferSendNonBlocking() attempts to deference&amp;nbsp;the bad pointer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Call stack:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Thread #2 536867576 (Uart_task : Running [P: 4]) (Suspended : Breakpoint)&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;UART_TransferSendNonBlocking() at fsl_uart.c:734 0x18a0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UART_RTOS_Send() at fsl_uart_freertos.c:229 0x6e8e&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uart_task() at freertos_uart.c:133 0x5ec&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pxPortInitialiseStack() at port.c:102 0x2dfc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The amazon-freertos code appears to be out of sync with the generated drivers files.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Does anyone have a suggestion that will correct this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Bruce&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 23:15:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/freeRTOS-UART-example-faults-in-UART-RTOS-Send/m-p/963047#M7979</guid>
      <dc:creator>bgraham</dc:creator>
      <dc:date>2019-07-24T23:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS_UART example faults in UART_RTOS_Send</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/freeRTOS-UART-example-faults-in-UART-RTOS-Send/m-p/963048#M7980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="326344" data-username="bgraham@technosofteng.com" href="https://community.nxp.com/people/bgraham@technosofteng.com"&gt;Bruce&lt;/A&gt;：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged your code on my board. Please see below picture.&lt;/P&gt;&lt;P&gt;The parameters transfer is OK.&lt;/P&gt;&lt;P&gt;In your project, the variable "handle" address &amp;lt;0x15&amp;gt; is in flash, so it will result from a hardfault. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84513iE7EE292D2B914940/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I increased the stack size , then it&amp;nbsp; can work on my side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xTaskCreate(uart_task, "Uart_task", c&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;onfigMINIMAL_STACK_SIZE + 200&lt;/STRONG&gt;&lt;/SPAN&gt;, NULL, uart_task_PRIORITY, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please double check ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 07:11:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/freeRTOS-UART-example-faults-in-UART-RTOS-Send/m-p/963048#M7980</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-07-26T07:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS_UART example faults in UART_RTOS_Send</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/freeRTOS-UART-example-faults-in-UART-RTOS-Send/m-p/963049#M7981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, stack corruption.&lt;/P&gt;&lt;P&gt;I forget to increase the stack size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to sort out why the UART RX is always giving me a kStatus_UART_RxHardwareOverrun in the UART callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 13:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/freeRTOS-UART-example-faults-in-UART-RTOS-Send/m-p/963049#M7981</guid>
      <dc:creator>bgraham</dc:creator>
      <dc:date>2019-07-26T13:38:48Z</dc:date>
    </item>
  </channel>
</rss>

