|
Title: Problems to compile Yampp_Pioneer v2.2 Post by: Anonymous on 30 Nov 2003, 15:31 Hi,
when i want to compile the sources, i get the following output: [code:1] -------- begin -------- avr-gcc -c -mmcu=atmega162 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=yampp3.lst yampp3.c -o yampp3.o yampp3.c: In function `main': yampp3.c:189: error: `PE2' undeclared (first use in this function) yampp3.c:189: error: (Each undeclared identifier is reported only once yampp3.c:189: error: for each function it appears in.) make: *** [yampp3.o] Error 1 -------- end ----------[/code:1] Any idea, what´s the error? thanks, sebastian Title: Problems to compile Yampp_Pioneer v2.2 Post by: Sergey on 30 Nov 2003, 18:26 change PE2 on 2 or PINE2(PORTE2)
On Mega162 PE1 use for SUART, PE2 undefined Title: Problems to compile Yampp_Pioneer v2.2 Post by: Vitat on 30 Nov 2003, 19:33 Code is writing for yampp3 versions with AT90S8515 or ATMega161. I have not ATMega162 now. So, I can not adapt and testing code with ATMega162. ](*,)
Some specific definitions in Mega161 and Mega162 are different. Like this: Mega162 PORTE bit definitions PORTE2 2 PORTE1 1 PORTE0 0 Mega161 PORTE bit definitions PE2 2 PE1 1 PE0 0 Title: Problems to compile Yampp_Pioneer v2.2 Post by: Vitat on 30 Nov 2003, 21:08 :-k You can compile code for ATMega161. And you need set Mega161 compatibility fuse in mega162 CPU.
Set fuse bits like this: (http://www.myplace.nu/mp3/images/fuses162.gif) I think, it must working. \:D/ Title: Another Problem Post by: sebastian on 30 Nov 2003, 23:39 Hi!
Thanks for your Answers! The first Problem seems to be solved. But now I get another Error-Message: [code:1] -------- begin -------- avr-gcc -c -mmcu=atmega162 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=yampp3.lst yampp3.c -o yampp3.o avr-gcc -c -mmcu=atmega162 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=fat.lst fat.c -o fat .o avr-gcc -c -mmcu=atmega162 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=ata_if.lst ata_if.c -o ata_if.o avr-gcc -c -mmcu=atmega162 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=delay.lst delay.c -o delay.o avr-gcc -c -mmcu=atmega162 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=uart.lst uart.c -o u art.o uart.c: In function `UART_Init': uart.c:77: error: `RXCIE' undeclared (first use in this function) uart.c:77: error: (Each undeclared identifier is reported only once uart.c:77: error: for each function it appears in.) uart.c:77: error: `RXEN' undeclared (first use in this function) uart.c:77: error: `TXEN' undeclared (first use in this function) uart.c:79: error: `UBRRH' undeclared (first use in this function) uart.c:81: error: `UBRR0' undeclared (first use in this function) uart.c: In function `UART_SendByte': uart.c:154: error: `UDRE' undeclared (first use in this function) make: *** [uart.o] Error 1 [/code:1] Title: Problems to compile Yampp_Pioneer v2.2 Post by: Vitat on 01 Dec 2003, 00:15 Look in to \WinAVR\avr\incluide\avr\iom161.h and \iom162.h and find the differents.
|