Symbol not previously defined (EEPROM_START) - PIC16F15325


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67

    Default Symbol not previously defined (EEPROM_START) - PIC16F15325

    Hello group,

    I'm trying a new PIC (PIC16F15325) and I can't define anything on the on-chip EEPROM:

    Code:
    '----[ Color Tables ]-------------------------
    
    
    GOTO OverColorTables
    
    
    BaseColorsTable data $FF, $00, $00, $B9, $46, $00  ; Red, Orange
                    data $7F, $7F, $00, $00, $FF, $00  ; Yellow, Green
                    data $00, $8C, $73, $00, $00, $FF  ; Cyan, Blue
                    data $4B, $00, $B4, $B4, $00, $4B  ; Pink, Violet
                    data $FF, $FF, $FF                 ; White
    
    
    OverColorTables:
    The READ command doesn't generate any error/warning.

    Self-programming is also supported by the chip :

    13.1.1.2 Self-programming
    The program memory cell and control logic will support
    write and row erase operations across the entire VDD
    range. Bulk Erase is not available when selfprogramming.
    so I've tried READCODE but I get "bad expression" compile error.

    I'm using PBP3.1 Gold + latest version of MPASM.

    Any hint anyone? Should I post this to the ME Labs Forums too?

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,517


    Did you find this post helpful? Yes | No

    Default Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    I'm trying a new PIC (PIC16F15325) and I can't define anything on the on-chip EEPROM:
    And how much on-chip EEPROM does the datasheet says that the 16F15325 has?

    /Henrik.

  3. #3
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    Quote Originally Posted by HenrikOlsson View Post
    And how much on-chip EEPROM does the datasheet says that the 16F15325 has?

    /Henrik.
    Storage Area Flash: 224 bytes.

    The ASM look like this:

    Code:
    ; EEPROM data.
        ORG EEPROM_START
    
    _BaseColorsTable    EQU    $
    ; C:\USERS\MICHEL\ONEDRIVE\SOURCES\MICROCODESTUDIO\HARDDRIVESPIN\HARDDRIVESPIN.PBP    00117    BaseColorsTable data $FF, $00, $00, $B9, $46, $00  ; Red, Orange
        DE    0FFh
        DE    000h
        DE    000h
        DE    0B9h
        DE    046h
        DE    000h
    The error is in RED.

    EDIT: Just find out the PIC16F15325.PBPINC file doesn't have an EEPROM address in the "Target Device setup" section. The one for PIC16F690 contains:

    Code:
    EEPROM  $2100, $21FF
    Investigating...
    Last edited by MichelJasmin; - 29th December 2017 at 20:50.

  4. #4
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    SAF is not EEPROM...

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,517


    Did you find this post helpful? Yes | No

    Default Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    MichelJasmin,
    You seem to be missing the point.... DATA, READ, WRITE are commands used to access on chip EEPROM.
    You can't use DATA, READ, WRITE on the 16F15325 because it does not have any on chip EEPROM hence the "missing" EEPROM_START symbol/label.

    Yes, the 16F15325 has a section of FLASH (not EEPROM) that can be used LIKE the on chip EEPROM on the devices that have it but, again, DATA, READ, WRITE is not compatible with that.

    /Henrik.

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,383


    Did you find this post helpful? Yes | No

    Default Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    http://support.melabs.com/forum/picb...-accessing-hef
    the idea in this thread could be adapted to saf , a quick scan of the data sheet indicates the process to be very similar.
    I don't have pbp3.1 or any of those chips to experiment with.

    [i'm holding off on pbp3.1 until it works in mplabx properly , if ever]
    Warning I'm not a teacher

  7. #7
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    Quote Originally Posted by richard View Post
    [i'm holding off on pbp3.1 until it works in mplabx properly , if ever]
    I was playing with MPLAB 8.90 and MPLAB X trying to figure out how to make them work. It seems like PBP would require it's own .lkr Linker files and a PBP version of a .c Header file to define commands. PBP works with MicroCode Studio, which is an IDE. I suppose the question is; is the issue on Microchip's end or MELabs' end? I believe MPLABX v3.60 still acknowledged PBP, but V4.0 does not.

  8. #8
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    Thank you Richard, Henrik & pedja089, I was not aware about the difference between SAF and EEPROM. Will try to adapt the code from the thread mentioned by Richard.

    Happy New Year & projects!

Similar Threads

  1. Symbol not previously defined - lib file
    By Scampy in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 2nd November 2015, 01:33
  2. Replies: 10
    Last Post: - 21st December 2013, 19:48
  3. "symbol not previously defined" on 16F1933 - fuse issue i think
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd January 2011, 04:24
  4. Symbol not previously defined
    By Archangel in forum Code Examples
    Replies: 2
    Last Post: - 27th December 2008, 10:52
  5. not previously defind (_INTRC_OSC) errror
    By teverett in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th October 2006, 18:59

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