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

a simple question about PE_SWD

in a file measure.ini:


PE_SWD = 0 /* Disable Watchdog with pin PE_SWD */



but the compiler says "PE_SWD undefined identifier".

is there anyone who can tell me what i should do,thanks a lot!

Parents
  • I presume you're talking about the measure.ini in the 'Measure' C51 example Project?

    It looks like Keil have introduced the error somewhere between v6.14 and v6.23!

    PE_SWD is not defined in any of the v6.23 Keil standard header files, and is not mentioned in the documentation of the example Project :-(

    The only difference between the v6.14 and v6.23 Projects seems to be that the following lines have been added at the top of measure.ini:

    PE_SWD = 0                  /* Disable Watchdog with pin PE_SWD */
    reset                       /* perform CPU reset: uses value at PE_SWD */
    G,MAIN
    
    So you could try just removing the offending line?

    You might have to work out how to disable your watchdog properly...

    Not the kind of thing you want when you're just trying to work through the examples! :-(

Reply
  • I presume you're talking about the measure.ini in the 'Measure' C51 example Project?

    It looks like Keil have introduced the error somewhere between v6.14 and v6.23!

    PE_SWD is not defined in any of the v6.23 Keil standard header files, and is not mentioned in the documentation of the example Project :-(

    The only difference between the v6.14 and v6.23 Projects seems to be that the following lines have been added at the top of measure.ini:

    PE_SWD = 0                  /* Disable Watchdog with pin PE_SWD */
    reset                       /* perform CPU reset: uses value at PE_SWD */
    G,MAIN
    
    So you could try just removing the offending line?

    You might have to work out how to disable your watchdog properly...

    Not the kind of thing you want when you're just trying to work through the examples! :-(

Children
No data