
Posted by GA on 30/1/2007, 16:50:56, in reply to "memcpy no correct" Worth checking whether the pointer size is 16-bit etc. I haven't used IAR tools for a while but I remember there were many settings for chancing pointer sizes and stack pointer size etc. GA --Previous Message--
62.73.170.19
Hi,
: Hi,
:
: ex :
: UI_8 Memo[3][10];
: static const UI_8 far *Tab1[3] =
: {
: " ",
: "Hello",
: "Ok"
: };
: for (i=0; i<3; i++)
: {
:
: memcpy(&Memo[i],Tab1[i],strlen(Tab1[i]));
: }
:
: PROBLEM : the memcpy don't copy
: correctly when the const strings are
: located between 2 segments, for
: exemple Tab1[] is at the adresse :
: 2FCFFFE. The memcpy copy the char
: located at 2FCFFFE and 2FCFFFF, but
: instead of
: copy the chars from 2FD0000, it copy
: the chars from 2FC0000 !!!
:
: I use H8S2633R and a compiler IAR.
:
: I hop I'm clear - Have you an idea ?
:
: thank you for your help
:
: Gaby
:
Message Thread ![]()
« Back to index