Altera_Forum
Honored Contributor
13 years agoSituation with Memcpy
Hallo,
I have a situation here and i will try my best to explain it. I have two pointers, both of them allocated 6 bytes of memory through alt_remap_uncached. The source pointer has the following data: 1F 00 32 FF FF FF And the target at this point is 00 00 00 00 00 00. Now I use memcpy and copy the 6 bytes of data from the source location to the target location. The Current statuses are Source pointer: 1F 00 32 FF FF ff Target Pointer: 1F 00 32 FF FF 00 if you notice the last byte of the target structure remains 00 which is the value it had previously. how is this possible?? the last byte of the source does not get copied to the target. does it have to do with cache issues?? I would be very grateful for your assistence with this issue. Thanks in advance.