View Full Version : MPLABS Question
Bharat Nain
14-05-2004, 19:02
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.
Greg Ross
14-05-2004, 19:33
... it gives me [an] error which goes something like this, "MPlab.exe has created errors and will be closed by Windows. You will need to restart the program."
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.
Joshua May
14-05-2004, 19:36
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.
Bharat Nain
14-05-2004, 19:45
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.
Astronouth7303
14-05-2004, 20:09
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.
Bharat Nain
14-05-2004, 20:13
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.)It installs fine, everytime I try to run it, it gives the an error..look at my first post
sorry for being un-clear
Greg Ross
14-05-2004, 20:19
I tried the version on the CD given by FIRST, and also tried downloading the version from microchip saying "MPLAB C18".
Did you download the latest MPLAB IDE (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469)? (Not the MPLAB C18 compiler.) BTW, I see that now they are up to version 6.50.
Greg Ross
14-05-2004, 20:22
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 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.
Astronouth7303
14-05-2004, 20:27
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.
Bharat Nain
14-05-2004, 20:33
Thanks for all the help. I got it working, but with another problem. Everytime I hit "Build all" it does this....
Astronouth7303
14-05-2004, 20:48
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.
Bharat Nain
14-05-2004, 20:54
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 .
Astronouth7303
16-05-2004, 16:16
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.
Bharat Nain
16-05-2004, 16:19
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 :)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.