How Can I Use malloc function on my s32k142 Project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How Can I Use malloc function on my s32k142 Project

959 Views
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

Tags (2)
0 Kudos
Reply
1 Reply

906 Views
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 Kudos
Reply