> On 21 Jul 2017, at 23:07, Raphael Neider <rnei...@web.de> 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 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user