<?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 msc8156 uart multicore in CodeWarrior for StarCore</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/msc8156-uart-multicore/m-p/215574#M375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to use multi-core (core 0 and 1) StarCore ADS project. &lt;/P&gt;&lt;P&gt;CodeWarrior for StarCore&lt;/P&gt;&lt;P&gt;Version: 10.2.9&lt;/P&gt;&lt;P&gt;Build Id:229&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using UART and UEC0 by core 0 (master).&lt;/P&gt;&lt;P&gt;Core 1 doesn't call UART and UEC0 for opening channels. &lt;/P&gt;&lt;P&gt;Initializations of UART and UEC0 (osInitialize()) are successful.&lt;/P&gt;&lt;P&gt;Task 0 Core 0 opens device and channel UEC0, transmits and receives&amp;nbsp; successful.&lt;/P&gt;&lt;P&gt;UEC0 has OS_HWI_PRIORITY0.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Task 0 Core 0 opens device and channel UART, only receives&amp;nbsp; successful,&lt;/P&gt;&lt;P&gt;UART has OS_HWI_PRIORITY0. &lt;/P&gt;&lt;P&gt;but when Task 0 Core 0 calls&amp;nbsp; osCioChannelTxBufferPut(&amp;amp;uart_tx) for some data transmitting, Debugging is being inaccessible for Core 0 and Core 1.&lt;/P&gt;&lt;P&gt;UEC0 channels stops transmitting and receiving (it is read by outside ethernet device)&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If function&amp;nbsp; osCioChannelTxBufferPut(&amp;amp;uart_tx) is not called UEC0&amp;nbsp;&amp;nbsp; transmits and receives&amp;nbsp; successful,&lt;/P&gt;&lt;P&gt;UART0 receives successful.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use single-core project and the same code for Core 0 - then UART and UEC0 transmit and receive&amp;nbsp; successful. &lt;/P&gt;&lt;P&gt;If I include code for Core 1 -&amp;nbsp; then call osCioChannelTxBufferPut(&amp;amp;uart_tx) breaks down debugging Core 0 and Core 1&lt;/P&gt;&lt;P&gt; Any ideas where I have mistake?&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configure in os_config.h &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define MSC815X_UART&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338852"&gt;uart.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 19:30:05 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2012-10-11T19:30:05Z</dc:date>
    <item>
      <title>msc8156 uart multicore</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/msc8156-uart-multicore/m-p/215574#M375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to use multi-core (core 0 and 1) StarCore ADS project. &lt;/P&gt;&lt;P&gt;CodeWarrior for StarCore&lt;/P&gt;&lt;P&gt;Version: 10.2.9&lt;/P&gt;&lt;P&gt;Build Id:229&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using UART and UEC0 by core 0 (master).&lt;/P&gt;&lt;P&gt;Core 1 doesn't call UART and UEC0 for opening channels. &lt;/P&gt;&lt;P&gt;Initializations of UART and UEC0 (osInitialize()) are successful.&lt;/P&gt;&lt;P&gt;Task 0 Core 0 opens device and channel UEC0, transmits and receives&amp;nbsp; successful.&lt;/P&gt;&lt;P&gt;UEC0 has OS_HWI_PRIORITY0.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Task 0 Core 0 opens device and channel UART, only receives&amp;nbsp; successful,&lt;/P&gt;&lt;P&gt;UART has OS_HWI_PRIORITY0. &lt;/P&gt;&lt;P&gt;but when Task 0 Core 0 calls&amp;nbsp; osCioChannelTxBufferPut(&amp;amp;uart_tx) for some data transmitting, Debugging is being inaccessible for Core 0 and Core 1.&lt;/P&gt;&lt;P&gt;UEC0 channels stops transmitting and receiving (it is read by outside ethernet device)&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If function&amp;nbsp; osCioChannelTxBufferPut(&amp;amp;uart_tx) is not called UEC0&amp;nbsp;&amp;nbsp; transmits and receives&amp;nbsp; successful,&lt;/P&gt;&lt;P&gt;UART0 receives successful.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use single-core project and the same code for Core 0 - then UART and UEC0 transmit and receive&amp;nbsp; successful. &lt;/P&gt;&lt;P&gt;If I include code for Core 1 -&amp;nbsp; then call osCioChannelTxBufferPut(&amp;amp;uart_tx) breaks down debugging Core 0 and Core 1&lt;/P&gt;&lt;P&gt; Any ideas where I have mistake?&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configure in os_config.h &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define MSC815X_UART&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338852"&gt;uart.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 19:30:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/msc8156-uart-multicore/m-p/215574#M375</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2012-10-11T19:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: msc8156 uart multicore</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/msc8156-uart-multicore/m-p/215575#M376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this problem you have to do a different initialization for the master and the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example for the UART : - master core use SmartDSP initialization&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Other core use this line&amp;nbsp;&amp;nbsp;&amp;nbsp; (g_msc815x_qbus-&amp;gt;epic).p_endis[5] = 0xFFFEFFFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem came from the fact that the UEC and UART device were provided for multicore use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 14:23:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/msc8156-uart-multicore/m-p/215575#M376</guid>
      <dc:creator>Jim95</dc:creator>
      <dc:date>2012-11-27T14:23:28Z</dc:date>
    </item>
  </channel>
</rss>

