[En-Nut-Discussion] newbie link error

Fleur en Richard fleur.rich at wanadoo.nl
Sat Nov 22 16:47:02 CET 2003


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:0x10ff -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.









-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20031122/d69ede36/attachment-0001.html>


More information about the En-Nut-Discussion mailing list