Keil Logo

C51: WARNING 196 (MSPACE PROBABLY INVALID)


Information in this article applies to:

  • C51 Version 5.50

QUESTION

When trying to compile a C source file, I get the following diagnostic:

WARNING 196: MSPACE PROBABLY INVALID

ANSWER

This warning is caused by the assignment of an invalid constant value to a pointer. Valid pointer constants are long or unsigned long. The compiler uses 24 bits (3 bytes) for pointer objects. The low-order 16 bits represent the offset. The high-order 8 bits represent the memoryspace selector.

MORE INFORMATION

  • Refer to Pointers in the Cx51 User's Guide.
  • Refer to Error C196 in the Cx51 User's Guide.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

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.