4 Replies Latest reply on Jun 21, 2014 1:05 AM by user_1377889

    Dynamic Memory Allocation in PSoC3

    seamus.brokaw

       Hello,

         

       

         

      In a recent project I was attempting to dynamically allocate arrays within functions but the results I would get were not consistent or expected. After browsing the forums I found some mention (by the ailurophile forum frequent Bob) that in order to correctly allocate memory using malloc, a call to initmemset must be used. However, I could not find documentation on this function and so I do not know how to use it.

         

       

         

      Is Bob correct in saying that malloc will not work without first calling initmemset? And if so, how do I correctly use initmemset?

         

       

         

      Thank you,

         

      Seamus