View previous topic :: View next topic |
Author |
Message |
equack
Joined: 21 Sep 2009 Posts: 21
|
old code broken in new compiler version: PIC18F2550 CPUDIV1 |
Posted: Wed Sep 01, 2010 1:14 pm |
|
|
Just a heads up:
I discovered the hard way that the old version of the compiler (4.095) defaulted to fuse "CPUDIV1".
The new version of the compiler (4.111) does not.
If you don't specify CPUDIV1 (or some other value) your code will not work. Delay_ms() will take too long and the RS-232 baud rate will be wrong.
It will annoy you and make you curse the compiler upgrade until you figure it out.
Hopefully this post will save someone else the aggravation!
cheers,
-Erik |
|
|
smanzer
Joined: 14 Sep 2009 Posts: 24 Location: Ontario, Canada
|
Compiler Upgrades |
Posted: Thu Sep 02, 2010 7:51 am |
|
|
Hi Eric,
I have learned that the CCS upgrades do not appear to be properly tested by CCS. They fix one thing, that affects other things. It appears to me that they do not have a proper test proceedure to verify their releases.
4.093 was stable, 4.104 and 4.106 gave memory errors when using MALLOC and RS232 problems while 4.110 looks ok.
My advise to anyone using CCS is to install the updated version in another directory than the one you are currently using. Test and retest your code with the new version. When you are happy, move the new compiler over top the old version so it is in the PICC dir.
I too have wasted many hours "fixing" my code that was not broken.
Overall the CCS compiler is great, and CCS do actively try to improve the product. I guess we all have to put up with the growing pains.
Steve _________________ "I am always doing that which I can not do, in order that I may learn how to do it."
- Pablo Picasso |
|
|
armondo_522
Joined: 20 Mar 2010 Posts: 9
|
|
Posted: Fri Oct 29, 2010 1:42 pm |
|
|
I have never gotten anything after 4.087 to work on existing code. |
|
|
|