I am using MSP430F67791 to control a GSM module. My memory usage is
18688 bytes of CODE memory
10417 bytes of DATA memory (+ 232 absolute)
1141 bytes of CONST memory
So total of 30246 bytes used. And remaining memory is 2522 bytes of memory.
I am doing following operations.
unsigned char* msg = calloc(strlen("hello")+1, sizeof(unsigned char));
memset(msg, 0, strlen("hello")+1);
memcpy(msg,"hello", strlen("hello"));
Here the word 'hello' is corrupted.
Please tell me the reason for corruption. Am I exceding memory. My heal size is 3000.