• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cannot get pilight-flash to work
#1
hello,

I can not get pilight-flash to work.

i used this wiki:
wiki.pilight.org/low-pass_filter

i used the instructions from here:
manual.pilight.org/programs/flash.html

i used the wiring from here:
manual.pilight.org/electronics/wiring.html

When i execute this:
sudo pilight-flash -f /etc/pilight/pilight_firmware_t85_v3.hex

I get a message that it cannot find an attiny etc.

With piscope i did not see the mosi, miso etc. signals on pin 19, 21 and 23.

What am i doing wrong?
 
Reply
#2
99% procent of the time the wiring is wrong. Check and double check it. I flashed some yesterday and it still worked Wink
 
Reply
#3
What's the exact error message? Do you have the chance to check your uC outside pilight (AVRdude + programmer on a different system)?
 
Reply
#4
Thanks for the quick respons.

I managed to load the firmware with AVRdude on another pi3.

I tested 2 situations with AVRdude:
1. pilight_firmware_t85.hex via github.com/pilight/pilight_firmware with make all t85
2. pilight_firmware_t85_v3.hex

But when i test the attiny85 between my RXB6-receiver and my PI nothing is transported.

I connect the attiny85 like this:
2: Raspberry
3. Data receiver
4: Ground
8: +5 volt

I do not get codes in pilight when i use my AYCT-102 remote control.

Without the attiny85 i get codes from my remote control but also a lot of noise. 

i also tested a blinking attiny85 and that worked as a charm.
github.com/yuvadm/attiny85-blink

i am using pilight 8.0.8.
 
Reply
#5
I figured out what was wrong and it is working now.

The wiring was oke.

What dit i do wrong:
1. I had to change "gpio-platform": "raspberrypi3" in my config.json. I have a PI3 and it was raspberrypi1b2
2. I forgot to solder the most important pin of my IC-socket (pin nr 2) in my breadboard.

Both pilight-flash and make all type=t85 from github are flashing well now.

And most important: the filter is working.
 
Reply
#6
(02-21-2018, 05:02 PM)n.kooij Wrote: ......
When i execute this:
sudo pilight-flash -f /etc/pilight/pilight_firmware_t85_v3.hex

....

Where did you get this file "/pilight_firmware_t85_v3.hex" from ?

I have no such file in my /etc/pilight folder.
 
Reply
#7
(02-24-2018, 07:50 PM)TomiB Wrote:
(02-21-2018, 05:02 PM)n.kooij Wrote: ......
When i execute this:
sudo pilight-flash -f /etc/pilight/pilight_firmware_t85_v3.hex

....

Where did you get this file "/pilight_firmware_t85_v3.hex" from ?

I have no such file in my /etc/pilight folder.

sudo apt-get install pilight-firmware
 
Reply
#8
For the record: I had problems to flash the attiny85. This was the output:

Code:
pi@rpihass:/etc/pilight $ sudo pilight-flash -f ./pilight_firmware_t85_v3.hex
[Jul 21 13:18:28:395645] pilight-flash: DEBUG: loaded event function /usr/local/lib/pilight/functions/date_format.lua v1.0
[Jul 21 13:18:28:397743] pilight-flash: DEBUG: loaded event function /usr/local/lib/pilight/functions/random.lua v2.1
[Jul 21 13:18:28:400395] pilight-flash: DEBUG: loaded event function /usr/local/lib/pilight/functions/date_add.lua v2.0
[Jul 21 13:18:28:402145] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/and.lua v1.0
[Jul 21 13:18:28:403547] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/minus.lua v1.0
[Jul 21 13:18:28:404782] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/or.lua v1.0
[Jul 21 13:18:28:405953] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/divide.lua v1.0
[Jul 21 13:18:28:407081] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/lt.lua v1.0
[Jul 21 13:18:28:408191] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/le.lua v1.0
[Jul 21 13:18:28:409460] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/ge.lua v1.0
[Jul 21 13:18:28:410648] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/gt.lua v1.0
[Jul 21 13:18:28:411738] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/plus.lua v1.0
[Jul 21 13:18:28:412822] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/ne.lua v1.0
[Jul 21 13:18:28:413884] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/multiply.lua v1.0
[Jul 21 13:18:28:414942] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/eq.lua v1.0
[Jul 21 13:18:28:416181] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/intdivide.lua v1.0
[Jul 21 13:18:28:417372] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/modulus.lua v1.0
[Jul 21 13:18:28:418471] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/concat.lua v1.0
[Jul 21 13:18:28:421249] pilight-flash: INFO: **** START UPD. FW ****
[Jul 21 13:18:28:421866] pilight-flash: INFO: Indentifying microprocessor
[Jul 21 13:18:28:432977] pilight-flash: INFO: Checking for an ATMega328P @115200
[Jul 21 13:18:28:594458] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:18:28:606650] pilight-flash: INFO: AVR device signature = 0x1e 0x00 0x0b
[Jul 21 13:18:28:608474] pilight-flash: INFO: Not an ATMega328P
[Jul 21 13:18:28:619534] pilight-flash: INFO: Checking for an ATMega328P @57600
[Jul 21 13:18:28:780842] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:18:28:792775] pilight-flash: INFO: AVR device signature = 0x00 0x3d 0x00
[Jul 21 13:18:28:794592] pilight-flash: INFO: Not an ATMega328P
[Jul 21 13:18:28:805525] pilight-flash: INFO: Checking for an ATTiny25 @57600
[Jul 21 13:18:28:966924] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:18:28:978885] pilight-flash: INFO: AVR device signature = 0x31 0x01 0x02
[Jul 21 13:18:28:980752] pilight-flash: INFO: Not an ATTiny45
[Jul 21 13:18:28:991713] pilight-flash: INFO: Checking for an ATTiny45 @57600
[Jul 21 13:18:29:153039] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:18:29:164991] pilight-flash: INFO: AVR device signature = 0x00 0x3d 0x00
[Jul 21 13:18:29:166820] pilight-flash: INFO: Not an ATTiny85
[Jul 21 13:18:29:177785] pilight-flash: INFO: Checking for an ATTiny85 @57600
[Jul 21 13:18:29:339223] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:18:29:351359] pilight-flash: INFO: AVR device signature = 0x62 0x01 0x02
[Jul 21 13:18:29:353206] pilight-flash: ERROR: AVR unknown
[Jul 21 13:18:29:353858] pilight-flash: INFO: First run firmware_getmp
[Jul 21 13:18:29:354291] pilight-flash: INFO: **** FAILED UPD. FW ****

I got it to work by swapping the attiny85 for another one. 

Code:
pi@rpihass:/etc/pilight $ sudo pilight-flash -f ./pilight_firmware_t85_v3.hex
[Jul 21 13:36:23:531212] pilight-flash: DEBUG: loaded event function /usr/local/lib/pilight/functions/date_format.lua v1.0
[Jul 21 13:36:23:532261] pilight-flash: DEBUG: loaded event function /usr/local/lib/pilight/functions/random.lua v2.1
[Jul 21 13:36:23:533696] pilight-flash: DEBUG: loaded event function /usr/local/lib/pilight/functions/date_add.lua v2.0
[Jul 21 13:36:23:534727] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/and.lua v1.0
[Jul 21 13:36:23:535647] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/minus.lua v1.0
[Jul 21 13:36:23:536353] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/or.lua v1.0
[Jul 21 13:36:23:536964] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/divide.lua v1.0
[Jul 21 13:36:23:537553] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/lt.lua v1.0
[Jul 21 13:36:23:538135] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/le.lua v1.0
[Jul 21 13:36:23:538725] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/ge.lua v1.0
[Jul 21 13:36:23:539282] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/gt.lua v1.0
[Jul 21 13:36:23:539772] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/plus.lua v1.0
[Jul 21 13:36:23:540305] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/ne.lua v1.0
[Jul 21 13:36:23:540819] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/multiply.lua v1.0
[Jul 21 13:36:23:541334] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/eq.lua v1.0
[Jul 21 13:36:23:542012] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/intdivide.lua v1.0
[Jul 21 13:36:23:542651] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/modulus.lua v1.0
[Jul 21 13:36:23:543198] pilight-flash: DEBUG: loaded event operator /usr/local/lib/pilight/operators/concat.lua v1.0
[Jul 21 13:36:23:546257] pilight-flash: INFO: **** START UPD. FW ****
[Jul 21 13:36:23:546386] pilight-flash: INFO: Indentifying microprocessor
[Jul 21 13:36:23:560350] pilight-flash: INFO: Checking for an ATMega328P @115200
[Jul 21 13:36:23:721258] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:36:23:731968] pilight-flash: INFO: AVR device signature = 0x1e 0x93 0x0b
[Jul 21 13:36:23:733453] pilight-flash: INFO: Not an ATMega328P
[Jul 21 13:36:23:743935] pilight-flash: INFO: Checking for an ATMega328P @57600
[Jul 21 13:36:23:904540] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:36:23:915179] pilight-flash: INFO: AVR device signature = 0x1e 0x93 0x0b
[Jul 21 13:36:23:916695] pilight-flash: INFO: Not an ATMega328P
[Jul 21 13:36:23:927192] pilight-flash: INFO: Checking for an ATTiny25 @57600
[ Jul 21 13:36:24:87808] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[ Jul 21 13:36:24:98482] pilight-flash: INFO: AVR device signature = 0x1e 0x93 0x0b
[ Jul 21 13:36:24:99962] pilight-flash: INFO: Not an ATTiny45
[Jul 21 13:36:24:110482] pilight-flash: INFO: Checking for an ATTiny45 @57600
[Jul 21 13:36:24:271099] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:36:24:281763] pilight-flash: INFO: AVR device signature = 0x1e 0x93 0x0b
[Jul 21 13:36:24:283240] pilight-flash: INFO: Not an ATTiny85
[Jul 21 13:36:24:293772] pilight-flash: INFO: Checking for an ATTiny85 @57600
[Jul 21 13:36:24:454393] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:36:24:465075] pilight-flash: INFO: AVR device signature = 0x1e 0x93 0x0b
[Jul 21 13:36:24:469536] pilight-flash: INFO: Firmware running on an ATTiny85
[Jul 21 13:36:24:655491] pilight-flash: INFO: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
[Jul 21 13:36:24:656094] pilight-flash: INFO: AVR device signature = 0x1e 0x93 0x0b
[Jul 21 13:36:24:656494] pilight-flash: INFO: AVR lfuse reads as E2
[Jul 21 13:36:24:656862] pilight-flash: INFO: AVR hfuse reads as E2
[Jul 21 13:36:24:656909] pilight-flash: INFO: AVR FLASH memory has been specified, an erase cycle will be performed
[Jul 21 13:36:24:656943] pilight-flash: INFO: AVR chip being erased
[Jul 21 13:36:24:817555] pilight-flash: INFO: reading input file "0xe1"
[Jul 21 13:36:24:817670] pilight-flash: INFO: writing lfuse (1 bytes)
Writing | ################################################## | 100% 0.00s
[Jul 21 13:36:24:822220] pilight-flash: INFO: 1 bytes of lfuse written
[Jul 21 13:36:24:836643] pilight-flash: INFO: verifying lfuse memory against 0xe1:
[Jul 21 13:36:24:836785] pilight-flash: INFO: load data lfuse data from input file 0xe1:
[Jul 21 13:36:24:836867] pilight-flash: INFO: input file 0xe1 contains 1 bytes
Reading | ################################################## | 100% 0.00s
[Jul 21 13:36:24:837128] pilight-flash: INFO: verifying ...
[Jul 21 13:36:24:837192] pilight-flash: INFO: 1 bytes of lfuse verified
[Jul 21 13:36:24:838672] pilight-flash: INFO: reading input file "0xe1"
[Jul 21 13:36:24:838756] pilight-flash: INFO: writing lfuse (1 bytes)
Writing | ################################################## | 100% 0.00s
[Jul 21 13:36:24:838988] pilight-flash: INFO: 1 bytes of lfuse written
[Jul 21 13:36:24:853560] pilight-flash: INFO: verifying lfuse memory against 0xe1:
[Jul 21 13:36:24:853702] pilight-flash: INFO: load data lfuse data from input file 0xe1:
[Jul 21 13:36:24:853777] pilight-flash: INFO: input file 0xe1 contains 1 bytes
Reading | ################################################## | 100% 0.00s
[Jul 21 13:36:24:854040] pilight-flash: INFO: verifying ...
[Jul 21 13:36:24:854084] pilight-flash: INFO: 1 bytes of lfuse verified
[Jul 21 13:36:24:855633] pilight-flash: INFO: reading input file "./pilight_firmware_t85_v3.hex"
[Jul 21 13:36:24:855872] pilight-flash: INFO: input file ./pilight_firmware_t85_v3.hex auto detected as Intel Hex
[Jul 21 13:36:24:856780] pilight-flash: INFO: writing flash (1146 bytes)
Writing | ################################################## | 100% 0.21s
[ Jul 21 13:36:25:63223] pilight-flash: INFO: 1146 bytes of flash written
[ Jul 21 13:36:25:77908] pilight-flash: INFO: verifying flash memory against ./pilight_firmware_t85_v3.hex:
[ Jul 21 13:36:25:78073] pilight-flash: INFO: load data flash data from input file ./pilight_firmware_t85_v3.hex:
[ Jul 21 13:36:25:78311] pilight-flash: INFO: input file ./pilight_firmware_t85_v3.hex auto detected as Intel Hex
[ Jul 21 13:36:25:79216] pilight-flash: INFO: input file ./pilight_firmware_t85_v3.hex contains 1146 bytes
Reading | ################################################## | 100% 0.12s
[Jul 21 13:36:25:200630] pilight-flash: INFO: verifying ...
[Jul 21 13:36:25:200720] pilight-flash: INFO: 1146 bytes of flash verified
[Jul 21 13:36:25:202499] pilight-flash: INFO: AVR lfuse reads as E1
[Jul 21 13:36:25:202875] pilight-flash: INFO: AVR hfuse reads as E1
[Jul 21 13:36:25:202917] pilight-flash: INFO: AVR fuses OK
[Jul 21 13:36:25:205818] pilight-flash: INFO: Finished updating firmware
[Jul 21 13:36:25:205887] pilight-flash: INFO: **** DONE UPD. FW ****
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Starting pilight on boot: "cannot bind to the SSDP multicast network" pilino1234 3 182 08-31-2019, 10:41 PM
Last Post: curlymo
Tongue pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 4 370 08-17-2019, 01:04 PM
Last Post: curlymo
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 2,055 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 472 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 360 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 2,370 06-29-2019, 08:58 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 723 06-11-2019, 05:19 PM
Last Post: curlymo
  pilight fails starting on boot Alex 5 635 06-09-2019, 06:02 PM
Last Post: curlymo
  Google Assistant coupled to pilight hansrijn2 4 1,121 05-29-2019, 06:54 PM
Last Post: curlymo
  pilight-send does not stop (terminate) va13 3 615 05-15-2019, 06:06 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)