|
osdir.com mailing list archive F.A.Q. -since 2001! |
|
|
|
Subject: Re: compile problems with winAvr - msg#00056List: science.openeeg.general
by Date: Prev Next Date Index by Thread: Prev Next Thread Index
Hi,
Jelbert Holtrop wrote: Hi All, To be able to recompile the sources of the open eeg firmware I installed winavr 20050214. The make of the examples with the software works fine but when I try to compile modeeg-basic v1.0.0 I get a whole list of errors (see below). Can anyone help me whit this? The AVR compiler gurus have decided that certain macros should not be used any longer. (deprecated syntax) Simply include the macro definitions in the attachment in the firmware C source, and it should compile without errors. Regards, Joerg //Description: old style io-Macros for WinAVR Compiler //Author: Joerg Hansmann //Date: 2005-05-02 // //warning: //do not use these macros for new software //the syntax is not only deprecated now, it is even obsolte //very old style io.h: #ifndef outb #define outb(port, val) outp(val, port) #endif //from old style iomacros.h: #ifndef BV #define BV(x) (1 << (x)) #endif #ifndef outp #define outp(val, port) ((port)=(uint8_t)val) #endif #ifndef inp #define inp(port) ( (int8_t)(port) ) #endif #ifndef cbi #define cbi(port, bit) ( (port) &= ~BV(bit) ) #endif #ifndef sbi #define sbi(port, bit) ( (port) |= BV(bit) ) #endif
Thread at a glance:
Previous Message by Date:Re: input impedanceHector Ortega wrote: > I ask in places where do EEg and they tell me that i need a "reference > electrode". In the openeeg exist this? here do you put it? If you connect all the "-" inputs together to a common node at one single electrode - that is basically what the reference electrode is. That connection scheme is easier to apply, because it utilizes a lower number of electrodes, but it is be more sensitive to hum and interference. It is perfectly OK to use differential inputs as with the OpenEEG. Peter ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar Next Message by Date:Re: input impedanceHi, Hector Ortega wrote: Hi: sorry but i don't have a camera to send a picture of the circuit. I try to get one... The impedance of 8 Megaohms (not Gigohms, sorry) i see at 50Hz with electrodes not connected wit anything (only open). This is way too low...or the stimulus voltage of the impedance tester has triggered the input protection circuit. What signal level does your impedance tester use? (should not exceed 100mVp-p) If nothing of the above applies, I guess your input stage or protection circuit is damaged in some way. Regards, Joerg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar Previous Message by Thread:compile problems with winAvrHi All, To be able to recompile the sources of the open eeg firmware I installed winavr 20050214. The make of the examples with the software works fine but when I try to compile modeeg-basic v1.0.0 I get a whole list of errors (see below). Can anyone help me whit this? Am I missing some library's or is there some other software I should use? What software is used by others to compile the source? Best regards, Jelbert Errors: C:\Program Files\WinAVR\fw\modeeg-basic>make Compiling modeeg-p2.o for ATmega8 modeeg-p2.c: In function `__vector_9': modeeg-p2.c:93: warning: implicit declaration of function `outb' modeeg-p2.c:105: warning: implicit declaration of function `inp' modeeg-p2.c:107: warning: implicit declaration of function `cbi' modeeg-p2.c:108: warning: implicit declaration of function `sbi' modeeg-p2.c: In function `pwm_init': modeeg-p2.c:178: warning: implicit declaration of function `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2e): In function `__vector _9': C:\Program Files\WinAVR\fw\modeeg-basic/modeeg-p2.c:93: undefined reference to ` outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x42):C:\Program Files\WinAV R\fw\modeeg-basic/modeeg-p2.c:105: undefined reference to `inp' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x5a):C:\Program Files\WinAV R\fw\modeeg-basic/modeeg-p2.c:107: undefined reference to `cbi' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x64):C:\Program Files\WinAV R\fw\modeeg-basic/modeeg-p2.c:108: undefined reference to `sbi' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x6e):C:\Program Files\WinAV R\fw\modeeg-basic/modeeg-p2.c:109: undefined reference to `sbi' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0xde): In function `__vector _14': C:\Program Files\WinAVR\fw\modeeg-basic/modeeg-p2.c:123: undefined reference to `inp' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0xf2):C:\Program Files\WinAV R\fw\modeeg-basic/modeeg-p2.c:124: undefined reference to `inp' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x126):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:130: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x132):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:135: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x13c):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:139: undefined reference to `cbi' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x14c):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:144: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x156):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:145: undefined reference to `sbi' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x1ca): In function `__vecto r_12': C:\Program Files\WinAVR\fw\modeeg-basic/modeeg-p2.c:154: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x1e6):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:158: undefined reference to `cbi' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x216): In function `pwm_ini t': C:\Program Files\WinAVR\fw\modeeg-basic/modeeg-p2.c:176: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x220):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:177: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x226):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:178: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x22e):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:178: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x238):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:178: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x244):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:178: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x24e):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:179: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x27c): In function `main': C:\Program Files\WinAVR\fw\modeeg-basic/modeeg-p2.c:202: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x286):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:203: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x290):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:204: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x29a):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:205: more undefined references to `outb' follow C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2a0): In function `main': C:\Program Files\WinAVR\fw\modeeg-basic/modeeg-p2.c:211: undefined reference to `inp' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2a8):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:211: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2b2):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:211: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2ba):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:211: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2c4):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:211: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2d8):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:211: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2e2):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:229: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2e8):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:233: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2f0):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:233: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x2fc):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:233: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x306):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:234: undefined reference to `sbi' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x310):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:235: undefined reference to `sbi' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x31a):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:241: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x324):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:242: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x32e):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:243: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x334):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:244: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x33c):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:244: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x346):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:244: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x352):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:244: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x358):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:245: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x362):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:245: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x36c):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:256: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x376):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:257: undefined reference to `outb' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x37c):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:258: undefined reference to `BV' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8ebaaa.o(.text+0x386):C:\Program Files\WinA VR\fw\modeeg-basic/modeeg-p2.c:258: undefined reference to `outb' make: *** [modeeg-p2.o] Error 1 C:\Program Files\WinAVR\fw\modeeg-basic> ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar Next Message by Thread:Re: compile problems with winAvrHi Joerg, Can you tell me where I can find those macro defenitions ? thanks, Jelbert At 02:02 08-07-05, you wrote: Hi, Jelbert Holtrop wrote: Hi All, To be able to recompile the sources of the open eeg firmware I installed winavr 20050214. The make of the examples with the software works fine but when I try to compile modeeg-basic v1.0.0 I get a whole list of errors (see below). Can anyone help me whit this? The AVR compiler gurus have decided that certain macros should not be used any longer. (deprecated syntax) Simply include the macro definitions in the attachment in the firmware C source, and it should compile without errors. Regards, Joerg //Description: old style io-Macros for WinAVR Compiler //Author: Joerg Hansmann //Date: 2005-05-02 // //warning: //do not use these macros for new software //the syntax is not only deprecated now, it is even obsolte //very old style io.h: #ifndef outb #define outb(port, val) outp(val, port) #endif //from old style iomacros.h: #ifndef BV #define BV(x) (1 << (x)) #endif #ifndef outp #define outp(val, port) ((port)=(uint8_t)val) #endif #ifndef inp #define inp(port) ( (int8_t)(port) ) #endif #ifndef cbi #define cbi(port, bit) ( (port) &= ~BV(bit) ) #endif #ifndef sbi #define sbi(port, bit) ( (port) |= BV(bit) ) #endif ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
blog comments powered by Disqus
|
|