Vitat's homepage
29 Apr 2024, 00:25
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: 21.03.08 Произведено обновление сайта/Site was updated
Home
Forum
Help
Search
Login
Register
Vitat's homepage
>
Forum
>
General
>
MP3
>
Problems to compile Yampp_Pioneer v2.2
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Problems to compile Yampp_Pioneer v2.2 (Read 9993 times)
0 Members and 1 Guest are viewing this topic.
Anonymous
Guest
Problems to compile Yampp_Pioneer v2.2
«
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
Logged
Sergey
Member
Posts: 76
Problems to compile Yampp_Pioneer v2.2
«
Reply #1 on:
30 Nov 2003, 18:26 »
change PE2 on 2 or PINE2(PORTE2)
On Mega162 PE1 use for SUART, PE2 undefined
Logged
Vitat
Administrator
Full Member
Gender:
Posts: 338
Problems to compile Yampp_Pioneer v2.2
«
Reply #2 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
Logged
Vitat
Administrator
Full Member
Gender:
Posts: 338
Problems to compile Yampp_Pioneer v2.2
«
Reply #3 on:
30 Nov 2003, 21:08 »
You can compile code for ATMega161. And you need set Mega161 compatibility fuse in mega162 CPU.
Set fuse bits like this:
I think, it must working.
Logged
sebastian
Newbie
Posts: 6
Another Problem
«
Reply #4 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]
Logged
Vitat
Administrator
Full Member
Gender:
Posts: 338
Problems to compile Yampp_Pioneer v2.2
«
Reply #5 on:
01 Dec 2003, 00:15 »
Look in to \WinAVR\avr\incluide\avr\iom161.h and \iom162.h and find the differents.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> MP3
=> General
TinyPortal v1.0.5 beta 1©
Bloc
Loading...