- LiTime Speicher und Akkus         
Seite 1 von 2 12 LetzteLetzte
Ergebnis 1 bis 10 von 13

Thema: Asuro Lib und Kollisionstest Problem

  1. #1
    Neuer Benutzer Öfters hier
    Registriert seit
    09.07.2015
    Beiträge
    7

    Asuro Lib und Kollisionstest Problem

    Anzeige

    LiFePo4 Akku selber bauen - Video
    Hallo Roboternetz Community,

    ich habe seit einer Weile einen Asuro. Bisher habe ich die originale Library von der AsuroCD verwendet, da ich mir aber ein Ultrasonic Bausatz geholt habe möchte ich die neuere Asuro Lib verwenden.

    Installiert habe ich die Asuro Lib 2.80 rc2 und diese im Atmel Studio 6.2, welches ich zum programmieren verwende, eingebunden.

    Als erstes habe ich den Code vom Kollisions Test in ein neues Projekt eingefügt, es kompiliert und dann auf den Asuro geflasht.
    Resultat: Der Asuro dreht permanent den linken Motor rückwärts.

    Daraufhin habe ich den Tasten Sensor Test durchgeführt, welcher mir aber jeweils die richtigen Werte im Terminal ausgibt. Nur manchmal erkennt er einen Taster erst nach zwei-dreimaligem drücken.

    Danach habe ich nochmal den Kollisions Test auf den Asuro gelasht, dieses mal aber die bereits kompilierte hex Datei im examples/KollisionTest-Ordner. Erstaunlicher Weise funktioniert hier das Programm wie es soll, Asuro fährt vorwärts und bei Kollision fährt er rechts bzw links Rückwärts und wieder vorwärts bis zur nächsten Kollision.

    Als weiteren Test habe ich den Code vom Kollisions Test in mein altes Projekt kopiert, bei dem ich noch die originale Library verwende. Hier musste ich nur die Funktion MSleep(), mit in den Quellcode schreiben, da diese nicht in der alten Library enthalten ist.
    Siehe da auch hier funktioniert das Programm wie erwartet.

    Leider bin ich jetzt an einem Punkt, wo ich nicht weiß wo ich den Fehler finden könnte.
    Falls jemand dieses Verhalten kennt oder einen Ansatz hat, wonach ich suchen könnte, würde ich mich sehr freuen.

    Mfg Marph

  2. #2
    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.

  3. #3
    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

  4. #4
    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.

  5. #5
    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

  6. #6
    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?

  7. #7
    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.

  8. #8
    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 */
    }
     ...

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

    ich hab den Code eingepflegt und mehrere Durchläufe gemacht. Nach einigen Durchläufen gabs eine Low Voltage Meldung. Hab dann die Batteriespannung gemessen, die bei 1,46V pro Batterie lag(keine Akkus, Jumpers ist nicht gesetzt).

    Hab dann sicherheitshalber neue Batterien eingelegt und danach funktionierte es sogar zweimal mit dem Kollisionstest. Dann drehte er aber wieder permanent links rückwärts oder drehte vorwärts und reagierte auf überhaupt keinen Tastendruck. Und auch mit den neuen Batterien hatte ich zweimal eine Low Voltage Meldung.

    Spaßeshalber hab ich dann noch den Kollisionstest mit der originalen Library geflasht und damit lief alles wieder tadellos.

    Des Weiteren habe ich mir Programmers Notepad runtergeladen und auch dort den Kollisionstest mit der v2.80 rc2 Library kompiliert, allerdings mit dem gleichen Resultat wie bisher.

    Code:
    MY_SWITCH_VALUE = 62L
    
    1
    2
    1
    1
    2
    1
    2
    1
    2
    1
    2
    2
    3
    2
    1
    1
    1
    1
    1
    2
    1
    1
    3
    1
    1
    1
    1
    1
    1
    2
    3
    3
    
    MY_SWITCH_VALUE = 63L
    1
    1
    2
    2
    2
    1
    1
    2
    1
    2
    2
    1
    1
    1
    1
    2
    1
    2
    1
    1
    1
    2
    2
    1
    1
    2
    1
    1
    1
    1
    
    MY_SWITCH_VALUE = 63L
    
    1
    1
    1
    224
    2
    1
    2
    2
    1
    ▒1
    ▒▒▒1
    1
    ▒▒VLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVL
    
    VLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVLVL▒1
    2
    1
    1
    1
    1
    2
    1
    1
    1
    1
    
    
    Neue Batterien:
    MY_SWITCH_VALUE = 63L 
    
    2
    1
    1
    22
    1
    1
    2
    2
    1
    2
    1
    1
    1
    1
    Mfg Marph

  10. #10
    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,


    tja das könnte alles mögliche sein. Wie man aus dem Log sieht, ist nicht nur Taster K1 sondern auch manchmal K2 zu sehen.


    Fehlerursachen könnten sein:
    * schlechte Lötstellen,
    * miese Batterien (z.B. Zink Kohle) vielleicht besser Alkaline AA Zellen mit entsprechendem Batteriefach verwenden,
    * bis hin zu Compiler Optimierungen die etwas wichtiges wegoptimieren (hatten wir in der Vergangenheit auch schon mal).

    Zumal es mit dem Original Hex File scheinbar problemlos funktioniert. Die Original Hex Files wurden mit WinAVR-2010 erstellt.

    Andere Idee, in irgendeinem alten Thread wurde bis zu 6x mal die Taster abgefragt und verglichen.

    Code:
    ---
    while(1)
    {
        t1 = PollSwitch();
        t2 = PollSwitch();
        t3 = PollSwitch();
        t4 = PollSwitch();
        t5 = PollSwitch();
        t6 = PollSwitch();
    if(t1 == 0 && t2 == 0 && t3 == 0 && t4 == 0 && t5 == 0 && t6 == 0)/* keine Taste */
    {
          MotorFwd();          /* vorwärts fahren */
          FrontLED(ON);
          BackLED(OFF,OFF);
    }
    elseif(t1 && t2 && t3 && t4 && t5 && t6 && t1 == t2 && t1 == t3 && t1 == t4  && t1 == t5  && t1 == t6)
    ...
    

    Geändert von m.a.r.v.i.n (18.07.2015 um 13:10 Uhr)

Seite 1 von 2 12 LetzteLetzte

Ähnliche Themen

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

Berechtigungen

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

LiFePO4 Speicher Test