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!

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.