View previous topic :: View next topic |
Author |
Message |
MeisterOss
Joined: 18 Dec 2013 Posts: 8
|
Failed to load cof file / stacksize? |
Posted: Thu Feb 13, 2014 3:12 am |
|
|
Hello
I already found some topics with that title, but non of these helped me by solving my problem.
I change form CCS 4.137 to CCS 5. 018 . I´m using MPLAB IDEv8.92 and PIC24HJ256GP610.
After a successful build of the project a pop up window appears with the message: Failed to load .../filepath/filename.cof
I already changed the Build Option to Debug = none instead of Debug = COFF format, but this makes no difference.
I also checked the STA File of the project and the Stack is at 100% (30/30, Interrupts=0). My privious build with CCS 4.137 has only 9/30.
I`m not sure if these issues depend on each other but I`m very happy about any advice or tip to solve the problems.
Thank you |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Thu Feb 13, 2014 4:48 am |
|
|
On the stacksize, the newer compiler makes no attempt to reduce this, until it has to. It will fill the stack up on the basis that code is smaller. However the STA reports seem also to be 'wrong' at times. Have had code reporting ROM use at 170% in the STA reports. Tend to just look at the .LST file, whose figures seem to be right....
Best Wishes |
|
|
MeisterOss
Joined: 18 Dec 2013 Posts: 8
|
|
Posted: Thu Feb 13, 2014 7:57 am |
|
|
Ok thanks Ttelmah.
I solved the problem by updating the compiler to V5.019
May be this was the reason:
RECENT CHANGES
5.019 A problem with addressmod for some chips and data types is fixed |
|
|
MeisterOss
Joined: 18 Dec 2013 Posts: 8
|
|
Posted: Thu Feb 13, 2014 7:59 am |
|
|
By the way CCS V5.016 works too |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Thu Feb 13, 2014 8:36 am |
|
|
Are you using Addressmod?.
It'll be nice if this starts working. It is one of those "hasn't been working for several versions" features, that I miss.... |
|
|
jeremiah
Joined: 20 Jul 2010 Posts: 1354
|
|
Posted: Thu Feb 13, 2014 11:28 am |
|
|
I sent CCS an email about address mod a month ago. The reply said they had fixed it in the latest version. I haven't had a way to test it out just yet. |
|
|
|