Dynamic Memory Allocation in PSoC3 | Cypress Semiconductor
Dynamic Memory Allocation in PSoC3
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?