RESOLVED: Download the latest release, or, download the latest release candidate.
I think there is an address error in all of the chipdata files in the 18F(L)XXk42 family. In the "NoBankRAM" section, all the files have:
0:5F
F60:FFF
when, according to figure 4-4 on page 45 the datasheet, I think it should be:
0:5F
3F60:3FFF
This is in version: 0.98.06 2019-06-12 (Linux 32 bit) I downloaded from source and installed on a Raspberry Pi a few days ago.
I discovered this because I have been trying to print a simple "Hello World" for the past two days over the serial port but only getting line feeds out:(.
I found the error by diffing the 18f45k42.dat file against an older, corrected version I got somewhere (perhaps from you?) a couple of years ago.
In addition, the corrected version I have had these additional lines that are missing in the current version:
(The fact I had a file in my Downloads folder on my desktop computer named "18f45k42-new.dat" suggests I had this problem before, but the source code was never fixed. Please fix it so the next time I install Great Cow Basic I don't inadvertently run into it again ;-). )
Thanks for all your great work!
Last edit: Anobium 2021-01-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Jim - no sure what version of the dat file but it was updated in the RC version last year to:
[FreeRAM]0:7FF[NoBankRAM]'NoBankRAM is somewhat misnamed - it is used for the defintion of (any) access bank locations'If a memory location is defined in both NoBankRAM and FreeRAM, then the compiler knows that it is access bank RAM.'If an SFR location is in one of the NoBankRAM ranges, then the compiler knows not to do any bank selection when accessing that register.'The NoBankRAM section must include two ranges, one for access bank RAM, one for access bank SFRs, or there will be issues.'The first range MUST be the ACCESS RAM range'The first range is the FAST SFR range'If there are no ranges defined in NoBankRAM, the compiler will try to guess them.'On 18Fs, it will guess based on where the lowest SFR is, and from what the total RAM on the chip is. If there's only one range defined'in the NoBankRAM locations, the compiler will assume that is the range for the RAM, and then will guess where the range for the access bank SFRs is.0:5F3F60:3FFF
Re the other missing entries they are also in the latest DAT.
I can't open the RC executable running Linux on an ARM device, so any kind of archive would be OK--rar, tar, gz, zip, etc. The only problem with the rar format is that it's not widely used on Linux and therefore requires an extra software install to unarchive it. A gzip or zip would be preferable, if possible.
A git repository would be fine, too, perhaps even better.
I just ask that it be publicly accessible to anyone. I get a fair number of hits to a page on my website about flashing a PIC using a Pi, which makes me think others would be interested in it, too.
Last edit: Jim Gregory 2021-01-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, I wasn't aware of PICkitPlus Pi. Thanks for letting me know about it. I'll let others know who may need something beyond the basic capabilities of using the GPIO pins and Pickle.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
RESOLVED: Download the latest release, or, download the latest release candidate.
I think there is an address error in all of the chipdata files in the 18F(L)XXk42 family. In the "NoBankRAM" section, all the files have:
0:5F
F60:FFF
when, according to figure 4-4 on page 45 the datasheet, I think it should be:
0:5F
3F60:3FFF
This is in version: 0.98.06 2019-06-12 (Linux 32 bit) I downloaded from source and installed on a Raspberry Pi a few days ago.
I discovered this because I have been trying to print a simple "Hello World" for the past two days over the serial port but only getting line feeds out:(.
I found the error by diffing the 18f45k42.dat file against an older, corrected version I got somewhere (perhaps from you?) a couple of years ago.
In addition, the corrected version I have had these additional lines that are missing in the current version:
LogicCell3Event:CLC3IE,CLC3IF
LogicCell4Event:CLC4IE,CLC4IF
ADPCH_PCH0,ADPCH,0
ADPCH_PCH1,ADPCH,1
ADPCH_PCH2,ADPCH,2
PCH3,ADPCH,3
PCH4,ADPCH,4
PCH5,ADPCH,5
CAP0,ADCAP,0
CAP1,ADCAP,1
CAP2,ADCAP,2
CAP3,ADCAP,3
CAP4,ADCAP,4
(The fact I had a file in my Downloads folder on my desktop computer named "18f45k42-new.dat" suggests I had this problem before, but the source code was never fixed. Please fix it so the next time I install Great Cow Basic I don't inadvertently run into it again ;-). )
Thanks for all your great work!
Last edit: Anobium 2021-01-11
Jim - no sure what version of the dat file but it was updated in the RC version last year to:
Re the other missing entries they are also in the latest DAT.
Can you have a look at https://sourceforge.net/p/gcbasic/code/HEAD/tree/GCBASIC/trunk/chipdata/18f45k42.dat?force=True is this ok?
Sorry for my earlier complaint; it sounds like it was my fault for installing the wrong version, not yours.
I installed GCB from https://downloads.sourceforge.net/project/gcbasic/GCBasic%20-%20Linux%20Distribution/GCB%40Syn.rar. Which URL should I use in the future?
Yes, that version of the file looks fine. Much better documented than the old version, too :-).
Not an issue. Not taken as a complaint.
I can publish the lastest RC as a rar for you. it is no big effort here. Want it?
I can't open the RC executable running Linux on an ARM device, so any kind of archive would be OK--rar, tar, gz, zip, etc. The only problem with the rar format is that it's not widely used on Linux and therefore requires an extra software install to unarchive it. A gzip or zip would be preferable, if possible.
A git repository would be fine, too, perhaps even better.
I just ask that it be publicly accessible to anyone. I get a fair number of hits to a page on my website about flashing a PIC using a Pi, which makes me think others would be interested in it, too.
Last edit: Jim Gregory 2021-01-11
OK. I will put up shortly.
You aware that we (PICKitPlus Team) have completed the PICkitPlus Pi project ? All works for PK2 and PK3 and very nicely.
https://sourceforge.net/projects/gcbasic/files/Release%20Candidates/ release candidate 38 is arriving at that url soon.
Release candidate 39 is already in progress and rc38 will be replaced in less than week.
Thanks for posting the RC.
No, I wasn't aware of PICkitPlus Pi. Thanks for letting me know about it. I'll let others know who may need something beyond the basic capabilities of using the GPIO pins and Pickle.