Skocz do zawartości

Część 1-Kurs programowania uC AVR w C (WinAVR, Kurs AVR-GCC)


Pomocna odpowiedź

witam

Jestem zielony jak szczypiorek w tym temacie. Mam problem z kompilatorem a mianowicie przy próbie kompilacji wyskakuje mi coś takiego.

avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling C: led.c
avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./led.lst  -std=gnu99 -MMD -MP -MF .dep/led.o.d led.c -o led.o 
led.c:3:1: warning: "F_CPU" redefined
<command-line>: warning: this is the location of the previous definition
led.c:27: fatal error: opening dependency file .dep/led.o.d: No such file or directory
compilation terminated.
make.exe: *** [led.o] Error 1

> Process Exit Code: 2
> Time Taken: 00:01

co robię nie tak??

  • 1 rok później...

Podobny błąd jak u kolegi wyżej. Zrobiłem wszystko dwa razy zgodnie z instrukcja. Wie ktoś co powoduje taki błąd ?

Najnowsza wersja WinAvr, Windows 10 64 bit

> "make.exe" all
     0 [main] sh 9568 sync_with_child: child 3676(0x17C) died before initialization with status code 0xC0000142
 20337 [main] sh 9568 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
     0 [main] sh 11132 sync_with_child: child 1080(0x188) died before initialization with status code 0xC0000142
 16051 [main] sh 11132 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable

-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling C: led.c
avr-gcc -c -mmcu=atmega8 -I. -gstabs -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./led.lst  -std=gnu99 -MMD -MP -MF .dep/led.o.d led.c -o led.o 
led.c:16: fatal error: opening dependency file .dep/led.o.d: No such file or directory
compilation terminated.
make.exe: *** [led.o] Error 1

> Process Exit Code: 2
> Time Taken: 00:00

EDIT: rozwiązałem problem z podwójnym definiowaniem taktowania jednak wciąż coś jest nie tak ( jak widać na komunikacie powyżej )

https://forbot.pl/blog/artykuly/programowanie/avr-programowanie/szybki-start-z-winavr-id1055

Ok, sporo szukania i trochę szczęścia ale problem udało mi się rozwiązać. Jest on nazywany "sync_with_child problem" i zaczął pojawiać się od visty x64. U mnie pomogła podmiana pliku \utils\bin\msys-1.0.dll.

Plik jak i więcej info na stronie : http://www.madwizard.org/electronics/articles/winavrvista

Ja bym polecił zmianę środowiska, bo to jest przestarzałe. Poczytaj albo o Atmel Studio (darmowe), albo o Eclipse (darmowe) 🙂

HoneyBunny, również poleciłbym rozejrzenie się za nowym środowiskiem, ten kurs ma już swoje lata 🙂

  • 5 lat(a) później...

Przy kliknięciu na Make All pojawia mi się taki komunikat z będami:

> "make.exe" all
      0 [main] sh 8252 sync_with_child: child 3496(0x1E8) died before initialization with status code 0xC0000142
  29051 [main] sh 8252 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
      0 [main] sh 7752 sync_with_child: child 7096(0x1E8) died before initialization with status code 0xC0000142
  54771 [main] sh 7752 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable

-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling C: led.c
avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./led.lst  -std=gnu99 -MMD -MP -MF .dep/led.o.d led.c -o led.o
led.c:5:1: warning: "F_CPU" redefined
<command-line>: warning: this is the location of the previous definition
led.c:24: fatal error: opening dependency file .dep/led.o.d: No such file or directory
compilation terminated.
make.exe: *** [led.o] Error 1

> Process Exit Code: 2
> Time Taken: 00:01

Co może być nie tak?????

 

Bądź aktywny - zaloguj się lub utwórz konto!

Tylko zarejestrowani użytkownicy mogą komentować zawartość tej strony

Utwórz konto w ~20 sekund!

Zarejestruj nowe konto, to proste!

Zarejestruj się »

Zaloguj się

Posiadasz własne konto? Użyj go!

Zaloguj się »
×
×
  • Utwórz nowe...