Hallo.
Ich Versuche nun schon seit einiger Zeit die Firmware auf meinen CUL zu Bekommen.
Alles Mögliche ist gescheitert.
Mein letzter Versuch:
pi@raspberrypi:~ $ sudo avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 57600 -D -Uflash:w:~/home/pi/1.hex:i
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "~/home/pi/1.hex"
avrdude: can't open input file ~/home/pi/1.hex: No such file or directory
avrdude: read from file '~/home/pi/1.hex' failed
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
avrdude done. Thank you.
Der CUL blinkt kurz und dann diese Ergebnis:
Was mache ich Falsch?
Directory und file alles da!
Hilfe! Gruß Kellermaus!
Zitatavrdude: reading input file "~/home/pi/1.hex"
avrdude: can't open input file ~/home/pi/1.hex: No such file or directory
avrdude: read from file '~/home/pi/1.hex' failed
:o :o :o
Zitat von: KölnSolar am 16 November 2017, 23:05:22
:o :o :o
Hey Markus,
fies ;-)
sudo ist root! Da zeigt ~ auf /root/ und nicht auf /home/pi/!
Also probiere es ohne ~ ;-)
Gruß Arnd
Gesendet von meinem SM-G800F mit Tapatalk
Zitat von: RaspiLED am 17 November 2017, 01:32:29
Hey Markus,
fies ;-)
sudo ist root! Da zeigt ~ auf /root/ und nicht auf /home/pi/!
Also probiere es ohne ~ ;-)
Gruß Arnd
Gesendet von meinem SM-G800F mit Tapatalk
Würde auch mit User pi nicht funktionieren...
Weil doch '~' -> Home des Users, also bei PI: /home/pi/ und dann ja noch mal weiter ./home/pi/
Wäre dann als User PI: /home/pi/home/pi/
Und als root: /root/home/pi/
Also wenn dann richtig absolut: /home/pi/ (oder wo immer die Datei tatsächlich liegt)...
...wie Arnd geschrieben hat...
Gruß, Joachim
Morgen!
Sollte das wirklich so einfach sein? Ich bin halt ein Windows User und Linux Anfänger! Sorry!
Ich werde das heute Abend mal testen.
Vielen Dank für die schnellen Antworten!
Gruß!
ZitatHey Markus,
fies ;-)
wetterbedingte Spontanreaktion ;D Und meine Glaskugel hatte spontan (falsch) spekuliert, dass die Datei eben nicht vorhanden ist. :'(
Zitat von: KölnSolar am 17 November 2017, 08:23:07
wetterbedingte Spontanreaktion ;D Und meine Glaskugel hatte spontan (falsch) spekuliert, dass die Datei eben nicht vorhanden ist. :'(
Wieso falsch spekuliert...
...die Datei ist ja nicht da (wo sie avrdude sucht)... ;)
@Kellermaus75: Und ob das dann schon die Lösung ist wird sich zeigen...
...wenn du es erneut probiert hast...
Gruß, Joachim
Hallo.
i@raspberrypi:~ $ sudo avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 57600 -D -Uflash:w:/home/pi/1.hex:i
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "/home/pi/1.hex"
avrdude: writing flash (28942 bytes):
Writing | ################################################## | 100% 14.86s
avrdude: 28942 bytes of flash written
avrdude: verifying flash memory against /home/pi/1.hex:
avrdude: load data flash data from input file /home/pi/1.hex:
avrdude: input file /home/pi/1.hex contains 28942 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 12.66s
avrdude: verifying ...
avrdude: 28942 bytes of flash verified
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
avrdude done. Thank you.
Das ist durchgelaufen.
Nun hängt er anscheint im Bootloader? Die eine Lampe leuchtet ganz schnell.
Im FHEM:
Clients :FS20:FHT.*:KS300:USF1000:BS:HMS: :CUL_EM:CUL_WS:CUL_FHTTK:CUL_HOERMANN: :ESA2000:CUL_IR:CUL_TX:Revolt:IT:UNIRoll:SOMFY: :STACKABLE_CC:TSSTACKED:STACKABLE:CUL_RFR::CUL_TCM97001:CUL_REDIRECT:
DEF /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A96XPVNV-if00-port0@38400 1234
DeviceName /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A96XPVNV-if00-port0@38400
STATE opened
Was nun?
Neustart Raspi - ohne Erfolg
USB trennen und wieder rein - ohne Erfolg
USB trennen 15 Minuten warten wieder rein - ohne Erfolg
Neu Firmware:
pi@raspberrypi:~ $ sudo avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 5760 0 -D -Uflash:w:/home/pi/2.hex:i
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done. Thank you.
Gruß!
sudo avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 57600?
Gruß PeMue
sudo avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 57600 -D -Uflash:w:/home/pi/2.hex:i
So meinte ich das.
Gruß!
Hallo.
Alles Bestens!
Meine Probleme und Fehler:
1. Falsche Verzeichnisangabe
Falsch:
sudo avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 57600 -D -Uflash:w:~/home/pi/1.hex:i
Richtig:
sudo avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 57600 -D -Uflash:w:/home/pi/1.hex:i
2. Nach Firmware update LED blinkt schnell – Falsche Firmware? Also andere Firmware!
Nach anstecken an USB bleibt nur kurz Zeit um Firmware update zu starten!
3. Firmware mit ,,make" make program". Datei Makefile geändert
Falsch:
AVRDUDE_PORT = /dev/usb-FTDI_FT232R_USB_UART_A96XPVNV-if00-port0
Richtig:
AVRDUDE_PORT = /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A96XPVNV-if00-port0 -b 57600
Des weiteren blink bei mir keine LED 1mal in der Sekunde!
Mein CUL Funktioniert nun. Nun kommt die Einstellung in FHM und die richtige Oberfläche!
Vielen Dank für die schnelle Hilfe hier!
Gruß!