doch sie endet ja mit .hex aber es geht trotzdem nicht
Werbung
doch sie endet ja mit .hex aber es geht trotzdem nicht
Naja, es ist wohl auch schwierig mit dem Flashtool eine andere Datei auszuwählen.
Woher stammt die .hex-Datei? Selbst kompiliert oder irgendwo gefunden? Du könnest die Datei als Attachment an einen Beitrag anhängen und uns zeigen. Kannst du von Henks Beispielen etwas flashen?
http://home.kpn.nl/h.van.winkoop/Asu...uSfwPagFrm.htm
[Edit: URL von Henks HP angepasst]
![]()
Atmel’s products are not intended, authorized, or warranted for use
as components in applications intended to support or sustain life!
Hallo,
habe ich fast selbst geschrieben.
Den self-test konnte ich ja auch erfolgreich flashen.
Aber hallo! Einfach umbenennen gilt natürlich nicht:
So können es wir zwar lesen, der Mega8 (und auch das Flashtool) können damit aber nichts anfangen. Das Programm muss erst kompiliert werden.Code:#include "asuro.h" int main(void) { unsigned int data[2]; Init(); FrontLED(ON) MotorDir(FWD,FWD); MotorSpeed(255,255); while(1) { LineData(data) if ((data [0] < 20) && (data [1] > 20 )) { MotorDir(RWD,FWD); MotorSpeed(0,255); BackLED(OFF,ON); StatusLED(RED); } if ((data [1] < 20) && (data [0] > 20 )) { MotorDir(FWD,RWD); MotorSpeed(255,0); BackLED(ON,OFF); StatusLED(RED); } if ((data [1] < 20) && (data [0] < 20)) { MotorDir(FWD,FWD); MotorSpeed(255,255); BackLED(ON,ON); StatusLED(GREEN); } } return 0; }
Schau mal in der Anleitung Kapitel 8 (ab Seite 35)
Gruß
mic
![]()
Atmel’s products are not intended, authorized, or warranted for use
as components in applications intended to support or sustain life!
Wenn beim Kompilieren (mit make) kein Fehler gemeldet wird und trotzdem keine Hex-Datei erzeugt wird, hast du vielleicht vergessen, das C-Programm zu Speichern bevor du make verwendest.
Fehlerfrei Kompilieren kann nicht sein, bei FrontLED(ON) fehlt das ;
Dasselbe fehlt hier:Code:Init(); FrontLED(ON) // hier fehlt das ; MotorDir(FWD,FWD);
LineData(data)
![]()
Atmel’s products are not intended, authorized, or warranted for use
as components in applications intended to support or sustain life!
Endet die Datei wieder mit .c? Hast du das Makefile angepasst? Hier kann ich leider nicht weiterhelfen, weil ich das Notepad nicht verwende.
Waren wir alle mal ;)bin neu auf dem gebiet
Gruß
mic
![]()
Atmel’s products are not intended, authorized, or warranted for use
as components in applications intended to support or sustain life!
ich müsste sie jetzt ummbenennen damit sie mit .c endet
so jetzt heißt sie .c kann auch das makefile enutzen es entsteht aber keine HEX-Datei
Lesezeichen