- Labornetzteil AliExpress         
Ergebnis 1 bis 10 von 13

Thema: Asuro Lib und Kollisionstest Problem

Hybrid-Darstellung

Vorheriger Beitrag Vorheriger Beitrag   Nächster Beitrag Nächster Beitrag
  1. #1
    Erfahrener Benutzer Roboter Genie Avatar von m.a.r.v.i.n
    Registriert seit
    24.07.2005
    Ort
    Berlin
    Beiträge
    1.247
    Hallo Marph,

    willkommen im RN-Forum.

    Zu deinem Problem würde ich vorschlagen, die Taster Kalibrierung durchzuführen. Falls der gefundene Wert von der Voreinstellung (62) abweicht, muss die myasuro.h angepasst werden und die AsuroLib neu übersetzt werden.

  2. #2
    Neuer Benutzer Öfters hier
    Registriert seit
    09.07.2015
    Beiträge
    7
    Hallo m.a.r.v.i.n,

    danke für deine Antwort.

    Die Tastenkalibrierung liefert mir vernünftige Werte.
    Da ich zwei kleine Ausreißer hatte, habe ich die MY_SWITCH_VALUE in der myasuro.h von 62 auf 63 gestellt.
    Danach habe ich die make-lib.bat ausgeführt um die Library neu zu kompilieren, mein Projekt mit dem Kollisions Test Code ebenfalls neu kompiliert und dann auf den Asuro geflasht.
    Resultat ist wieder: Permanent dreht der linke Motor rückwärts.

    Anbei auch meine makefile (im txt Format) und ein Screenshot von meiner Atmel Studio Config.
    Die asuro.c hab ich mittels "Add as Link" eingebunden, so dass auf die asuro.c im lib Ordner gezeigt wird und nicht auf eine Kopie im Project Ordner.


    Code:
    Tastsensor Kalibration
    
    Press Key 6
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 5
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 4
                   55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    Press Key 3
                                  60 61 62 63 64 65 66 67
    Press Key 2
                                     61 62 63 64                               ¦
    Press Key 1
                                        62 63
    Press Key 6
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 5
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 4
                   55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    Press Key 3
                                  60 61 62 63 64 65 66 67
    Press Key 2
                                     61 62 63 64
    Press Key 1
                                        62 63                               ¦¦
    Press Key 6
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 5
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 4
                   55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    Press Key 3
                                  60 61 62 63 64 65 66 67
    Press Key 2
                                     61 62 63 64
    Press Key 1
                                           63 64
    Press Key 6
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 5
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 4
                   55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    Press Key 3
                                  60 61 62 63 64 65 66 67
    Press Key 2
                                     61 62 63 64
    Press Key 1
                                        62 63                      ¦  ¦¦h¦¦
    Press Key 6
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 5
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 4
                   55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    Press Key 3
                                  60 61 62 63 64 65 66 67
    Press Key 2
                                     61 62 63 64
    Press Key 1
                                        62 63
    Press Key 6
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 5
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 4
                   55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    Press Key 3
                                  60 61 62 63 64 65 66 67                      ¦
    Press Key 2
                                     61 62 63 64
    Press Key 1
                                           63 64
    Press Key 6
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 ¦
    Press Key 5
    50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    Press Key 4
                   55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    Press Key 3
                                  60 61 62 63 64 65 66 67
    Press Key 2
                                     61 62 63 64
    Press Key 1
                                        62 63
    ¦¦¦¦¦¦¦¦¦¦
    Miniaturansichten angehängter Grafiken Miniaturansichten angehängter Grafiken atmel_config.jpg  
    Angehängte Dateien Angehängte Dateien

  3. #3
    Erfahrener Benutzer Roboter Genie
    Registriert seit
    01.03.2008
    Ort
    Niederlanden
    Beiträge
    1.170
    Das Bild das du an gehangen hat ist viel zu klein. Da kann man nichts auf erkennen.

    Du hast auch den makefile angehangen. Das is nicht den Asuro.c lib datei.

  4. #4
    Neuer Benutzer Öfters hier
    Registriert seit
    09.07.2015
    Beiträge
    7
    Hallo Valen,

    ich habe die makefile angehängt um mein Vorgehen darzulegen. Gerne hänge ich auch die asuro.c an.

    Wieso das Bild so klein ist verstehe ich noch nicht ganz, jedes mal wenn ich ein Bild im Anhang hochlade wird es automatisch komprimiert.

    So sollte es gehen:
    Bild hier  

    Ich verstehe halt (noch) nicht, wo ich den Fehler machen/finden kann.

    Mfg Marph
    Angehängte Dateien Angehängte Dateien

  5. #5
    Erfahrener Benutzer Roboter Genie
    Registriert seit
    01.03.2008
    Ort
    Niederlanden
    Beiträge
    1.170
    Naja, die Asuro.c datei ist auch nicht so interessant. Weil du das nicht geändert hat,oder? Das können wir schon runter laden wenn wir es nicht schon haben. Dein eigene Programm hochladen ist wichtiger.

    Gab es beim compilieren kein Meldungen? Ich kenne mich mit das Atmel Studio Programm nicht aus, aber ich vermute sie stecken dort auf das "Build Event" tab.

    Und was ist diesen "libm" das du als Library eingesteckt hat?

  6. #6
    Neuer Benutzer Öfters hier
    Registriert seit
    09.07.2015
    Beiträge
    7
    Wie ich bereits in meinem ersten Post geschrieben habe, habe ich den Code vom Kollisions Test in mein Projekt kopiert. Auch das muss nicht nochmal hochgeladen werden.

    Die libm war automatisch im neu erstellten Projekt und verweißt auf: Atmel Toolchain\AVR8 GCC\Native\3.4.1061\avr8-gnu-toolchain\bin
    Es macht aber kein Unterschied, wenn ich die Lib lösche, was ich getan habe.

    So sieht der Output Log aus wenn ich im Atmel Studio den Build-Befehl ausführe:
    Code:
    ------ Build started: Project: Asuro-Project280, Configuration: Debug AVR ------
    Build started.
    Project "Asuro-Project280.cproj" (default targets):
    Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
    Target "CoreBuild" in file "D:\Programme\Office\Atmel Studio 6.2\Vs\Compiler.targets" from project "D:\Programme\Office\Asuro-Project280\Asuro-Project280.cproj" (target "Build" depends on it):
    	Task "RunCompilerTask"
    		Shell Utils Path D:\Programme\Office\Atmel Studio 6.2\shellUtils
    		D:\Programme\Office\Atmel Studio 6.2\shellUtils\make.exe -C "D:\Programme\Office\Asuro-Project280" -f "Makefile" all 
    		make: Entering directory `D:/Programme/Office/Asuro-Project280'
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/version.lst D:/Programme/Office/Asuro-Project280/lib/version.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > version.d; \
    			[ -s version.d ] || rm -f version.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/ultrasonic.lst D:/Programme/Office/Asuro-Project280/lib/ultrasonic.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > ultrasonic.d; \
    			[ -s ultrasonic.d ] || rm -f ultrasonic.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/uart.lst D:/Programme/Office/Asuro-Project280/lib/uart.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > uart.d; \
    			[ -s uart.d ] || rm -f uart.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/time.lst D:/Programme/Office/Asuro-Project280/lib/time.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > time.d; \
    			[ -s time.d ] || rm -f time.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/switches.lst D:/Programme/Office/Asuro-Project280/lib/switches.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > switches.d; \
    			[ -s switches.d ] || rm -f switches.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/sound.lst D:/Programme/Office/Asuro-Project280/lib/sound.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > sound.d; \
    			[ -s sound.d ] || rm -f sound.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/rc5.lst D:/Programme/Office/Asuro-Project280/lib/rc5.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > rc5.d; \
    			[ -s rc5.d ] || rm -f rc5.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/printf.lst D:/Programme/Office/Asuro-Project280/lib/printf.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > printf.d; \
    			[ -s printf.d ] || rm -f printf.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/print.lst D:/Programme/Office/Asuro-Project280/lib/print.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > print.d; \
    			[ -s print.d ] || rm -f print.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/my_motor_low.lst D:/Programme/Office/Asuro-Project280/lib/my_motor_low.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > my_motor_low.d; \
    			[ -s my_motor_low.d ] || rm -f my_motor_low.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/motor_low.lst D:/Programme/Office/Asuro-Project280/lib/motor_low.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > motor_low.d; \
    			[ -s motor_low.d ] || rm -f motor_low.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/motor.lst D:/Programme/Office/Asuro-Project280/lib/motor.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > motor.d; \
    			[ -s motor.d ] || rm -f motor.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/leds.lst D:/Programme/Office/Asuro-Project280/lib/leds.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > leds.d; \
    			[ -s leds.d ] || rm -f leds.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/lcd.lst D:/Programme/Office/Asuro-Project280/lib/lcd.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > lcd.d; \
    			[ -s lcd.d ] || rm -f lcd.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/i2c.lst D:/Programme/Office/Asuro-Project280/lib/i2c.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > i2c.d; \
    			[ -s i2c.d ] || rm -f i2c.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/globals.lst D:/Programme/Office/Asuro-Project280/lib/globals.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > globals.d; \
    			[ -s globals.d ] || rm -f globals.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/encoder_low.lst D:/Programme/Office/Asuro-Project280/lib/encoder_low.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > encoder_low.d; \
    			[ -s encoder_low.d ] || rm -f encoder_low.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/encoder.lst D:/Programme/Office/Asuro-Project280/lib/encoder.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > encoder.d; \
    			[ -s encoder.d ] || rm -f encoder.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/adc_low.lst D:/Programme/Office/Asuro-Project280/lib/adc_low.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > adc_low.d; \
    			[ -s adc_low.d ] || rm -f adc_low.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/adc.lst D:/Programme/Office/Asuro-Project280/lib/adc.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > adc.d; \
    			[ -s adc.d ] || rm -f adc.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/asuro.lst D:/Programme/Office/Asuro-Project280/lib/asuro.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
    			[ -s asuro.d ] || rm -f asuro.d
    		set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=Asuro-Project280.lst Asuro-Project280.c \
    			| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > Asuro-Project280.d; \
    			[ -s Asuro-Project280.d ] || rm -f Asuro-Project280.d
    		make: Leaving directory `D:/Programme/Office/Asuro-Project280'
    		make: Entering directory `D:/Programme/Office/Asuro-Project280'
    		-------- begin --------
    		avr-gcc --version
    		avr-gcc (AVR_8_bit_GNU_Toolchain_3.4.5_1522) 4.8.1
    		Copyright (C) 2013 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.
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=Asuro-Project280.lst Asuro-Project280.c -o Asuro-Project280.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/asuro.lst D:/Programme/Office/Asuro-Project280/lib/asuro.c -o asuro.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/adc.lst D:/Programme/Office/Asuro-Project280/lib/adc.c -o adc.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/adc_low.lst D:/Programme/Office/Asuro-Project280/lib/adc_low.c -o adc_low.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/encoder.lst D:/Programme/Office/Asuro-Project280/lib/encoder.c -o encoder.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/encoder_low.lst D:/Programme/Office/Asuro-Project280/lib/encoder_low.c -o encoder_low.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/globals.lst D:/Programme/Office/Asuro-Project280/lib/globals.c -o globals.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/i2c.lst D:/Programme/Office/Asuro-Project280/lib/i2c.c -o i2c.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/lcd.lst D:/Programme/Office/Asuro-Project280/lib/lcd.c -o lcd.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/leds.lst D:/Programme/Office/Asuro-Project280/lib/leds.c -o leds.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/motor.lst D:/Programme/Office/Asuro-Project280/lib/motor.c -o motor.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/motor_low.lst D:/Programme/Office/Asuro-Project280/lib/motor_low.c -o motor_low.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/my_motor_low.lst D:/Programme/Office/Asuro-Project280/lib/my_motor_low.c -o my_motor_low.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/print.lst D:/Programme/Office/Asuro-Project280/lib/print.c -o print.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/printf.lst D:/Programme/Office/Asuro-Project280/lib/printf.c -o printf.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/rc5.lst D:/Programme/Office/Asuro-Project280/lib/rc5.c -o rc5.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/sound.lst D:/Programme/Office/Asuro-Project280/lib/sound.c -o sound.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/switches.lst D:/Programme/Office/Asuro-Project280/lib/switches.c -o switches.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/time.lst D:/Programme/Office/Asuro-Project280/lib/time.c -o time.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/uart.lst D:/Programme/Office/Asuro-Project280/lib/uart.c -o uart.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/ultrasonic.lst D:/Programme/Office/Asuro-Project280/lib/ultrasonic.c -o ultrasonic.o
    		avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=D:/Programme/Office/Asuro-Project280/lib/version.lst D:/Programme/Office/Asuro-Project280/lib/version.c -o version.o
    		avr-gcc -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Programme/Office/Asuro-Project280/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=Asuro-Project280.o Asuro-Project280.o asuro.o adc.o adc_low.o encoder.o encoder_low.o globals.o i2c.o lcd.o leds.o motor.o motor_low.o my_motor_low.o print.o printf.o rc5.o sound.o switches.o time.o uart.o ultrasonic.o version.o   --output Asuro-Project280.elf -Wl,--gc-sections,-Map=Asuro-Project280.map,--cref -LD:/Programme/Office/Asuro-Project280/lib -lm
    		avr-objcopy -O ihex -R .eeprom Asuro-Project280.elf Asuro-Project280.hex
    		avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
    			--change-section-lma .eeprom=0 -O ihex Asuro-Project280.elf Asuro-Project280.eep
    		d:\Programme\Office\Atmel Toolchain\AVR8 GCC\Native\3.4.1061\avr8-gnu-toolchain\bin\avr-objcopy.exe: --change-section-lma .eeprom=0x00000000 never used
    		avr-objdump -h -S Asuro-Project280.elf > Asuro-Project280.lss
    		Size after:
    		Asuro-Project280.elf  :
    		section           size      addr
    		.text             1432         0
    		.data               10   8388704
    		.bss                35   8388714
    		.comment            48         0
    		.debug_aranges     376         0
    		.debug_info       3165         0
    		.debug_abbrev     1599         0
    		.debug_line       1800         0
    		.debug_frame       748         0
    		.debug_str        1026         0
    		.debug_loc        1169         0
    		.debug_ranges      240         0
    		Total            11648
    		Errors: none
    		-------- end --------
    		make: Leaving directory `D:/Programme/Office/Asuro-Project280'
    	Done executing task "RunCompilerTask".
    	Using "RunOutputFileVerifyTask" task from assembly "D:\Programme\Office\Atmel Studio 6.2\Extensions\Application\AvrGCC.dll".
    	Task "RunOutputFileVerifyTask"
    		
    		Display Output File Size Skipped due to : Output File not found
    	Done executing task "RunOutputFileVerifyTask".
    Done building target "CoreBuild" in project "Asuro-Project280.cproj".
    Target "PostBuildEvent" skipped, due to false condition; ('$(PostBuildEvent)' != '') was evaluated as ('' != '').
    Target "Build" in file "D:\Programme\Office\Atmel Studio 6.2\Vs\Avr.common.targets" from project "D:\Programme\Office\Asuro-Project280\Asuro-Project280.cproj" (entry point):
    Done building target "Build" in project "Asuro-Project280.cproj".
    Done building project "Asuro-Project280.cproj".
    
    Build succeeded.
    ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
    Also keine Fehlermeldung oder dergleichen.

  7. #7
    Erfahrener Benutzer Roboter Genie Avatar von m.a.r.v.i.n
    Registriert seit
    24.07.2005
    Ort
    Berlin
    Beiträge
    1.247
    Hallo Marph,

    das sieht soweit alles i. O. aus. Lass dir doch mal die eingelesenen Tasterwerte seriell ausgeben. Dann wird man ja sehen, welcher Taster spinnt. Den kann man dann ggfs. aus der Abfrage ausmaskieren.

    Code:
    ...
    elseif(t1 && t2 && t1 == t2)
    {
          PrintInt(t1);     /* Tastenwert senden */
          SerWrite("\r\n", 2); /* Zeilenvorschub */
          
          MotorStop();
    if(t1 & 0x07)/* Tasten links gedrückt? */
    {
            MotorRwdL();       /* Rückwärtskurve links fahren */
            FrontLED(OFF);
            BackLED(ON,OFF);
    }
    if(t1 & 0x38)/* Tasten rechts gedrückt? */
    {
            MotorRwdR();       /* Rückwärtskurve rechts fahren */
            FrontLED(OFF);
            BackLED(OFF,ON);
    }
          Msleep(1000);        /* 1 Sekunde fahren */
    }
     ...

Ähnliche Themen

  1. Problem beim Einbinden von asuro.h / asuro.c
    Von Andi1888 im Forum Asuro
    Antworten: 8
    Letzter Beitrag: 06.03.2014, 17:09
  2. Antworten: 6
    Letzter Beitrag: 30.03.2013, 21:17
  3. Antworten: 18
    Letzter Beitrag: 06.05.2012, 18:40
  4. [Asuro] Problem: test.c und asuro.c compilieren
    Von Jonas Münch im Forum Asuro
    Antworten: 12
    Letzter Beitrag: 17.05.2010, 09:34
  5. Antworten: 2
    Letzter Beitrag: 26.06.2008, 12:32

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

Solar Speicher und Akkus Tests