C function call block
Posted: Thu Dec 11, 2008 6:32 pm
Hi you all!
Hello Lubin:
I am trying to understand how the C call function block works but I am stuck. I have just tried to read a variable "data" and put it out . I compare it with a constant and set a port bit if it is greater or iqual. I have attached the C function also. After I compile it I get this error:
.
.
.
.
callf4.o(.text+0x0):C:\Documents and Settings\123\Mis documentos\MATLAB\call4_dspic\sources\..\..\callf4.c: Link Error: Cannot access symbol (_data) at an odd address.
C:\Program Files\Microchip\MPLAB C30\bin\bin/pic30-coff-ld.exe: link errors found, deleting executable `..\../call4.coff'
gmake: *** [..\../call4.coff] Error 0xff
### Real-Time Workshop build procedure for model: 'call4' aborted due to an error.
C30 Compiler found
C30 Compiler found
>>
I was trying to attach the .mdl file and the .c function but I do not know how to attach the files.
Can you explain me how to attach files?
Can you tell me what am I doing wrong?
Jose Luis
Hello Lubin:
I am trying to understand how the C call function block works but I am stuck. I have just tried to read a variable "data" and put it out . I compare it with a constant and set a port bit if it is greater or iqual. I have attached the C function also. After I compile it I get this error:
.
.
.
.
callf4.o(.text+0x0):C:\Documents and Settings\123\Mis documentos\MATLAB\call4_dspic\sources\..\..\callf4.c: Link Error: Cannot access symbol (_data) at an odd address.
C:\Program Files\Microchip\MPLAB C30\bin\bin/pic30-coff-ld.exe: link errors found, deleting executable `..\../call4.coff'
gmake: *** [..\../call4.coff] Error 0xff
### Real-Time Workshop build procedure for model: 'call4' aborted due to an error.
C30 Compiler found
C30 Compiler found
>>
I was trying to attach the .mdl file and the .c function but I do not know how to attach the files.
Can you explain me how to attach files?
Can you tell me what am I doing wrong?
Jose Luis