<?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 Peripherals with m0/m4 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Peripherals-with-m0-m4/m-p/948307#M37694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So am activating the m0 core of an LPC4337.&amp;nbsp; I have the core up and running, setting a shared memory variable when it is completed.&amp;nbsp; The m4 core waits for that variable to be set before continuing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that works just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I'm having is with the uart0.&amp;nbsp; I have data printing out, and on a non-multicore system the m4 prints data out just fine.&amp;nbsp; But, turning on the m0 core, I still get data but it's mangled.&amp;nbsp; So the question is-- who rules the universe with peripherals-- m0 or m4?&amp;nbsp; Do I need to init uart0 to the same values with both cores? &amp;nbsp; The m0 core goes into a endless while(1) loop, then the m4 initializes the uart… which doesn't seem to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Jul 2019 20:31:23 GMT</pubDate>
    <dc:creator>bwilcutt</dc:creator>
    <dc:date>2019-07-07T20:31:23Z</dc:date>
    <item>
      <title>Peripherals with m0/m4</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Peripherals-with-m0-m4/m-p/948307#M37694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So am activating the m0 core of an LPC4337.&amp;nbsp; I have the core up and running, setting a shared memory variable when it is completed.&amp;nbsp; The m4 core waits for that variable to be set before continuing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that works just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I'm having is with the uart0.&amp;nbsp; I have data printing out, and on a non-multicore system the m4 prints data out just fine.&amp;nbsp; But, turning on the m0 core, I still get data but it's mangled.&amp;nbsp; So the question is-- who rules the universe with peripherals-- m0 or m4?&amp;nbsp; Do I need to init uart0 to the same values with both cores? &amp;nbsp; The m0 core goes into a endless while(1) loop, then the m4 initializes the uart… which doesn't seem to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jul 2019 20:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Peripherals-with-m0-m4/m-p/948307#M37694</guid>
      <dc:creator>bwilcutt</dc:creator>
      <dc:date>2019-07-07T20:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Peripherals with m0/m4</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Peripherals-with-m0-m4/m-p/948308#M37695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="344222" data-username="bwilcutt@yahoo.com" href="https://community.nxp.com/people/bwilcutt@yahoo.com"&gt;Bryan Wilcutt&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;After configuration UART, in M0 core, we can directly use it.&lt;/P&gt;&lt;P&gt;You can have a look at the multicore_blinky demo under LPCopen &lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" title="https://www.nxp.com/support/developer-resources/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen Software for LPC43XX | NXP&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;in M4 core project has initialized the UART in&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;static void prvSetupHardware(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SystemCoreClockUpdate();&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Board_Init();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;you can add UART send code in M0 core project to test, for example:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp;* Wait for message from M4 core&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;void M4_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int i = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ipcex_msg_t msg;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_CREG_ClearM4Event();&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Chip_UART_SendBlocking(DEBUG_UART, "world",6);&lt;/SPAN&gt;//Alice test&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 09:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Peripherals-with-m0-m4/m-p/948308#M37695</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-07-09T09:43:17Z</dc:date>
    </item>
  </channel>
</rss>

