RT-Druid multi-processing support
Posted: Tue Jun 01, 2010 5:49 pm
				
				I've managed to run the PIC30 console demo on MPLAB's simulator, and now want to check out the multi-processing configuration support in RT-Druid (This is just a proof-of-concept step before porting to a Linux test harness - I don't actually have a multi-core PIC30!).
I added MASTER_CPU, ID and CPU_ID lines to my PIC30 OIL file as shown below:
When I build the project I get the following error:
What is suspicious is that the RT-Druid output doesn't show any per-CPU subdirectories when populating the make - is that right?
I was expecting to see a couple of subdirectories created at the very least (cpu0, cpu1)!
Any ideas?
			I added MASTER_CPU, ID and CPU_ID lines to my PIC30 OIL file as shown below:
Code: Select all
CPU mySystem {
	OS myOs {
		EE_OPT = "DEBUG";
		EE_OPT = "VERBOSE";
		
		MASTER_CPU = "cpu0";
		CPU_DATA = PIC30 {
		    ID = "cpu0";
			APP_SRC = "code.c";
			MULTI_STACK = FALSE;
			ICD2 = TRUE;
		};
        CPU_DATA = PIC30 {
            ID = "cpu1";
            APP_SRC = "code_cpu1.c";
            MULTI_STACK = FALSE;
            ICD2 = TRUE;
        };
		MCU_DATA = PIC30 {
			MODEL = PIC33FJ256MC710;
		};
		
		BOARD_DATA = EE_FLEX {
			USELEDS = TRUE;
			TYPE = DEMO {
				OPTIONS = ALL;
			};
		};
		
		KERNEL_TYPE = FP;
		EE_OPT = "__ADD_LIBS__";
		LIB = ENABLE {
			NAME = "CONSOLE";
		};	
		EE_OPT = "USE_CONSOLE";
		EE_OPT = "USE_CONSOLE_SERIAL";
		EE_OPT = "__USE_UART__";
		
	};
	COUNTER myCounter {
	   CPU_ID = "cpu0";
	};
	
	ALARM AlarmSend {
		COUNTER = "myCounter";
		ACTION = ACTIVATETASK { TASK = "TaskSend"; };
	};
	
	TASK TaskSend {
	    CPU_ID = "cpu0";
		PRIORITY = 1;
		STACK = SHARED;
		SCHEDULE = FULL;
	};
};
Code: Select all
C:\ERIKA\Debug\make_launcher.bat all 
C:\cygwin\bin\bash found!
make: *** No rule to make target `all'.  Stop.
Code: Select all
Rebuild /pic30_console_demp/conf.oil in the project pic30_console_demp
Compute configuration's files
Check and fill folder /pic30_console_demp/Debug
	/pic30_console_demp/Debug/subdir.mk	OK (overwritten)
	/pic30_console_demp/Debug/eecfg.c	OK (overwritten)
	/pic30_console_demp/Debug/eecfg.h	OK (overwritten)
	/pic30_console_demp/Debug/cpu.mk	OK (overwritten)
	/pic30_console_demp/Debug/makefile	OK (overwritten)
	/pic30_console_demp/Debug/common.mk	OK (overwritten)
	/pic30_console_demp/Debug/subdir.mk	OK (overwritten)
	/pic30_console_demp/Debug/eecfg.c	OK (overwritten)
	/pic30_console_demp/Debug/eecfg.h	OK (overwritten)
	/pic30_console_demp/Debug/cpu.mk	OK (overwritten)
Check and fill folder pic30_console_demp/Debug
	pic30_console_demp/Debug/make_launcher.bat	OK (overwritten)
Good, it's all ok.
Any ideas?
