And how much on-chip EEPROM does the datasheet says that the 16F15325 has?I'm trying a new PIC (PIC16F15325) and I can't define anything on the on-chip EEPROM:
/Henrik.
And how much on-chip EEPROM does the datasheet says that the 16F15325 has?I'm trying a new PIC (PIC16F15325) and I can't define anything on the on-chip EEPROM:
/Henrik.
Storage Area Flash: 224 bytes.
The ASM look like this:
The error is in RED.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
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:
Investigating...Code:EEPROM $2100, $21FF
Last edited by MichelJasmin; - 29th December 2017 at 19:50.
SAF is not EEPROM...
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.
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
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.
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!
Bookmarks