AW: [En-Nut-Discussion] newbie link error

Oliver Schulz olischulz at web.de
Sat Nov 22 18:56:19 CET 2003


Hi Richard,

The function 'NutRegisterInterrupt' is obsolete. Please use
'NutRegisterIrqHandler' instead.
Note the different parameters for this function. Use 'sig_INTERRUPT4' as
replacement for 'IRQ_INT4'.

Hope that helps,
Oliver.


-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von Fleur en Richard
Gesendet: Samstag, 22. November 2003 16:47
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] newbie link error


Hi All,

I would appreciate your help on the following:
Iam using the ENUT v1.3 and Windows Imagecraft IDE for ICCAVR to build the
example tcps.c. This works ok but now Iam trying to add some code that
handles an external interrupt.

So what I did is, I added :
#include <dev/irqreg.h> and
NutRegisterInterrupt(IRQ_INT4, PPSInterruptHandler, 0); /* Register the
decoder interupt with the OS */

call somewhere in the code.

Now I can not finish the building process because of the following message:
C:\iccavr\bin\imakew -f tcps.mak
iccavr -c -I..\..\include\ -IC:\iccavr\include\ -e -D_MCU_enhanced -DATMEGA 
-l -g -Mavr_enhanced C:\ethernut\nut\app\tcps\tcps.c
iccavr -o
tcps -LC:\iccavr\lib\ -g -ucrtatmega.o -bfunc_lit:0x8c.0x20000 -dram_end:0x1
0ff -bdata:0x100.0x10ff -dhwstk_size:16 -beeprom:1.4096 -fihx_coff -ucrtnut.
o c:\iccavr\lib\nutinit.o -S2
@tcps.lk -lnutpro -lnutnet -lnutos -lnutdev -lnutcrt -lcatmega
!E <library>(7194): multiple define: '_SIG_INTERRUPT5'
!E <library>(7213): multiple define: '_SIG_OVERFLOW0'
!E <library>(7232): multiple define: '_SIG_UART_TRANS'
!E <library>(7251): multiple define: '_SIG_UART_RECV'
C:\iccavr\bin\imakew.exe: Error code 1
Done: there are error(s). Exit code: 1
Somewhere is a confilct between the file uartavr.h and irqreq.h and their
libs but i think I need them both for resp. the Int. handling and the
outputting to the serial port.
I have setup the ICCAVR options according the help of ENUT:
include path:         ..\..\include\;C:\iccavr\include\
lib path:        C:\iccavr\lib\
additional libs: nutpro nutnet nutos nutdev nutcrt
additional options: -ucrtnut.o c:\iccavr\lib\nutinit.o
I copied all the ethernut libs into the C:\iccavr\lib\ folder.
Does anybody have an idea what's happening here, I am kind of stuck?
Thanks,
Richard Bouwman\
Vinkeveen, Netherlands.









More information about the En-Nut-Discussion mailing list