I have a project, and include "string.h",but when i used [memset] and [memcpy] function, then display error.Why??
PS:CodeWarrior IDE version 5.9.0 / MC9S12XDP512
 
					
				
		
 Alice_Yang
		
			Alice_Yang
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello WIZ,
I test a simple project on my test about use the function of memcpy() on the chip of MC9S12XDP512.
it can work well, the code just is :
char des[6];
char *s = "Alice";
void main(void) {
  ...
  memcpy(des,s,5);
  ...
}
Please see the attached video. Could you please test this simple project also on your side .
Hope it can helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
