Target device does not match


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    50

    Default Target device does not match

    I have PBP 2.50A with a MElabs U2 Programmer and an 8 to 40 Pin ZIF Adapter version 06221 JMS. I am trying to compile a very simple blinky and program it to a PIC18F2410. I have installed and configured MPASM as my assembler. When I try to program or erase the 28 pin Dip PIC18F2410 I get the error “Target device does not match selected device”. I can successfully read the pic and check that it is blank. My code assembles without problem and I have verified that I have put the PIC in the correct way.

    ------------------Code----------------------------


    CH1 VAR PORTB.7 ' Define CH1 pin
    CH2 VAR PORTB.6 ' Define CH2 pin
    CH3 VAR PORTB.5 ' Define CH3 pin
    CH4 VAR PORTB.4 ' Define CH4 pin
    CH5 VAR PORTB.3 ' Define CH5 pin
    CH6 VAR PORTB.2 ' Define CH6 pin
    CH7 VAR PORTB.1 ' Define CH7 pin
    CH8 VAR PORTB.0 ' Define CH8 pin


    BLINK:
    HIGH CH1
    PAUSE 500
    LOW CH1
    PAUSE 500
    GOTO BLINK

    End

    ------------------End Code----------------------------

    This is my first 18F device so I am a bit iffy as to whether I have got something wrong. I ordered 4 PIC18F2410s and have tried this with several chips with the same result.

    Any help you can offer would be great.
    Best Regards,

    Kurt A. Kroh
    KrohTech

    “Goodbye and thanks for all the fish”

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    Guesses

    1) My adaptor board has 2 connectors; 1 handles 8-18 pin PICs and the other handles 20-40pins. Perhaps the connector is connected to the wrong place.

    2) Again, the orientation for programming 8-18 pins is one way on the zif and for 40 pinners is the other way. ie: pin1 for one matches ZIF 1 and pin 1 for the other type matches with pin 21.

    3) Programmer is not turned on(very unlikely)

    4) You've managed to blow the device.

    Good luck

    JF

  3. #3
    Join Date
    Sep 2007
    Posts
    50


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by Jerson View Post
    Guesses

    1) My adaptor board has 2 connectors; 1 handles 8-18 pin PICs and the other handles 20-40pins. Perhaps the connector is connected to the wrong place.


    JF
    Thank You Jerson,

    It was the board turned around. I must have missed that in the manual.
    Best Regards,

    Kurt A. Kroh
    KrohTech

    “Goodbye and thanks for all the fish”

Similar Threads

  1. Watchdog Timers
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th August 2014, 18:03
  2. ICDWarn0020: Invalid target device id
    By pravec065 in forum General
    Replies: 3
    Last Post: - 4th August 2008, 13:43
  3. Replies: 8
    Last Post: - 24th April 2008, 22:19
  4. PIC18F4620 not Target Device
    By kiwipiper in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th October 2007, 19:42
  5. Target device <> Selected Device????
    By deepgfishing in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 20th June 2007, 21:18

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts