• AVR Freaks

AnsweredHot!PIKKIT4 Error ("expected ... got ...") with PIC18F47Q43

Author
DuncanF
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2015/11/06 11:13:41
  • Location: 0
  • Status: offline
2021/01/16 07:55:57 (permalink)
4 (1)

PIKKIT4 Error ("expected ... got ...") with PIC18F47Q43

I'm having trouble with my newly delivered PICkit4 and would appreciate any pointers.
 
My usual setup is: MPLABX v5.45 -> ICD3 -> Mikroe EasyPICV7.
 
I've been developing with a PIC16F1769 but need more pins so have bought a PIC18F47Q43. Annoyingly I did not check compatibility with the ICD3 (none) so have bought a PICkit4 to be able to program the PIC18F.
 
Dropping the PICKit4 into the tool chain, this works: MPLABX -> PICKit4 -> EasyPICV7 -> PIC16F1769
But this does not: MPLABX -> PICkit4 ->  EasyPICV7 -> PIC18F47Q43
 
The full programming output is:
 
Connecting to MPLAB PICkit 4...

Currently loaded versions:
Application version............00.06.56
Boot version...................01.00.00
Script version.................00.04.07
Script build number............59586f4647
Tool pack version .............1.4.911
Target voltage detected
Target device PIC18F47Q43 found.
Device Revision Id = 0xa0420000

Calculating memory ranges for operation...

Erasing...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x17f
program memory: start address = 0xfc00, end address = 0x1287f
program memory: start address = 0x1ff80, end address = 0x1ffff
configuration memory
User Id Memory

 [ Pgm ] at 0x16, expected 0x00004962, got 0x00000962.
Programming did not complete.

 
The Device Support page lists the PIC18F47Q43 as GREEN for the PICkit4, so I'm not sure what is going on here. Is any kind soul able to point me in the right direction?
 
Thanks,

Duncan
#1
hexreader
Super Member
  • Total Posts : 1125
  • Reward points : 0
  • Joined: 2008/05/04 03:06:55
  • Location: England
  • Status: offline
Re: PIKKIT4 Error ("expected ... got ...") with PIC18F47Q43 2021/01/16 13:12:27 (permalink)
0
I do not own PIC18F47Q43, but I do own PIC18F27Q43 - same datasheet, but less pins.
 
Programs fine on EasyPIC 7 with either 5V or 3.3V supply
 
I seem to have higher revision numbers for PICkit4 and for the software that drives it.
 
Maybe you just need to update PK4 firmware, or IDE, or something?
 
Here is my printout:


*****************************************************

 
Connecting to MPLAB PICkit 4...

Currently loaded versions:
Application version............00.06.66
Boot version...................01.00.00
Script version.................00.04.17
Script build number............db473af2f4
Tool pack version .............1.6.961
Target voltage detected
Target device PIC18F27Q43 found.
Device Revision Id = 0xa0420000

Calculating memory ranges for operation...

Erasing...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7f
program memory: start address = 0x2600, end address = 0x297f
program memory: start address = 0x1ff80, end address = 0x1ffff
configuration memory
User Id Memory

Programming/Verify complete

post edited by hexreader - 2021/01/16 18:34:11

Experienced Hobbyist
#2
hexreader
Super Member
  • Total Posts : 1125
  • Reward points : 0
  • Joined: 2008/05/04 03:06:55
  • Location: England
  • Status: offline
Re: PIKKIT4 Error ("expected ... got ...") with PIC18F47Q43 2021/01/16 18:28:34 (permalink)
0
Another possibility came to mind...
 
Maybe your programming leads are loo long?
 
My leads are 30 cm long. PK4 to EP7 connector. No obvious problems so far. No idea what the limit is.

Experienced Hobbyist
#3
NorthGuy
Super Member
  • Total Posts : 6518
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: offline
Re: PIKKIT4 Error ("expected ... got ...") with PIC18F47Q43 2021/01/16 19:35:17 (permalink) ☼ Best Answerby DuncanF 2021/01/17 03:25:41
5 (1)
Looks like it cannot erase, but this is unlikely because Q43 can be programmed even at 2.5 V. Try erasing the PIC and verify it is blank after the erase.
 
My best guess, the PIC is damaged.
#4
DuncanF
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2015/11/06 11:13:41
  • Location: 0
  • Status: offline
Re: PIKKIT4 Error ("expected ... got ...") with PIC18F47Q43 2021/01/17 03:30:14 (permalink)
0
NorthGuy 
My best guess, the PIC is damaged.


That was the one! Thanks. I popped in a spare and it works fine. I've never (knowingly) killed a PIC before so it didn't occur to me to try another. Thankfully I always buy in pairs.
#5
Murton Pike Systems
Super Member
  • Total Posts : 223
  • Reward points : 0
  • Joined: 2020/09/10 02:13:01
  • Location: 0
  • Status: offline
Re: PIKKIT4 Error ("expected ... got ...") with PIC18F47Q43 2021/01/17 05:02:41 (permalink)
4 (1)
DuncanF
NorthGuy 
My best guess, the PIC is damaged.


That was the one! Thanks. I popped in a spare and it works fine. I've never (knowingly) killed a PIC before so it didn't occur to me to try another. Thankfully I always buy in pairs.




There was a bug in PK4 where it killed PIC's. Might have been fixed by now though ?
I think it needed a 100r resistor in series with /MCLR to fix it.
Never killed a PIC in many years using PK3.
 
#6
mpgmike
Super Member
  • Total Posts : 533
  • Reward points : 0
  • Joined: 2014/01/23 17:27:06
  • Location: NJ
  • Status: offline
Re: PIKKIT4 Error ("expected ... got ...") with PIC18F47Q43 2021/02/03 18:42:17 (permalink)
0
That was only on the pre-historic PIC16Fxxx and older devices.  A PIC18F47Q43 should have absolutely no issues requiring that added resistor.  I have programmed the Q43 with PICKit4 and ICD4 with no added resistors, and no issues.

I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
#7
Jump to:
© 2021 APG vNext Commercial Version 4.5