I edited the 18f46j50.dat file to comment out WPEND=OFF and I changed MSP7B=EN_EN_MSK7 to MSP7B=EN_MSK7 which made the errors go away. I noticed there were a number of other chip data files with the EN_EN_MSK7 setting which looks like a find and replace error to me (having had much experience with that myself :)
Anyway, after my corrections, the HEX file produced works as intended (checked the timing with a 'scope).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The next release has already resolved these issues. I will update the .dat file respository this weekend with the latest as they are valid - you can simply replace/update.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Trivial Hello World program:
Produces the following compiler errors:
I edited the 18f46j50.dat file to comment out WPEND=OFF and I changed MSP7B=EN_EN_MSK7 to MSP7B=EN_MSK7 which made the errors go away. I noticed there were a number of other chip data files with the EN_EN_MSK7 setting which looks like a find and replace error to me (having had much experience with that myself :)
Anyway, after my corrections, the HEX file produced works as intended (checked the timing with a 'scope).
The next release has already resolved these issues. I will update the .dat file respository this weekend with the latest as they are valid - you can simply replace/update.
I have already published. See https://sourceforge.net/p/gcbasic/code/HEAD/tree/GCBASIC/trunk/chipdata/18f46j50.dat
Thanks!
The new data file still has this issue:
Hopefully fixed. I have regen'ed all the files.
Really sorted this time. I found a bug in the .dat generator.
See https://sourceforge.net/p/gcbasic/code/HEAD/tree/GCBASIC/trunk/chipdata/18f46j50.dat?force=True