I did that for a while, but if you are tweaking and experimenting, it gets old pretty fast. Far better to have it in the code and do it ONCE rather than every program attempt.
I did that for a while, but if you are tweaking and experimenting, it gets old pretty fast. Far better to have it in the code and do it ONCE rather than every program attempt.
Umm, no, you only have to alter the dropdown contents if you need to change anything.
Before the programming starts, the existing config is read and doesn't change unless you tell it to. So makes it easy, in my view anyway.
Peter Moritz.
Up the bush, Western Plains,
New South Wales,
Australia.
http://support.melabs.com/DT/meCONFI...NFIG_setup.exe
have you seen this ?
@ Peter - you didn't say which programmer you are using, but mine resets the bits to a default and needs to be changed every time. I guess they can behave differently. (Granted mine is a clone).
Charlie,
The Melabs usb programmer program has a pull down menu for options.
Un-check the "Update configuration from file". Now it will keep the configurations
you selected and not reset these each time you flash the pic.
I agree with Peter the Melabs USB programmer is the way to go. Many questions on this forum
are on configurations problems. Melabs USB program has a pull down configuration check list for each
pic supported. The negative is the price, I think it is about $80usd.
Admittedly the price may be a worry, but as far as I am concerned, $80 for the programmer is much better than $hundreds of pulling your hair out.
All mine went years ago, so I figure I am in front.
Peter Moritz.
Up the bush, Western Plains,
New South Wales,
Australia.
You can spend the money, or you can add a couple lines of code to your program. To each his own.
The issue with using the programmer (assuming you have one that doesn't forget the settings after each use) Is that 6 months or a year from now, when you want to program another device with the same code, you have to dig through your notes to decide what to program the fuses to. If it's already in the file, you simply program.
Honestly, I find the option names pretty intuitive, and spend less than 2 minutes at the start of a project deciding which options I want and adding them to the file. In fact, for the two devices I use most often, I have a generic file that sets fuses, turns off rarely used functions, sets up important registers and so on. The files are well commented in case I need to make changes, but are almost always more than 90% correct, and I can start coding right away.
I did try out Darrel's program, and it was very good, but I found doing it myself to be not all that painful after the first few devices I played with.
Last edited by Charlie; - 25th October 2014 at 16:20.
Bookmarks