EmbDev.net

Forum: µC & Digital Electronics CodeVision AVR problem


von Real M. (Company: Gsm&PC) (realc)


Rate this post
useful
not useful
Hallo,

I have the following error message (for ATmega128):

Error: Mtk.c(249): function argument #2 of type 'const unsigned char 
[10]' is incompatible with required parameter of type 'flash unsigned 
char *'

1
MLOCAL void mt_SMarker(void)
2
   {
3
   UBYTE I;                           
4
      for (I = 0; I <= _TASK; I++)
5
      {  
6
         strcpyf((UBYTE *)Tdb[I].SStackAdr + 1, kSStackEnd); 
7
         strcpyf((UBYTE *)Tdb[I].DStackAdr, kDStackEnd);
8
      }
9
   }

Thanks in advance!

von minifloat (Guest)


Rate this post
useful
not useful
Maybe use strcpy instead of strcpyf, where f means Flash...?
br, mf

von Real M. (Company: Gsm&PC) (realc)


Rate this post
useful
not useful
Works! Thank you very much!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.