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

Using regs

Hello, i did project with the device: cypress EZ-USB FX2LP and i am trying change register values.

#include <fx2.h>
#include <FX2REGS.h>
#include <stdio.h>

void main(void){
        SCON0 = 0x52;
        TMOD = 0x20;
        TCON = 0x69;
        TH1 =  0xf3;
        WAKEUPCS = bmWU | bmWUPOL | bmWUEN;
        printf ("Register");
        printf ("\n\nC compiler demonstration program\n\n");
        while (1)  {
                        printf("Running");
        }
}


With rebuilding he issues 2 Warning:

*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
    SYMBOL:  WAKEUPCS
    MODULE:  main.obj (MAIN)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL:  WAKEUPCS
    MODULE:  main.obj (MAIN)
    ADDRESS: 0C2DH


In module FXREGS.h next code:

EXTERN xdata volatile BYTE WAKEUPCS          _AT_ 0xE682;  // Wakeup source and polarity

Parents Reply Children
No data