
Posted by Gaby ex : PROBLEM : I use H8S2633R and a compiler IAR. I hop I'm clear - Have you an idea ? thank you for your help Gaby
![]()
on 15/1/2007, 9:32:51
57.66.138.15
Hi,
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]));
}
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 !!!
Message Thread
![]()
« Back to index