11-16-2017, 05:46 PM
|
#3131 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Quote:
Originally Posted by ScottyWarpNine
That seems to have solved the connect problem. Still won't program though. I get this error message:
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x63ff
configuration memory
program memory
Address: 0 Expected Value: 40100 Received Value: 0
Failed to program device
2017-11-16 12:50:27 -0500 - Programming failed
Pass Count: 0
|
That looks familiar. Do you have the PICkit 3 plugged straight into the board or are you using an extender cable?
I ended up taking Paul's advice and using only a male - male pin header instead of the short parallel cable that came with the PICkit 3. Before I did that ... I think I was getting a similar error message.
I used the USB cable that came with the PICkit 3, running approximately 90 degrees to the other cables on the board - encoder, throttle, contactor signals. I don't know if that part helped or not.
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
11-17-2017, 12:30 PM
|
#3132 (permalink)
|
EV
Join Date: Jun 2017
Location: Akron, OH
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
|
I have the PICkit plugged straight into the board, no extension cable.
I didn't notice it yesterday, but when I press the connect button to connect to the programmer, it gives me this error:
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
I tried pressing on the picket to try to get good connections on the programming headers but that didn't do anything.
I'll inspect my solder joints. It looks to me like it is a straight shot from the programming header to the dsPIC. Doesn't seem like a whole lot to go wrong.
I don't need the peripherals like throttle or encoder connected for programming, do I? the only connections I have to the board are power from a DC 24v supply, and the PICkit3.
|
|
|
11-17-2017, 01:46 PM
|
#3133 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Quote:
Originally Posted by ScottyWarpNine
I have the PICkit plugged straight into the board, no extension cable.
I didn't notice it yesterday, but when I press the connect button to connect to the programmer, it gives me this error:
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
|
I don't remember that error. I'll try my board tonight ... since it is not inside a car right now
Quote:
I tried pressing on the picket to try to get good connections on the programming headers but that didn't do anything.
I'll inspect my solder joints. It looks to me like it is a straight shot from the programming header to the dsPIC. Doesn't seem like a whole lot to go wrong.
I don't need the peripherals like throttle or encoder connected for programming, do I? the only connections I have to the board are power from a DC 24v supply, and the PICkit3.
|
I don't remember having any peripherals connected when I'm programming.
I don't really want to re-program my board, but I think I can go through the motions and tell it not to program at the end.
I may turn on the phone and record what I do so that I will remember next time I hope it happens tonight ... but it may be sometime during the weekend.
I do remember that every time I have verified the program between chip and hex file it has failed. That had me confused for a long time.
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
|
|
|
11-18-2017, 02:51 AM
|
#3134 (permalink)
|
Master EcoModder
Join Date: Jan 2017
Location: Istanbul
Posts: 1,245
Thanks: 65
Thanked 225 Times in 186 Posts
|
|
|
|
11-19-2017, 10:39 PM
|
#3135 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Quote:
Originally Posted by ScottyWarpNine
I have the PICkit plugged straight into the board, no extension cable.
I didn't notice it yesterday, but when I press the connect button to connect to the programmer, it gives me this error:
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
I tried pressing on the picket to try to get good connections on the programming headers but that didn't do anything.
I'll inspect my solder joints. It looks to me like it is a straight shot from the programming header to the dsPIC. Doesn't seem like a whole lot to go wrong.
I don't need the peripherals like throttle or encoder connected for programming, do I? the only connections I have to the board are power from a DC 24v supply, and the PICkit3.
|
Here's the video, which is just pictures with a voice-over. It's my old laptop so the capture software does not really work, and the flickering of video from a laptop screen is horrid.
https://youtu.be/nZlisY7qG3s
Hope this helps
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
Last edited by thingstodo; 11-19-2017 at 10:53 PM..
Reason: Fixed youtube link
|
|
|
The Following User Says Thank You to thingstodo For This Useful Post:
|
|
11-20-2017, 01:35 PM
|
#3136 (permalink)
|
EV
Join Date: Jun 2017
Location: Akron, OH
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
|
Thanks for the video. It helps to see what is supposed to happen
I installed version 2.3 like you just to eliminate the newer version I was using as a variable. Still no change.
Attached is a photo of what happens when I try to connect.
I think I'm going to try soldering thin wires directly to the dsPIC from some .1" headers to connect directly to the PICkit3. It seems to me like a connection issue, and I'm running out of ideas...
I find it unlikely that Digikey would sell me counterfeit or faulty chips, especially on two occasions.
|
|
|
02-05-2018, 04:20 PM
|
#3137 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
I've got a chevy volt controller working well. It's 2 separate controllers inside. so, this is a perfect cotroller for load testing 2 nissan leaf motors connected together, having their torques battle it out. Here's the setup. Almost ready to test:
|
|
|
The Following 2 Users Say Thank You to MPaulHolmes For This Useful Post:
|
|
02-05-2018, 04:29 PM
|
#3138 (permalink)
|
EV
Join Date: Jun 2017
Location: Akron, OH
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
|
Is the Nissan Leaf motor Induction or BLDC?
Sorry if you mentioned it in the video, couldn't watch it with sound at work
|
|
|
02-13-2018, 03:14 PM
|
#3139 (permalink)
|
Master EcoModder
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
|
Did you design a logic board for the Volt inverter Paul?
__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
|
|
|
02-14-2018, 02:47 PM
|
#3140 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Yes!
|
|
|
|