Question
malloc on NUCLEOSTM32F429ZI
I want to use malloc to dynamically open a data buffer for my program.
my code is followed:
uint8_t *pModbus_Memory;
pModbus_Memory=malloc(2048*sizeof(uint8_t));
memset(pModbus_Memory,6,2048);
I can't set value for my opened memory. and also memcpy doesn't work either.
Does anybody know why?
Thank you for any advice.
