AnsweredAssumed Answered

I can't copy data from RAM to RPAGE RAM with memcpy.

Question asked by j.y. on Sep 11, 2012
Latest reply on Sep 12, 2012 by kef

I can't copy data from RAM to RPAGE RAM with memcpy function.

 

Definition:

#pragma DATA_SEG __GPAGE_SEG GRAM_25K

unsigned char large_buff[LARGE_BUFF_LEN];

#pragma DATA_SEG DEFAULT

 

 

Worked:

  do {

    large_buff[cnt] = src[cnt];

    cnt++;

  } while(size != cnt);

 

Not worked:

    memcpy((unsigned char * )(int)large_buff, src, cnt);

 

I want to copy data faster now.

Outcomes