How Can I Use malloc function on my s32k142 Project

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

How Can I Use malloc function on my s32k142 Project

701 次查看
tonnyloy
Contributor I

Hi all,

I want to use  dynamic memory locate like bellow 

(uint8_t *)malloc(8); 

and I make sure I already   #include <stdlib.h>

and compiler results are like this error

pastedImage_1.png

So how can I fix it? 

thanks

标记 (2)
0 项奖励
1 回复

648 次查看
tonnyloy
Contributor I

I found a work around method for me.  just  at the   Properties -> C/C++ Build -> Settings ->Standard S32DS C Linker -> Miscellaneous -> Linker flags 

--specs=nosys.specs

0 项奖励