From: Kustaa N. <kus...@sp...> - 2017-07-28 12:28:05
|
> On 21 Jul 2017, at 23:07, Raphael Neider <rn...@we...> wrote: > > You could try copying the library function to your project and adjust the arguments (and s) just to see if it helps? > Hi, I copypasted the def from your mail to my main.c where that function is used and changed the name to memcpypgm2ram_test: _data void * memcpypgm2ram_test (__data void *dst, __code void *src, size_t acount) { char __data *d = dst; char __code *s = src; /* * copy from lower addresses to higher addresses */ while (acount--) *d++ = *s++; return dst; } This procudes these errors, maybe they tell you more than what they tell to me. main.c:689: error 78: incompatible types from type 'struct __00000981 near* data' to type 'const-void code* fixed' main.c:690: error 78: incompatible types from type 'struct __00000981 near* data' to type 'const-void code* fixed' main.c:691: error 78: incompatible types from type 'struct __00000981 near* data' to type 'const-void code* fixed' main.c:692: error 78: incompatible types from type 'struct __00000981 near* data' to type 'const-void code* fixed' wbr Kusti |