i had a hard time doing my first program using this softwares. i always get this error message when i compile my project (check the error plese... in bold letters):
Make: The target "E:\my dspic\exer1.o" is up to date.
Make: The target "E:\my dspic\exer1.cof" is out of date.
Executing: "E:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -Wl,"E:\my dspic\exer1.o","E:\Program Files\Microchip\MPLAB ASM30 Suite\lib\cmx_inis.o","E:\Program Files\Microchip\MPLAB C30\lib\lbdspic.a",--script="E:\Program Files\Microchip\MPLAB C30\support\gld\p30f6014.gld",-o"exer1.cof"
E:\Program Files\Microchip\MPLAB ASM30 Suite\lib\cmx_inis.o(.text+0x10):C:\pic30_tools\cmx\sched\Cmx_inis.c: undefined reference to `int_storage'
E:\Program Files\Microchip\MPLAB C30\lib\lbdspic.a(cxreturn.o)(.text+0xc):C:\pic30_tools\cmx\sched\cmxmod\cxreturn.c: undefined reference to `cmx_xx2'
BUILD FAILED: Wed May 04 11:57:37 2005
here's my current settings of my project:
in my project window:
--> source files: exer1.c
--> header files: csfunc.h and p30f6014.h
--> object files: cmx_inis.o
--> library files: lbdspic.a
--> linker scripts: p30f6014.gld
in my Select Language Toolsuite settings:
--> Active Toolsuite: Microchip C30 Toolsuite
toolsuite contents:
--> MPLAB ASM30 Assembler (pic30-as.exe) ------ E:\Program Files\Microchip\MPLAB ASM30 Suite\bin\pic30-as.exe
--> MPLAB C30 C Compiler (pic30-gcc.exe) ------ E:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe
--> MPLAB LINK30 Object Linker (pic30-ld.exe) ------ E:\Program Files\Microchip\MPLAB ASM30 Suite\bin\pic30-ld.exe
--> LIB30 Archiver (pic30-ar.exe) ------ E:\Program Files\Microchip\MPLAB C30\bin\pic30-ar.exe
here's my code that does nothing:
#include <p30f6014.h>
#include <csfunc.h>
#define TASK1_ID 1
#define TASK2_ID 2
int main (void);
void task1 (void);
void task2 (void);
unsigned short task_stack[200];
const ROM_TCB task_rom_list[]=
{
main,0,0,
task1,&task_stack[50],2,
task2,&task_stack[100],3,
};
int main (void)
{
byte status;
K_OS_Init(); //init OS
status = K_Task_Create(TASK1_ID);
status |= K_Task_Create(TASK2_ID);
while (status);
for(;;);
};
void task1 (void)
{}
void task2 (void)
{}
can someone please help me with the error message? i tried reading the user manual of both softwares but can't seem to find the error. i tried copying the .h .o .a files to the folders (as seen above) but still the same problem. please help me...
Thank you very much!
-jay
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
[Non-text portions of this message have been removed]Message
MPLAB C30 and CMX scheduler using MPLAB IDE
2005-05-06 by jay marante
Attachments
- No local attachments were found for this message.