CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug Reports on this forum. Send them to support@ccsinfo.com

18F6722 possible math issue from compiler v5.074 to 5.105
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 18060

View user's profile Send private message

PostPosted: Fri Jan 28, 2022 12:49 pm     Reply with quote

Good. That matches the behaviour I have seen on some other things.

My 'belief' if that the compiler works always sequentially.
Stuff in the command line is treated as if it is typed in front of the first
line of the actual program.
So if you specify a define in the command line for example, it is defined,
but if there is a different define in the code you get up the warning saying
that this has been redefined.
pmuldoon



Joined: 26 Sep 2003
Posts: 212
Location: Northern Indiana

View user's profile Send private message

PostPosted: Mon Jan 31, 2022 7:29 am     Reply with quote

Just to follow-up, I was sent a patch from CCS. I dropped it into my PICC\DLL\5.105 folder per instructions.
Now I get a compile error:
Quote:

*** Error 44 "C:\Program Files (x86)\PICC\devices\18LF6722.h" Line 11(1,1): Internal Error - Contact CCS PR-CODE at 85/C/0 SCR=294

CCS requested my source, so I sent it along with a copy of the header file that was rejected. They said it compiled fine for them and asked what my latest compiler version is (5.105). No indication of what would cause the error other than saying it's not a license issue.

Has anyone ever seen that error? I'm sure CCS will resolve it, but I'm going to have to move fwd today, even if it means using the original compiler and changing to #OPT 0 and hoping nothing else breaks in the downshift. Or stepping back to the original compiler version.

BTW, what is the best way to temporarily switch to a previous compiler version? I have a PICC\DLL\ folder full of #.## folders (for each version upgrade). I use both MPLAB8 and MPLABX. Is there something in the myriad features I don't use that would handle this? A compiler directive would be really cool, #COMPILER 5.105, but I'm sure that's to easy a solution. Really, it should be a directive option so that every program would be 'locked' to the compiler version it was created in until the user decided otherwise.
Ttelmah



Joined: 11 Mar 2010
Posts: 18060

View user's profile Send private message

PostPosted: Mon Jan 31, 2022 7:48 am     Reply with quote

The compiler does have an option to compile with older versions.
However 'caveat', you will still have the current include files etc..
I've always installed each CCS version into a separate directory, so
that I can specify the version and keep it with each project for this
reason.
pmuldoon



Joined: 26 Sep 2003
Posts: 212
Location: Northern Indiana

View user's profile Send private message

PostPosted: Mon Jan 31, 2022 8:23 am     Reply with quote

Just looking at the .h file, there is no revision reference within it. So there is no way to tell what compiler version it is associated with. They are small but many, so it would be impractical to save them all.
I suppose one could add a version suffix to the header filename and save it with the project, then somehow reference the desired compiler folder.

Somewhere along the line these dev environments missed the obvious. If you can't lock-in a compiler revision, then full, functional testing is required every time the compiler is upgraded. And who does, or wants to do that?

I guess I've just turned into one of those old guys who just complains a lot, LOL.
temtronic



Joined: 01 Jul 2010
Posts: 8525
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jan 31, 2022 10:39 am     Reply with quote

re: I guess I've just turned into one of those old guys who just complains a lot, LOL.

cheer up, someone installed a fancy router for my old trusty one and I don't get emails for 3 days !!! Reinstall old router, 42 come in real fast but...wife HAS to have wireless for here inbed netflix..
.
sigh.. I'm tired of this new 'tech'..
let's bring back the PIC16C84 !!!

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 18060

View user's profile Send private message

PostPosted: Mon Jan 31, 2022 11:08 am     Reply with quote

I still have a couple of boards out on site running with those!. Remember
their amazement when I said it didn't have a millennium issue. Seems
an age ago now....
Unfortunately CCS recently seem to have stepped back a little in their
QA on new versions. A definite caveat. Sad
A couple of years ago, they produced a number of versions without
seeming to introduce many new bugs. Recently issues are not being
fixed as well as they were and seem to come with a lot of new issues.
pmuldoon



Joined: 26 Sep 2003
Posts: 212
Location: Northern Indiana

View user's profile Send private message

PostPosted: Mon Jan 31, 2022 12:38 pm     Reply with quote

Would either of you guys be interested in buying a slightly used UV eraser and some windowed 16c56/57 chips, LOL!
I remember I just used to keep the lamp running all day while I swapped chips and debugged my programs.
Ttelmah



Joined: 11 Mar 2010
Posts: 18060

View user's profile Send private message

PostPosted: Wed Feb 02, 2022 6:46 am     Reply with quote

I still have my own eraser, and many hundreds of the old windowed
chips...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group