Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
I wonder if someone with experience programming various PIC chips can help me.
I am 8 years into building (approaching completion) a Glasair Super II RG Sport Aircraft.
It is powered by a Mazda 13B Rotary whose ignition and injection is controlled by a computer designed by Tracy Crook from Florida USA.
Rather than send the board to Florida for software upgrades Tracy now retired has provided the source code.
My problem is that, even though the code assembles without error through MPLABS and the PICKIT3 reports verification of the program she does not run as previous software versions have.
Basically engine refuses to start though onboard diagnostics show processor is running (fires injectors and coils)
I am questioning whether I have all the settings and config bits right.
The unit uses PIC18F6680 chips.
I have questions regarding:
1. Self powering the board with the PICKIT3 rather than external power?
2. Low voltage program config bit turned off according to the instructions ive been given?
3. Config Reg protection being set in the config bits again according to the instructions received?
Sincerely
Steve Izett
Perth WA
Lou Senior Member Joined: 01/02/2014 Location: United StatesPosts: 229
Posted: 04:46pm 27 Jul 2014
Copy link to clipboard
Print this post
steveizett,
I don't know if it will help but I always use external power on the target when programming with the PICkit 3.
Hi Bryan
I have both MPLABX on my MacBook Pro and V8.66 from memory on an XP machine.
Having not been sure of the IPE I moved back to the 8.66 with the same results.
Not sure I'm getting everything right.
Steve
elproducts Senior Member Joined: 19/06/2011 Location: United StatesPosts: 282
Posted: 04:49pm 28 Jul 2014
Copy link to clipboard
Print this post
Do you have the intended config settings?
If they weren't embedded in the code file then MPLAB X will use the default.
You can check the settings from the main menu:
Window>PIC Memory Views>Configuration Bits
Thanks
Yes. The author provided the configs and I worked out how to set them in MPLABS 8.66
I have received a new hex file from the author and having powered the board, erased and reprogrammed the processors the engine burst into life.
So I'm now proficient at programming the 18F6680 through MPLABS 8.66 and confirming the various memories with both 8.66 and MPLABX IPE.
So now I need to work out what was wrong in the first place.
Thanks people.