Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:49 07 Jul 2025 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : LCD Back Pack ICSP

Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 01:41pm 29 Jun 2016
Copy link to clipboard 
Print this post

Just tried to re-flash one of my back packs & the PicKit3 said it failed to find the device.

Just wondering what the conditions are for using the ICSP.

It was power externally, RTC, ESP & a few pins in use.

I've flashed them before, don't remember exactly how,
probably removed from the breadboard, with just a 5V supply connected.

Presume it's what's on Pins 4 & 5 causing the issue?

What other conditions need to apply for the ICSP port to be usable?

Thanks

Phil.

Further detail:-

[Code]
'Pins used - Inputs
Dim Integer PinDemo=21 'Held Low on Demo Board, High on Real One
Dim Integer PinTmp=22 '1-Wire DS18B20 Input Pin
Dim Integer SolarPanel=4 'Analog input ~ 1000mV
Dim Integer LM336Ref=5 'LM336 Input - 2500mV
SetPin SolarPanel,AIN
Setpin LM336Ref,AIN

'Pins used - Outputs
Dim Integer PinLed1=24 'Status Pin (Green LED) Blinks to show main loop is running
dim Integer PinPump1=26 'Pump Running (Red LED) & also to be Pump Relay output

setpin(PinLed1),dout
Setpin(PinPump1),Dout,OC
[/code]
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3282
Posted: 12:23pm 30 Jun 2016
Copy link to clipboard 
Print this post

"failed to find the device" or "Target Vdd not detected" means that the PICkit3 could not see the +3.3V on the ICSP connector.

"Cannot read device ID" means that the PICkit3 could see the 3.3V but could not communicate with the chip. There are many causes if this including missing Vcap capacitor, external loading on the programming pins, chip not properly seated in its socket, etc.

The BASIC program will not have any effect on programming the chip but external components (caps, resistors, etc) connected to the programming pins could cause a "Cannot read device ID" error.

Geoff
Geoff Graham - http://geoffg.net
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 02:11pm 30 Jun 2016
Copy link to clipboard 
Print this post

Thanks Geoff,

It would be the analogue voltages on Pins 4 & 5 that made it fail.
1000 & 2500mV.

Will unplug it & flash it later.

Cheers
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025