How to dynamically allocate memory on S32 DS?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to dynamically allocate memory on S32 DS?

跳至解决方案
1,125 次查看
Jeff-CF-Huang
Contributor III

Hi Sir,
Could you provide an example of allocating & releasing memory on S32DS? 

0 项奖励
回复
1 解答
1,087 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Are you referring to the usage of malloc() and free() functions?

If so, we do not see any specific implementation for it. You should be able to use it just by adding the required library, as shown below:

DanielAguirre_0-1694719936060.pngDanielAguirre_1-1694719990530.png

 

DanielAguirre_2-1694720000355.pngDanielAguirre_3-1694720008286.png

Please, let us know.

在原帖中查看解决方案

1 回复
1,088 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Are you referring to the usage of malloc() and free() functions?

If so, we do not see any specific implementation for it. You should be able to use it just by adding the required library, as shown below:

DanielAguirre_0-1694719936060.pngDanielAguirre_1-1694719990530.png

 

DanielAguirre_2-1694720000355.pngDanielAguirre_3-1694720008286.png

Please, let us know.