View previous topic :: View next topic |
Author |
Message |
Simnix
Joined: 18 Oct 2006 Posts: 7
|
Mach X failed to program |
Posted: Tue Nov 05, 2013 12:44 am |
|
|
Hi,
PIC C Compiler version 4.109
When I use my Mach X programmer/debugger via ICD, it fails to program when I use the PIC C Compiler IDE. But, when I program the controller via the DIP socket, it programs OK. How can I tell the software to program via the ICD when there is no controller in the DIP socket ?
regards
Simnix |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19563
|
|
Posted: Tue Nov 05, 2013 5:01 am |
|
|
You need to run CCSload. Set it to use either 'Mach-X supplies power', or 'Target powered' (which are the ICSP settings, rather than the 'ZIF socket' setting). Exit. Then use the IDE. The IDE connects 'via' CCSload, and it is the CCSload settings that are used.
Best Wishes |
|
|
Simnix
Joined: 18 Oct 2006 Posts: 7
|
|
Posted: Tue Nov 05, 2013 5:43 am |
|
|
Hi,
Quote: | You need to run CCSload. Set it to use either 'Mach-X supplies power', or 'Target powered' (which are the ICSP settings, rather than the 'ZIF socket' setting). Exit. Then use the IDE. The IDE connects 'via' CCSload, and it is the CCSload settings that are used.
|
When I program using PIC C Compiler IDE it comes up with "Download Failed", when I run ccsload and press the test button on the devices tab, it comes up with "Chip not detected". I have selected "MACH-X supplies power".
Just for note, when I place the controller in the ZIF socket it and select "ZIF Socket", it programs OK.
Regards
Simnix |
|
|
Simnix
Joined: 18 Oct 2006 Posts: 7
|
|
Posted: Tue Nov 05, 2013 8:20 am |
|
|
Quote: | You need to run CCSload. Set it to use either 'Mach-X supplies power', or 'Target powered' (which are the ICSP settings, rather than the 'ZIF socket' setting). Exit. Then use the IDE. The IDE connects 'via' CCSload, and it is the CCSload settings that are used.
|
Hi
Found the problem, two faulty controllers. Used a brand new controller and it worked. Derr
Thanks for your initial help.
Regards
Simnix |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19563
|
|
Posted: Tue Nov 05, 2013 9:45 am |
|
|
Might be something just slightly 'else'.
Depending on the circuit, Mach-X can only supply limited power. It might be 'borderline', on not supplying enough power, so some chips program, while others don't.
There have been threads here in the past about how best to wire here, and the limitations.
Best Wishes |
|
|
Simnix
Joined: 18 Oct 2006 Posts: 7
|
|
Posted: Tue Nov 05, 2013 9:49 am |
|
|
Thanks for the heads up. I will investigate further.
Simnix |
|
|
|