<?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中的主题 M4 &amp; M0 cores communication via SDRAM or IPC</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/M4-M0-cores-communication-via-SDRAM-or-IPC/m-p/579449#M20040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by maszup on Sat Apr 13 15:07:18 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;I'm begginer using LPC4357 with lpcxpresso and dual core. i have made both axf files and upladed them to both cores flash.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I'm trying to synchronize both cores in my software.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;First i decided to try using SDRAM. M4 is reading first 4bytes of SDRAM and M0 is writing to that bytes but M4 goes immediately to Hard Fault. I don't know if it is possible to read &amp;amp;amp; write SDRAM with two cores in the same time?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//M4&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;uint32_t *temp = (uint32_t*)SDRAM_BASE;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;while(1) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;sprintf(buff, "value = %d\r\n", temp[0]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;console_sendString(buff);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;TIM_Waitms(1000);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//M0&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;uint32_t *temp = (uint32_t*)SDRAM_BASE;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;uint32_t idx =0;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;while(1) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; temp[0] = idx++%100000;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;but on cosole i get some rubbish like "&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;" and console stops, probably M4 goes to hard fault . WHat is going on here?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then i thought of using IPC but i do not have examples under LPCxpresso only under Keil. The example of IPC is nice but it is using M0 image read from CM0_image.c file &amp;nbsp;and M4 is uploading this image to M0. I do not know how to generate such a file in LPCxpresso. The examples is here:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan11177-inter-processor-communication-lpc43xx" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11177-inter-processor-communication-lpc43xx&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan11177-inter-processor-communication-lpc43xx" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11177-inter-processor-communication-lpc43xx&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:02:41 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:02:41Z</dc:date>
    <item>
      <title>M4 &amp; M0 cores communication via SDRAM or IPC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/M4-M0-cores-communication-via-SDRAM-or-IPC/m-p/579449#M20040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by maszup on Sat Apr 13 15:07:18 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;I'm begginer using LPC4357 with lpcxpresso and dual core. i have made both axf files and upladed them to both cores flash.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I'm trying to synchronize both cores in my software.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;First i decided to try using SDRAM. M4 is reading first 4bytes of SDRAM and M0 is writing to that bytes but M4 goes immediately to Hard Fault. I don't know if it is possible to read &amp;amp;amp; write SDRAM with two cores in the same time?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//M4&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;uint32_t *temp = (uint32_t*)SDRAM_BASE;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;while(1) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;sprintf(buff, "value = %d\r\n", temp[0]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;console_sendString(buff);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;TIM_Waitms(1000);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//M0&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;uint32_t *temp = (uint32_t*)SDRAM_BASE;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;uint32_t idx =0;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;while(1) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; temp[0] = idx++%100000;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;but on cosole i get some rubbish like "&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;&amp;amp;lt;0&amp;amp;gt;" and console stops, probably M4 goes to hard fault . WHat is going on here?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then i thought of using IPC but i do not have examples under LPCxpresso only under Keil. The example of IPC is nice but it is using M0 image read from CM0_image.c file &amp;nbsp;and M4 is uploading this image to M0. I do not know how to generate such a file in LPCxpresso. The examples is here:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan11177-inter-processor-communication-lpc43xx" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11177-inter-processor-communication-lpc43xx&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan11177-inter-processor-communication-lpc43xx" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11177-inter-processor-communication-lpc43xx&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:02:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/M4-M0-cores-communication-via-SDRAM-or-IPC/m-p/579449#M20040</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:02:41Z</dc:date>
    </item>
  </channel>
</rss>

