vec
Joined: 18 Feb 2009 Posts: 1
|
How can I #import? |
Posted: Wed Feb 18, 2009 12:50 pm |
|
|
Does anybody know how to import object files assembled by MPASM to CCS?
This query should be exactly same as the past topics:
http://www.ccsinfo.com/forum/viewtopic.php?t=30328
http://www.ccsinfo.com/forum/viewtopic.php?t=28353
but seems to be unsolved.
When I coded
Code: | #device pic16f877
#import (FILE=../obj/obj.o, COFF)
extern void func(void) ;
void main() {
func() ;
}
|
then get
Error 148 "main.c" Line 2[8,14]: Liner Error: COFF file 'C:\obj\obj.c' is corrupt: recompile module.
Here is my assembler code
Code: | code
_func:
global _func
nop
return
end
|
my environment is:
MPLAB v8.20
PCW v4.086 (demo)
(I have PCM v3.249. it gives same error)
Thanks in advance,
vec |
|