Programming error?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2010
    Posts
    409

    Default Programming error?

    I'm trying out my first PIC18F1330 and attempting to program a simple blink code with a PICKit 3.

    I can't even get past first programming of the device - the PICKIT3 tells me that I'm getting the following error: Address 0x300006, read 0x81, expected 0x89
    I tried another device - same thing. I've never had problems this early in the process before - anybody have any ideas?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Programming error?

    Are you sure you've compiled the program for the correct chip?

    Address 300006h is the CONFIG4L register.
    On the 18F1330, bit-3 that's it's complaining about, is "Unimplemented" and always reads "0".
    It would not be able to program that register as 0x89.
    Last edited by Darrel Taylor; - 21st June 2013 at 16:30.
    DT

  3. #3
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Programming error?

    Double checked, and ran through everything again PBP 2.6 set to 18F1330.
    The contents of the .inc file are:
    ;************************************************* ***************
    ;* 18F1330.INC *
    ;* *
    ;* By : Leonard Zerman, Jeff Schmoyer *
    ;* Notice : Copyright (c) 2008 microEngineering Labs, Inc. *
    ;* All Rights Reserved *
    ;* Date : 09/15/08 *
    ;* Version : 2.60 *
    ;* Notes : *
    ;************************************************* ***************
    NOLIST
    ifdef PM_USED
    LIST
    "Error: PM does not support this device. Use MPASM."
    NOLIST
    else
    LIST
    LIST p = 18F1330, r = dec, w = -311, w = -230, f = inhx32
    INCLUDE "P18F1330.INC" ; MPASM Header
    __CONFIG _CONFIG1H, _OSC_INTIO2_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
    __CONFIG _CONFIG3H, _MCLRE_ON_3H
    __CONFIG _CONFIG4L, _STVREN_ON_4L & _BBSIZ_BB256_4L & _XINST_OFF_4L
    NOLIST
    endif
    LIST
    EEPROM_START EQU 0F00000h
    BLOCK_SIZE EQU 8

    I'm using the PICKit 3 to program, using the application it came with - version 1.0.0.0 / JAM version 01.28.18-00 / RS:01.15.11 / AP:01.12.04-05
    If I look at how it's interpreting 4L, it labels it "nostring" and is showing bit 3 as configurable, but always a 1. If I write it to 0, it comes back when I try to program.. A bug in the PICKit3 perhaps?

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Programming error?

    Old software.

    I don't have the latest version either, but it is more recent than yours and it maintains that bit as a 0.

    Try downloading the latest software ...
    http://www.microchip.com/stellent/id...irects=pickit3
    DT

  5. #5
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Programming error?

    That resolved it - thanks Darrel!

Similar Threads

  1. Code programming error at 0000
    By chien_fu in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th February 2010, 03:39
  2. Error programming 10F222
    By JoelMurphy in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 25th July 2009, 15:23
  3. Data Programming Error at 0000
    By cpatnoi in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd May 2009, 03:37
  4. Error programming 16F688
    By manxman in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 23rd July 2007, 21:10
  5. programming error.. plz help
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th November 2004, 15:28

Members who have read this thread : 0

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