EmbDev.net

Forum: µC & Digital Electronics CodeVision AVR problem


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


Rate this post
0 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 *'

MLOCAL void mt_SMarker(void)
   {
   UBYTE I;                           
      for (I = 0; I <= _TASK; I++)
      {  
         strcpyf((UBYTE *)Tdb[I].SStackAdr + 1, kSStackEnd); 
         strcpyf((UBYTE *)Tdb[I].DStackAdr, kDStackEnd);
      }
   }

Thanks in advance!

von minifloat (Guest)


Rate this post
0 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
0 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]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig