|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Warning 259 (Pointer: Different Mspace)Information in this article applies to:
QUESTIONI have a pointer that points to a variable in xdata and I am reassigning it to point to a variable in idata. The compiler is giving me:
ANSWERWhen you reassign a pointer to point to different memory space, you must cast the address of the variable to the memory space of the pointer. When you then wish to alter the variable via the pointer, you must cast the pointer to the memory space of the variable. For example:
MORE INFORMATION
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.