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 CCS Technical Support

PCD: RTOS is not working with CCS 4.114

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kongfu1



Joined: 26 Apr 2010
Posts: 56

View user's profile Send private message

PCD: RTOS is not working with CCS 4.114
PostPosted: Sun Jan 02, 2011 10:36 pm     Reply with quote

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();
   }

}
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Jan 03, 2011 5:44 am     Reply with quote

With all PCD versions up to V4.116, I get "Internal Error - Contact CCS. Built-in call fail, rtos run".
kongfu1



Joined: 26 Apr 2010
Posts: 56

View user's profile Send private message

How do you see the
PostPosted: Mon Jan 03, 2011 10:39 am     Reply with quote

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".
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Jan 03, 2011 10:45 am     Reply with quote

The code already doesn't compile.
kongfu1



Joined: 26 Apr 2010
Posts: 56

View user's profile Send private message

PostPosted: Mon Jan 03, 2011 11:36 am     Reply with quote

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.
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Jan 03, 2011 2:30 pm     Reply with quote

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
Ttelmah



Joined: 11 Mar 2010
Posts: 19553

View user's profile Send private message

PostPosted: Mon Jan 03, 2011 2:54 pm     Reply with quote

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
kongfu1



Joined: 26 Apr 2010
Posts: 56

View user's profile Send private message

Rtos is fixed
PostPosted: Mon Jan 03, 2011 9:11 pm     Reply with quote

CCS sends me another PCD.dll (version 4.117).
RTOS is working now.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Jan 06, 2011 5:21 am     Reply with quote

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).
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Thu Jan 06, 2011 12:22 pm     Reply with quote

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
kongfu1



Joined: 26 Apr 2010
Posts: 56

View user's profile Send private message

PostPosted: Thu Jan 06, 2011 4:04 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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