| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| tester 
 
 
 Joined: 29 Jun 2009
 Posts: 40
 Location: Russia, SPb
 
 
			      
 
 |  | 
	
		|  | 
	
		| future 
 
 
 Joined: 14 May 2004
 Posts: 330
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Tue Jun 30, 2009 8:13 am |   |  
				| 
 |  
				| Great! Is version 3.249 able to compile it? I tried and got some errors but did not investigate why yet. |  | 
	
		|  | 
	
		| tester 
 
 
 Joined: 29 Jun 2009
 Posts: 40
 Location: Russia, SPb
 
 
			      
 
 | 
			
				|  |  
				|  Posted: Tue Jun 30, 2009 8:30 am |   |  
				| 
 |  
				|  	  | future wrote: |  	  | Great! Is version 3.249 able to compile it? I tried and got some errors but did not investigate why yet. | 
 I tried only with version 4.084.
 
 What type of errors? What does your program do? Is your project created correctly?
 |  | 
	
		|  | 
	
		| tester 
 
 
 Joined: 29 Jun 2009
 Posts: 40
 Location: Russia, SPb
 
 
			      
 
 |  | 
	
		|  | 
	
		| mutthunaveen 
 
 
 Joined: 08 Apr 2009
 Posts: 100
 Location: Chennai, India
 
 
			    
 
 | 
			
				| osa.h |  
				|  Posted: Mon Aug 10, 2009 10:45 pm |   |  
				| 
 |  
				| I tried to run a simple code shown below. By copying osa.h and OSAcfg.h in the compilation dir, but I cannot successfully compile it. 
  	  | Code: |  	  | #include <16F877A>
 ...clock and misc....
 #include <osa.h>
 
 void main (void)
 {
 OS_Init();
 OS_Run();
 }
 
 | 
 If I run this plain program it is showing an error as " # a device must be included....."
 
 Across this in the file osa.h the error is coming
 
  	  | Code: |  	  | #if !defined(OS_SMSG_TYPE)
 #define     OS_SMSG_TYPE    unsigned char
 #endif
 
 | 
 Could you please give me any fully functional program that works with CCS compiler version 4.084 please
      |  | 
	
		|  | 
	
		| tester 
 
 
 Joined: 29 Jun 2009
 Posts: 40
 Location: Russia, SPb
 
 
			      
 
 | 
			
				| Re: osa.h |  
				|  Posted: Tue Aug 11, 2009 2:34 am |   |  
				| 
 |  
				| Hello. 
  	  | mutthunaveen wrote: |  	  | I tried to run a simple code shown below. By copying osa.h and OSAcfg.h in the compilation dir, but I cannot successfully compile it. | 
 First: it is wrong to copy osa.h into the project directory. This file should be stayed into OSA directory.
 
 Second: did you create your project correctly?
 
  	  | Quote: |  	  | Could you please give me any fully functional program that works with CCS compiler version 4.084 please      | 
 Look at the OSA last version:
 Path "osa\test\" contains test projects (projects created in MPLab).
 Path "osa\example\ccs" contains working example for LED controlling.
 |  | 
	
		|  | 
	
		| mutthunaveen 
 
 
 Joined: 08 Apr 2009
 Posts: 100
 Location: Chennai, India
 
 
			    
 
 | 
			
				| sorry the version number is 4.023 |  
				|  Posted: Tue Aug 11, 2009 8:18 am |   |  
				| 
 |  
				| dear tester i am using the version ccs 4.023 
 i downloaded the Version 90722 @ 849 kb (2009, jul, 22) NEW file from the site
 
 i entered into the Path "osa\example\ccs" contains working example for LED controlling.
 
 and i compiled the file "lights_ccs16.c" from the same folder "osa" i did not change any thing i downloaded and compiled as it is..... now i am getting this message as shown in the attachment...
 
 actually i am new to this concept OSA.... i started reading this topic from yesterday evening. i am very much interested with this.. i tried several ways yesterday.........
 
 please help me in successfully compiling this and running osa in my PIC...
   
 the error listings are::::::::
 
 *** Error 18 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 35(10,17): File can not be opened
 Not in "C:\Program Files\PICC\Devices\osa.h"
 Not in "C:\Program Files\PICC\Drivers\osa.h"
 Not in "C:\Program Files\PICC\Devices\osa.h"
 Not in "C:\Program Files\PICC\Drivers\osa.h"
 Not in local "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\osa.h"
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 157(5,12): Undefined identifier   OS_Init
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 159(5,19): Undefined identifier   OS_Task_Define
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 160(5,19): Undefined identifier   OS_Task_Define
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 161(5,19): Undefined identifier   OS_Task_Define
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 163(5,19): Undefined identifier   OS_Task_Create
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 164(5,19): Undefined identifier   OS_Task_Create
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 165(5,19): Undefined identifier   OS_Task_Create
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 171(5,10): Undefined identifier   OS_EI
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 173(5,11): Undefined identifier   OS_Run
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 306(5,13): Undefined identifier   OS_Timer
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 329(38,46): Undefined identifier   OS_Delay
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 355(13,25): Undefined identifier   OS_Cond_Wait
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 356(13,21): Undefined identifier   OS_Delay
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 370(13,25): Undefined identifier   OS_Cond_Wait
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 371(13,21): Undefined identifier   OS_Delay
 *** Error 12 "C:\Documents and Settings\oneder\Desktop\OSA\example\ccs\lights_ccs16.c" Line 395(9,17): Undefined identifier   OS_Delay
 17 Errors,  0 Warnings.
 |  | 
	
		|  | 
	
		| tester 
 
 
 Joined: 29 Jun 2009
 Posts: 40
 Location: Russia, SPb
 
 
			      
 
 | 
			
				| Re: sorry the version number is 4.023 |  
				|  Posted: Tue Aug 11, 2009 8:32 am |   |  
				| 
 |  
				| Error "File can't be opened" occurs because of osa.h is included with <> braces, so it is supposed that this file located in the include path, not in project path. See MPLab menu "Project\Build options\Project\Directories" list for "include path search". There should be two paths: path to your project directory and path to osa.c file. 
 All project settings (e.g. paths) suppose that project placed into c:\osa\examples\ccs (you placed it on the desktop). Move OSA folder into C:\ and try again.
 |  | 
	
		|  | 
	
		| mutthunaveen 
 
 
 Joined: 08 Apr 2009
 Posts: 100
 Location: Chennai, India
 
 
			    
 
 | 
			
				| I will try when I reach my home |  
				|  Posted: Wed Aug 12, 2009 4:25 am |   |  
				| 
 |  
				| Thanks for your reply. 
 Do this OSA work for my version of CCS?  I will try and update to you when I reach my home.
 |  | 
	
		|  | 
	
		| tester 
 
 
 Joined: 29 Jun 2009
 Posts: 40
 Location: Russia, SPb
 
 
			      
 
 | 
			
				| Re: i will tru when i reach my home |  
				|  Posted: Thu Aug 13, 2009 2:27 am |   |  
				| 
 |  
				|  	  | mutthunaveen wrote: |  	  | Do this OSA work for my version of CCS? I will try and update to you when I reach my home. | 
 
 I tried with version 4.084 only.
 |  | 
	
		|  | 
	
		| mickey231bhq 
 
 
 Joined: 06 Apr 2005
 Posts: 19
 Location: Formosa
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Thu Aug 13, 2009 10:12 am |   |  
				| 
 |  
				| 4.096 version I tried, no problem. |  | 
	
		|  | 
	
		| tester 
 
 
 Joined: 29 Jun 2009
 Posts: 40
 Location: Russia, SPb
 
 
			      
 
 | 
			
				|  |  
				|  Posted: Thu Aug 13, 2009 10:26 am |   |  
				| 
 |  
				|  	  | mickey231bhq wrote: |  	  | 4.096 version I tried, no problem. | 
 
 Thank you!
 
 (Do not be shy to ask when something will not work.)
 |  | 
	
		|  | 
	
		| mickey231bhq 
 
 
 Joined: 06 Apr 2005
 Posts: 19
 Location: Formosa
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Thu Aug 13, 2009 3:38 pm |   |  
				| 
 |  
				| I would like to ask you to support CCS for dspic (pcd) the idea of it?  |  | 
	
		|  | 
	
		| tester 
 
 
 Joined: 29 Jun 2009
 Posts: 40
 Location: Russia, SPb
 
 
			      
 
 | 
			
				|  |  
				|  Posted: Thu Aug 13, 2009 3:42 pm |   |  
				| 
 |  
				|  	  | mickey231bhq wrote: |  	  | I would like to ask you to support CCS for dspic (pcd) the idea of it?  | 
 
 Not now, may be in future. dsPICs and PIC24 are supported by OSA only with Microchip C30.
 |  | 
	
		|  | 
	
		| mutthunaveen 
 
 
 Joined: 08 Apr 2009
 Posts: 100
 Location: Chennai, India
 
 
			    
 
 | 
			
				| dear tester it is working fine in V4.023 |  
				|  Posted: Tue Aug 18, 2009 1:01 am |   |  
				| 
 |  
				| I actually configured the compilation folder to the folder "osa" then compiled an example CCS program "LED xxx"...... it  compiled with no errors. 
 It is working with the simulator. But it did not still work with the real PIC hardware. Today this evening I will try in my home and reply back to you tomorrow.
 
 Can you give me a study guide to add the functions into RTOS ?
 |  | 
	
		|  | 
	
		|  |