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

uVision unexpected error

Hello

I have been using keil's uVision for a while and i was pretty satisfied. Until one day totally unexpectedly i received the following error:

Build target 'Target 1'
compiling Blinky.c...
C51 COMPILER V8.08 - SN: K1DEC-L281B9
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2007
C51 FATAL-ERROR -
  ACTION:  PARSING SOURCE-FILE
  ERROR:    PREPROCESSOR: MACROS TOO NESTED
C51 TERMINATED.
Target not created

I do not use any macros , or complex defines etc. I receive this even while trying to compile a simple "Blinky" app. I haven't messed with Linker-Compiler-Assembler flags-settings. The weird thing also is that this error , for the same code ,doesn't appear no Silab's IDE. I know all this seem peculiar but if this problem has occured to anyone else and solved it i would be very happy if he shared the solution with me.

Thank you
P.S New Embedded programming..

Parents
  • SILabs have, bless them, created some rather involved macros that allow the same code to run under Keil or SDCC. I stumbled over this, looking at some code in the SILabs forum, but never used it. I do not use either IDE thus do not know anything about IDEs automatic includes. I GUESS that these macros are automatically included by the SILabs IDE and if the switch (whatever it is) has not been defined you will get the above error. You may want to post at the SILabs forum about this.

    Erik

Reply
  • SILabs have, bless them, created some rather involved macros that allow the same code to run under Keil or SDCC. I stumbled over this, looking at some code in the SILabs forum, but never used it. I do not use either IDE thus do not know anything about IDEs automatic includes. I GUESS that these macros are automatically included by the SILabs IDE and if the switch (whatever it is) has not been defined you will get the above error. You may want to post at the SILabs forum about this.

    Erik

Children
No data