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

when i want to build a project the uvision halts.

hi,
recently i instaled uvision 2.38 on my computer.but when i want to build and compile a project the uvision halts .
when i erase the "#include <reg51.h>" command
the uvision don't stop but i get the "error C202: 'TH1': undefined identifier" error message"
please tell me what is the problem.
i must say that i don't have the problem with the previous versions"
thanks very much.

Parents
  • What exactly do you mean by "Halts?"

    Do you get any messages?

    "when i erase the "#include <reg51.h>" command the uvision don't stop but i get the "error C202: 'TH1': undefined identifier" error message"

    Well you would, wouldn't you - because that's where TH1 (and all the other Processor registers) are defined!

    Thus it sounds like you have a file-access problem with reg51.h.
    What happens if you right-click the header name in the uVision editor and try to open the file?

Reply
  • What exactly do you mean by "Halts?"

    Do you get any messages?

    "when i erase the "#include <reg51.h>" command the uvision don't stop but i get the "error C202: 'TH1': undefined identifier" error message"

    Well you would, wouldn't you - because that's where TH1 (and all the other Processor registers) are defined!

    Thus it sounds like you have a file-access problem with reg51.h.
    What happens if you right-click the header name in the uVision editor and try to open the file?

Children
No data