This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uCOSII to 8051 warning message.

I am using uCOSII V2.52
I am using the Keil C compiler V7.02
Large memory model.

Everything compiles but, I get one warning that worries me.

Not sure if I can post the uCOSII code or not, but if you have uCOSII V2.52 check out the file and line number below.

File Name: OS_TASK.C
Line Number: 174
Keil Warning #196 mspace probably invalid.

The keil warning #196 says (The conversion of a constant to a pointer constant yields and invalid memory space).

Maybe somebody has ran into this while compiling uCOSII with Keil 7.02 compiler. Any help would be apreciated. Thanks :)

Parents
  • "You can make the warning go away by explicitly identifying the memory space in the cast"

    C51 provides a predefined symbol which identifies the current memory model and, thus, the default mspace - see the manual.

    This might help you in determining the mspace for the above-mentioned cast?

Reply
  • "You can make the warning go away by explicitly identifying the memory space in the cast"

    C51 provides a predefined symbol which identifies the current memory model and, thus, the default mspace - see the manual.

    This might help you in determining the mspace for the above-mentioned cast?

Children
No data