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

Direct reg access

Hi again.
I have a custom 8051 processor which has defined a series of sfr, such as "sfr id_custom = 0x32" in the header reg51.h file.
When I tried to access from C, throws the error "Error 146: Invalid Base Address".
As I can do to disable this protection? or enabling the access to these registers?
Thanks.

PS: Sorry about my english. =)

Parents
  • Then you need to complain to whoever made that file --- it's broken. There is no SFR at that address.

    That's not true, if I compile with the $NOMOD51 param, in an assembly file, the sfr declared like that work well. Moreover, the entire soft was in A51, now I'm trying to pass it to C, and I encountered this little things...
    Gonzalo.

Reply
  • Then you need to complain to whoever made that file --- it's broken. There is no SFR at that address.

    That's not true, if I compile with the $NOMOD51 param, in an assembly file, the sfr declared like that work well. Moreover, the entire soft was in A51, now I'm trying to pass it to C, and I encountered this little things...
    Gonzalo.

Children