MPLABS Question

Hi all,
Well the season is over, but MPLABS still hasnt quit giving me problems. Every time I re-install MPLABS, it gives me a error which goes something like this, “MPlab.exe has created errors and will be closed by Windows. You will need to restart the program.” I have tried many things to solve that problem. I has hapenned both on my XP and 2000. I once re-installed XP on my computer for the sake of programming.

Now, could anybody help with that problem?

Also, If any of you use something else for programming the controllers, please let me know what you use, and how do you use it? I am not a great programmer or anything… just learning…

Thanks for the help.

What were you doing when you got this error? I’m thinking this might be a problem I heard about that happens when your source file is write protected. Is this possible?

Also, what version of MPLAB are you using? I have 6.4, which I downloaded from the Microchip web site. This may be one of the problems they addressed in a later release than the one you have.

I’ve never seen this error before. Did you follow the exact instructions on the IFI website pertaining to the installation, because there are some specifics you have to check.

gwross: When which file is write protected? The project file, or something like user_routines.c? I know that some files (such as main.c) are write-protected by default, and I have not heard of any problems dealing with that.

I tried the version on the CD given by FIRST, and also tried downloading the version from microchip saying “MPLAB C18”.

Yes, I followed word for word instructions given in the documents.

I never even modified any of the code and it gave me this error. I hardly touch any setup files either.

Odd. I use the CD version, and it installs fine on XP, 2000, and 98. And even if you don’t follow IFI’s directions to the letter, it should still install fine. You’ll just have to reinstall to make it work with the RC.

(I think he’s talking about the installation, not compiling or opening.) oops, my bad.

It installs fine, everytime I try to run it, it gives the an error…look at my first post
sorry for being un-clear

Did you download the latest MPLAB IDE? (Not the MPLAB C18 compiler.) BTW, I see that now they are up to version 6.50.

I believe the problem report was talking about any of the source files (.c or .h)

I just tried reproducing the “file protected” problem with my version 6.4, and couldn’t get it to fail.

Write protect hasn’t been a problem for me. Can you be more specific? like, when the splash screen comes up, when the main window appears, when you open a file, etc.

Thanks for all the help. I got it working, but with another problem. Everytime I hit “Build all” it does this…





Check your build options (and toolsuite). I would also say tell it to keep going (Configure > Settings > Projects > Halt on first build failure).

Adc.h should NEVER get an error. Even I don’t touch it.

It’s set like that. I applied all defaults also. Its still the same problem. I have never had a problem with adc.h ever. I am sick of it now… any mind IMing me for some help: TeknoBramha .

got it fixed in a long IM session. transcript is attached.

Basically, there was a ‘j’ at the beginning of user_routines.c

and _FRC_BOARD wasn’t defined.

teknobramha.txt (31.4 KB)


teknobramha.txt (31.4 KB)

I can’t thank you enough Austronauth, this thing was driving me crazy. Thanks for dedicating about 9 hours of your life to a stupid programming error to help me out :slight_smile: