Nohau ICE & var's in external RAM & watch window

I can't seem to figure out how to put variables declared via KEIL's
absolute memory access macros (#include <absacc.h>) such as:

#define myVariable HVAR(unsigned int, 0x100000)

into my Nohau (EMUL166PC) ICE's watch window. Can anyone tell me
what I need to do to make this work?

Any help would be greatly appreciated... thanks,
Dave.

Parents
  • Doesn't the C166 compiler support _at_?

    in

    #define myVariable HVAR(unsigned int, 0x100000)
    myVariable is not a variable, it is simply a name you use while writing your program. When you compile, the preprocessor replaces all instances of myVariable (better written as MY_VARIABLE since you can't take the address of it) with 0x100000). This means it does not show up in the symbol table and thus Nohau will never know of it. If you can use the _at_ directive as we can in C51 then you're all set. E.g.

    unsigned int xdata myVariable _at_ 0x1000;
    Now this will show up in the symbol table and thus you will be able to reference it in Nohau.

    - Mark

Reply
  • Doesn't the C166 compiler support _at_?

    in

    #define myVariable HVAR(unsigned int, 0x100000)
    myVariable is not a variable, it is simply a name you use while writing your program. When you compile, the preprocessor replaces all instances of myVariable (better written as MY_VARIABLE since you can't take the address of it) with 0x100000). This means it does not show up in the symbol table and thus Nohau will never know of it. If you can use the _at_ directive as we can in C51 then you're all set. E.g.

    unsigned int xdata myVariable _at_ 0x1000;
    Now this will show up in the symbol table and thus you will be able to reference it in Nohau.

    - Mark

Children
More questions in this forum