Vitat's homepage
13 Sep 2026, 05:23 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: 21.03.08 Произведено обновление сайта/Site was updated
 
  Home   Forum   Help Search Login Register  

Pages: [1]   Go Down
  Print  
Author Topic: Complile problems  (Read 12039 times)
0 Members and 1 Guest are viewing this topic.
Chris
Junior
**
Posts: 12


View Profile
« on: 11 Oct 2005, 20:25 »

Hi,

When I tyr to compile the source I get the following error

C:\testmd\MD\IPbus_v5_MD>make
-------- begin --------
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-
struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=link.lst link.c -o lin
k.o
link.c:2:23: avr/timer.h: No such file or directory
link.c: In function `read_message':
link.c:72: warning: implicit declaration of function `cbi'
link.c:74: warning: implicit declaration of function `timer0_source'
link.c:74: error: `CK64' undeclared (first use in this function)
link.c:74: error: (Each undeclared identifier is reported only once
link.c:74: error: for each function it appears in.)
link.c:75: warning: implicit declaration of function `timer0_start'
link.c:76: warning: implicit declaration of function `inb'
link.c:78: warning: implicit declaration of function `inp'
link.c:132: warning: implicit declaration of function `sbi'
link.c: In function `read_byte':
link.c:150: error: `CK64' undeclared (first use in this function)
link.c: In function `read_byte_wo_parity':
link.c:195: error: `CK64' undeclared (first use in this function)
link.c: In function `send_acknowledge':
link.c:227: error: `CK64' undeclared (first use in this function)
link.c: In function `send_message':
link.c:249: error: `CK64' undeclared (first use in this function)
link.c: In function `read_acknowledge':
link.c:404: error: `CK64' undeclared (first use in this function)
make: *** [link.o] Error 1


It cannot find avr/timer.h! and I  cannot find it under C:\WinAVR\avr\include\avr

Please help!!!
« Last Edit: 11 Oct 2005, 20:30 by Chris » Logged
brokly
Member
***
Posts: 82


View Profile
« Reply #1 on: 12 Oct 2005, 10:52 »

Hi.
Small question... What for you compile this code?
Look it http://www.vitat.spb.ru/forum/index.php/topic,151.0.html
"You need to use one of the earlier version of winavr since the code doesnt compile properly with the newer versions."
Logged
Sergey
Member
***
Posts: 76


View Profile Email
« Reply #2 on: 12 Oct 2005, 23:42 »

See your "PATH variables".  "C:\WinAVR\avr\" and  "C:\WinAVR\" must include in 'PATH'.
Logged
brokly
Member
***
Posts: 82


View Profile
« Reply #3 on: 14 Oct 2005, 08:50 »

This `cbi' and this `sbi' аre absent in the new versions.
Logged
Chris
Junior
**
Posts: 12


View Profile
« Reply #4 on: 14 Oct 2005, 12:48 »

Doh!, Had the wrong WinAvr version installed. Now compiling fine.

The problem I have now is that after installing IPbus_v5_MD the HU show the device as External (which is fine) but just sits there flashing TOC READ at me.
I really want to use some of the features of this version such as:

FUNC -> enter to functions mode and choises function
UP or DOWN => fastforward on tracks with 1 track step, this function allows at fast browsing on tracks to see their names (only in MD mode)
etc..

I am using the emulator to control a PC if this makes any diffrence.

Also what is "Stupid mode"?

Cheers
Logged
brokly
Member
***
Posts: 82


View Profile
« Reply #5 on: 14 Oct 2005, 23:45 »

Hi,

Ок, I repeat only for you Wink

For a choice ID press next keys: FUNC-FUNC-FUNC-UP-UP-...(While on the screen will not appear "MAIN ID") - press and hold UP (On the screen "MAIN 05", Means ID of the emulator 05) - UP -UP-...(While on the screen will not appear "MAIN NN" , where NN number of the device, for CD - 06, for MD - 0C (only if head supports MD), for EXT - other ) - press and hold UP (The emulator will be disconnected, after activate will be new ID).

see -> http://www.vitat.spb.ru/forum/index.php/topic,93.0.html
          http://www.vitat.spb.ru/forum/index.php/topic,97.0.html
(for translate http://www.translate.ru)

And if the emulator does not react to commands HU means there is no communication with a computer. In this case on the screen always - " TOC READ "

"Stupid mode" - It when HU works using the universal frame of the report. Happens in that case when HU not understand  the conection device. For example not all HU know MD, but everyone can operate. If HU does not know the device some functions are inaccessible.


« Last Edit: 14 Oct 2005, 23:49 by brokly » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

TinyPortal v1.0.5 beta 1© Bloc

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!