View previous topic :: View next topic |
Author |
Message |
kongfu1
Joined: 26 Apr 2010 Posts: 56
|
PCD: RTOS is not working with CCS 4.114 |
Posted: Sun Jan 02, 2011 10:36 pm |
|
|
I have used two different PC24 chips to test RTOS features. It is very simple test which toggles a few LED's in a thread. Without RTOS, it works fine. As soon as RTOS enabled, nothing works. Please correct me if any mistake in my testing code.
I read a few posts a year ago about RTOS and PCD compiler. I am wondering if RTOS has been fixed or not.
Howard
Code: |
//#include <24FJ256GB206.h>
#include <24FJ128GA010.h>
#define OS_ON
#ifdef OS_ON
#use rtos(timer=1,minor_cycle=100ms)
#task(rate=1000ms,max=100ms)
void Report_rtos_task ( );
#endif
void IOTest(void)
{
output_toggle(PIN_A0);
output_toggle(PIN_A1);
output_toggle(PIN_A2);
output_toggle(PIN_A3);
output_toggle(PIN_A4);
output_toggle(PIN_A5);
output_toggle(PIN_A6);
output_toggle(PIN_A7);
}
void Report_rtos_task ( )
{
IOTest();
}
void main()
{
rtos_run ( );
while(TRUE)
{
//IOTest();
}
}
|
|
|
![](templates/subSilver/images/spacer.gif) |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Mon Jan 03, 2011 5:44 am |
|
|
With all PCD versions up to V4.116, I get "Internal Error - Contact CCS. Built-in call fail, rtos run". |
|
![](templates/subSilver/images/spacer.gif) |
kongfu1
Joined: 26 Apr 2010 Posts: 56
|
How do you see the |
Posted: Mon Jan 03, 2011 10:39 am |
|
|
How do you see the "Internal Error" reported by using ICD or SIM?
Thanks,
Howard
Quote: |
With all PCD versions up to V4.116, I get "Internal Error - Contact CCS. Built-in call fail, rtos run".
|
|
|
![](templates/subSilver/images/spacer.gif) |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Mon Jan 03, 2011 10:45 am |
|
|
The code already doesn't compile. |
|
![](templates/subSilver/images/spacer.gif) |
kongfu1
Joined: 26 Apr 2010 Posts: 56
|
|
Posted: Mon Jan 03, 2011 11:36 am |
|
|
FvM,
OK. I have no problem to compile the code with version 4.114. Hex file was generated but is not executable.
FvM wrote: | The code already doesn't compile. |
|
|
![](templates/subSilver/images/spacer.gif) |
bkamen
Joined: 07 Jan 2004 Posts: 1611 Location: Central Illinois, USA
|
|
Posted: Mon Jan 03, 2011 2:30 pm |
|
|
FvM wrote: | With all PCD versions up to V4.116, I get "Internal Error - Contact CCS. Built-in call fail, rtos run". |
I can validate -- 4.116 fails the compile.
Code: | *** Error 44 "rtos-test.c" Line 33(176,177): Internal Error - Contact CCS Built in call fail, rtos_run |
_________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19375
|
|
Posted: Mon Jan 03, 2011 2:54 pm |
|
|
This is the second thing reported in the last couple of weeks, where stuff compiles on some machines and not others. The last was the malloc example, which compiled OK for me, but several other users reported it not compiling after about 4.110, without changes....
It looks like CCS has found another 'secret fault' somewhere in the compile process....
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
kongfu1
Joined: 26 Apr 2010 Posts: 56
|
Rtos is fixed |
Posted: Mon Jan 03, 2011 9:11 pm |
|
|
CCS sends me another PCD.dll (version 4.117).
RTOS is working now. |
|
![](templates/subSilver/images/spacer.gif) |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Thu Jan 06, 2011 5:21 am |
|
|
Regarding secret faults, the behaviour can be possibly explained for a computer with multiple CCS C installations. In the IDE, everything is loaded from the current CCS application directory, except for drivers and include files, that are read from the the default CCS directory (or the directory, where CCS C has been installed last). |
|
![](templates/subSilver/images/spacer.gif) |
bkamen
Joined: 07 Jan 2004 Posts: 1611 Location: Central Illinois, USA
|
|
Posted: Thu Jan 06, 2011 12:22 pm |
|
|
I don't use the IDE...
I typically compile from IDM's fabulous UltraEdit32 or MPLAB.
So hopefully I'm spared those maladies.
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
![](templates/subSilver/images/spacer.gif) |
kongfu1
Joined: 26 Apr 2010 Posts: 56
|
|
Posted: Thu Jan 06, 2011 4:04 pm |
|
|
bkamen wrote: | I don't use the IDE...
I typically compile from IDM's fabulous UltraEdit32 or MPLAB.
So hopefully I'm spared those maladies.
-Ben |
I am using MPLAB with two different versions of PCD. Everythings works fine now. |
|
![](templates/subSilver/images/spacer.gif) |
|