4 Replies Latest reply on May 27, 2015 5:12 PM by nniles

    MCU shared memory

    Nav87

      hello,

      Does any know how much memory is being shared by MCU and the atom processor?

      are malloc supported in the MCU?

       

      Thank You

      Nav

        • 1. Re: MCU shared memory
          JPMontero_Intel

          Hi Nav87,      


          The Atom and Quark communicate through IPC not shared memory. There are only three channels for IPC.

           

          Regards,
          JPMontero_Intel

          • 2. Re: MCU shared memory
            nniles

            The MCU SDK guide says that one should not use malloc in MCU code (which sounds like it is probably supported, but...?).

             

            Related to the question of memory - it appears as though there is some limit to the amount of data that can be queued to any of the IPC channels, and that they all stop communicating if any one is full.  Reading some data out of the full buffer appears to alleviate the issue.

             

            Maybe this is standard Linux behavior, or it could be configured to spill rather than stall?

            • 3. Re: MCU shared memory
              JPMontero_Intel

              Hi nniles,

               

              We tested the MCU via IPC with debug_print, host_send and host_receive but couldn't replicate the issue. Could you let us know how are you getting this behavior? What information are you sending? Which IPC channel are you using? Could you also indicate which steps you followed to ease the issue? 

               

              Regards,
              JPMontero_Intel

              • 4. Re: MCU shared memory
                nniles

                JPMontero_Intel,

                 

                I will try to make time to look into it more this weekend.  It seemed intermittent, so I'm not sure that it wasn't something else in my code.  If I can assure myself that my code's not buggy and still see the issue, I will post the code for you.

                 

                Thanks,