[#1] AT90S2313
Mam problem:
Build started 7.11.2008 at 19:06:35
avr-gcc.exe -I"C:Documents and SettingsAdministratorMoje dokumentySZMIX."  -mmcu=at90s2313 -Wall -gdwarf-2  -O0 -fsigned-char -MD -MP -MT SZMIX.o -MF dep/SZMIX.o.d  -c  ../SZMIX.c
../SZMIX.c: In function 'main':
../SZMIX.c:6: warning: implicit declaration of function 'outp'
avr-gcc.exe -mmcu=at90s2313  SZMIX.o     -o hej.elf
SZMIX.o: In function `main':
BŁĄD C:Documents and SettingsAdministratorMoje dokumentySZMIXdefault/../SZMIX.c:6: undefined reference to `outp'
BŁĄD C:Documents and SettingsAdministratorMoje dokumentySZMIXdefault/../SZMIX.c:9: undefined reference to `outp'
BŁĄD C:Documents and SettingsAdministratorMoje dokumentySZMIXdefault/../SZMIX.c:10: undefined reference to `outp'
make: *** [hej.elf] Error 1
Build failed with 3 errors and 1 warnings...


Kod Programu:
#include 
#include 

int main(void)
{
  outp(0x37,DDRB);
  while(1)
  {
    outp(0x17,PORTB);
    outp(0x37,PORTB);
  }
}



Kod przekopiowany z strony/poradnika, nie powinno być błędu, a jednak jest coś nie tak....



Ostatnia modyfikacja: 06.11.2008 19:16:42
[#2] Re: AT90S2313

@arti4-92, post #1

Taki z Ciebie Rodney, a takiej prostej rzeczy nie kumasz :P

Dodaj do źródła zaraz po inkludach

#define outp(val, port) (port = val)


Wiesz tak poza tym co Ty w ogóle próbujesz zrobić tym programem? :P

[#3] Re: AT90S2313

@MinisterQ, post #2

Build started 7.11.2008 at 19:06:35 :D OK



Ostatnia modyfikacja: 06.11.2008 19:40:05
[#4] Re: AT90S2313

@MinisterQ, post #2

No właśnie - z ciekawości pytam, bo lama jestem z C - arti ma zamiar coś włączać i wyłączać - znaczy się mrugać czymś? Ten, tego - taki "migacz" sobie pisze? :D TAK NIE?
[#5] Re: AT90S2313

@APC74, post #4

Tak. Tyle że przy częstotliwości z jaką procek pracuje, i przy sposobie w jaki ten program jest napisany, w najlepszym przypadku zobaczy jedynie zapaloną (świecącą się) diodę.

[#6] Re: AT90S2313

@MinisterQ, post #5

Zapewne to mruganie będzie odbierane jako słabsze świecenie diody
[#7] Re: AT90S2313

@wali7, post #6

Dokładnie tak.

[#8] Re: AT90S2313

@MinisterQ, post #2

Ten miniq z irc to chyba kto inny :P


P.S. Teraz mam coś takiego .
Loaded plugin STK500
gcc plug-in: No WinAVR installation found. The AVR GCC plug-in can still be used if you set up your own build tools.
Loaded plugin AVR GCC
Loaded partfile: C:Program FilesAtmelAVR ToolsPartDescriptionFilesATmega128.xml
Loaded plugin AVR GCC
Loaded partfile: C:Program FilesAtmelAVR ToolsPartDescriptionFilesATmega8.xml
gcc plug-in: Output directory C:Documents and SettingsAdministratorMoje dokumentydefault does not exist
gcc plug-in: Created directory C:Documents and SettingsAdministratorMoje dokumentydefault
Loaded plugin AVR GCC
Loaded partfile: C:Program FilesAtmelAVR ToolsPartDescriptionFilesATmega88.xml
gcc plug-in: Deleted file C:Documents and SettingsAdministratorMoje dokumentyytyt.c
gcc plug-in: Deleted file C:Documents and SettingsAdministratorMoje dokumentyhej.c
gcc plug-in: Failed getting project file status
gcc plug-in: Deleted file C:Documents and SettingsAdministratorMoje dokumentyio2313.h
gcc plug-in: Deleted file C:Documents and SettingsAdministratorMoje dokumentyio.h
gcc plug-in: Renamed file from io2313.h to io2.h
gcc plug-in: Failed to remove source file
gcc plug-in: Failed to remove source file
Loaded plugin AVR GCC
gcc plug-in: Failed getting project file status
gcc plug-in: Output directory C:Documents and SettingsAdministratorMoje dokumentyedddefault does not exist
gcc plug-in: Created directory C:Documents and SettingsAdministratorMoje dokumentyedddefault
Loaded plugin AVR GCC
Loaded partfile: C:Program FilesAtmelAVR ToolsPartDescriptionFilesAT90S2313.xml
Flash memory 2048
EEPROM memory 128
I/O start 0x00
I/O stop 0x3F
SRAM size 128
SRAM start 0x60
XRAM size 0
SRAM start NA
gcc plug-in: CProjectTree::OnSize() 
gcc plug-in: CProjectTree::OnSize() 
gcc plug-in: CProjectTree::OnSize() 
gcc plug-in: CProjectTree::OnSize() 
gcc plug-in: PlugInUtility::getExternalHeaderFiles Dependency directory does not exist
Loaded file: C:Documents and SettingsAdministratorMoje dokumentySZMIXSZMIX.c
gcc plug-in: PlugInUtility::getExternalHeaderFiles Dependency directory does not exist
gcc plug-in: CProjectTree::OnFileRemove() Removed file C:Documents and SettingsAdministratorMoje dokumentySZMIXedd.c from project
gcc plug-in: PlugInUtility::getExternalHeaderFiles Dependency directory does not exist
gcc plug-in: CProjectTree::OnSize() 
gcc plug-in: CProjectTree::OnSize() CProjectTree::Onsize: , cx=195, cy = 394, nType = 9
gcc plug-in: Output directory C:Documents and SettingsAdministratorMoje dokumentySZMIXdefault does not exist
gcc plug-in: Created directory C:Documents and SettingsAdministratorMoje dokumentySZMIXdefault
gcc plug-in: BuildProject() : Finished building project
Object file does not exist:




Ostatnia modyfikacja: 06.11.2008 20:15:20



Ostatnia modyfikacja: 06.11.2008 20:17:30
[#9] Re: AT90S2313

@Minniat, post #3

Nie do końca kumam

[#10] Re: AT90S2313

@arti4-92, post #9

no cóż, wygląda na to, że jesteś przybyszem z przyszłości ;)
[#11] Re: AT90S2313

@arti4-92, post #8

gcc nie lubi ścieżek dostępu ze spacjami.

[#12] Re: AT90S2313

@MinisterQ, post #11

MinisterQ napisał(a):

> gcc nie lubi ścieżek dostępu ze spacjami.

Gcc lubi. Make nienawidzi.

Na stronie www.PPA.pl, podobnie jak na wielu innych stronach internetowych, wykorzystywane są tzw. cookies (ciasteczka). Służą ona m.in. do tego, aby zalogować się na swoje konto, czy brać udział w ankietach. Ze względu na nowe regulacje prawne jesteśmy zobowiązani do poinformowania Cię o tym w wyraźniejszy niż dotychczas sposób. Dalsze korzystanie z naszej strony bez zmiany ustawień przeglądarki internetowej będzie oznaczać, że zgadzasz się na ich wykorzystywanie.
OK, rozumiem