I am writing a bootloader and trying to use "ProgramWrite" and the assembler does not like the following:
bcf EECON1,FREE
It does not know what FREE is. I have looked at the 16F877A datasheet (DS3982B) pg.38 and this line is not there. There is a
bcf intcon,gie
but other bootloaders I have looked at leaves that out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
FREE is the "Forced row erase" bit on the 16F819, which the program memory code was initially written for. I've added an #IFDEF to the EEPROM routines so that GCBASIC only tries to set it if it is present.
I am writing a bootloader and trying to use "ProgramWrite" and the assembler does not like the following:
bcf EECON1,FREE
It does not know what FREE is. I have looked at the 16F877A datasheet (DS3982B) pg.38 and this line is not there. There is a
bcf intcon,gie
but other bootloaders I have looked at leaves that out.
FREE is the "Forced row erase" bit on the 16F819, which the program memory code was initially written for. I've added an #IFDEF to the EEPROM routines so that GCBASIC only tries to set it if it is present.
The fix is at http://gcbasic.sourceforge.net/newfiles/update.zip