<?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のトピックMCUXpresso Dual Core Project shared variables</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-Dual-Core-Project-shared-variables/m-p/1530949#M50314</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm working with a dual core project CM4 Master, CM0 Slave on LPC54102 microprocessor.&lt;/P&gt;&lt;P&gt;I need to share some variables from Master core to Slave core and viceversa. I saw the Mutex example and my question is:&lt;/P&gt;&lt;P&gt;Is the Mutex the only way to share variables or is possible to declare some variables to be placed at determinated adresses in RAM on both Master and Slave core in order to read/write this variables from both cores?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2022 07:49:54 GMT</pubDate>
    <dc:creator>eu_mtaverna</dc:creator>
    <dc:date>2022-09-30T07:49:54Z</dc:date>
    <item>
      <title>MCUXpresso Dual Core Project shared variables</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-Dual-Core-Project-shared-variables/m-p/1530949#M50314</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm working with a dual core project CM4 Master, CM0 Slave on LPC54102 microprocessor.&lt;/P&gt;&lt;P&gt;I need to share some variables from Master core to Slave core and viceversa. I saw the Mutex example and my question is:&lt;/P&gt;&lt;P&gt;Is the Mutex the only way to share variables or is possible to declare some variables to be placed at determinated adresses in RAM on both Master and Slave core in order to read/write this variables from both cores?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 07:49:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-Dual-Core-Project-shared-variables/m-p/1530949#M50314</guid>
      <dc:creator>eu_mtaverna</dc:creator>
      <dc:date>2022-09-30T07:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso Dual Core Project shared variables</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-Dual-Core-Project-shared-variables/m-p/1531948#M50319</link>
      <description>&lt;P&gt;I would check out what features intercommunication for multiprocessing your SDK actually implements.&lt;BR /&gt;Mutexes are one method.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; Is the Mutex the only way to share variables or is possible to declare some variables to be placed at determinated adresses in RAM on both Master and Slave core in order to read/write this variables from both cores?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This question sounds like you have not much experience with concurrency and multithreading/multiprocessing. I would suggest a primer like this one:&lt;BR /&gt;&lt;A href="https://www.educative.io/blog/multithreading-and-concurrency-fundamentals" target="_blank"&gt;https://www.educative.io/blog/multithreading-and-concurrency-fundamentals&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While in a multiprocessing environment like yours the cores actually work concurrently, the scheduler in a multithreaded system only makes the thread appear like they are processed concurrently.&lt;BR /&gt;The fundamental problems and concepts remain the same.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 06:38:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-Dual-Core-Project-shared-variables/m-p/1531948#M50319</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2022-10-04T06:38:36Z</dc:date>
    </item>
  </channel>
</rss>

