john30 / ebusd

daemon for communication with eBUS heating systems
GNU General Public License v3.0
592 stars 136 forks source link

ebuspicloader: unexpected checksum , Firmware Version 8ed9 #964

Closed pawgac closed 1 year ago

pawgac commented 1 year ago

Description

Trying to upload a new firmware 8ed9 to my eBUS adapter 3.1, I got the error 'unexpected checksum':

ebuspicloader -f 20221231-offset.hex /dev/ttyAMA0 opened /dev/ttyAMA0 Device ID: 30b0 (PIC16F15356) Device revision: 0.2 Bootloader version: 2 [73c8] Firmware version: 1 [e66a] MAC address: ae:b0:53:55:14:80 IP address: DHCP (default) Arbitration delay: 200 us (default) Visual ping: on (default) Variant: USB/RPI (high-speed), ignore hardware jumpers

New firmware version: 1 [8419] erasing flash: done. flashing: 0x0400 - 0x3fff

0x0400 ................................................................ 0x0800 ................................................................ 0x0c00 ................................................................ 0x1000 ................................................................ 0x1400 ................................................................ 0x1800 ................................................................ 0x1c00 ................................................................ 0x2000 ................................................................ 0x2400 ................................................................ 0x2800 ................................................................ 0x2c00 ................................................................ 0x3000 ................................................................ 0x3400 ................................................................ 0x3800 .......................................................... flashing finished. unexpected checksum.

After reboot, the LED is very bright like in bootloader mode but connection no more possible, even when Pins 3 and 4 connected.

dmesg | grep ttyAMA0 [ 1.555571] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2

ebuspicloader -v /dev/ttyAMA0 opened /dev/ttyAMA0 read sync timed out

Actual behavior

n/a

Expected behavior

n/a

ebusd version

current source from git

ebusd arguments

n/a

Operating system

Debian 11 (Bullseye) / Ubuntu 20-21 / Raspbian 11 / Raspberry Pi OS 11 (including lite)

CPU architecture

x64

Dockerized

None

Hardware interface

adapter 3.1 RPi

Related integration

No response

Logs

n/a

pawgac commented 1 year ago

I was able to solve this issue.

Adapter reset over Jumper, boot device with jumper on 3+4, flashed new FW and set Variante to rip again.

ebuspicloader -f 20221231-offset.hex /dev/ttyAMA0 opened /dev/ttyAMA0 Device ID: 30b0 (PIC16F15356) Device revision: 0.2 Bootloader version: 2 [73c8] Firmware version: 1 [8ed9] MAC address: ae:b0:53:55:14:80 IP address: DHCP (default) Arbitration delay: 200 us (default) Visual ping: on (default) Variant: USB/RPI (high-speed), ignore hardware jumpers

New firmware version: 1 [8419] erasing flash: done. flashing: 0x0400 - 0x3fff

0x0400 ................................................................ 0x0800 ................................................................ 0x0c00 ................................................................ 0x1000 ................................................................ 0x1400 ................................................................ 0x1800 ................................................................ 0x1c00 ................................................................ 0x2000 ................................................................ 0x2400 ................................................................ 0x2800 ................................................................ 0x2c00 ................................................................ 0x3000 ................................................................ 0x3400 ................................................................ 0x3800 .......................................................... flashing finished. flashing succeeded.

ebuspicloader --variant=u /dev/ttyAMA0 opened /dev/ttyAMA0 Device ID: 30b0 (PIC16F15356) Device revision: 0.2 Bootloader version: 2 [73c8] Firmware version: 1 [8419] MAC address: ae:b0:53:55:14:80 IP address: DHCP (default) Arbitration delay: 200 us (default) Visual ping: on (default) Variant: USB/RPI (high-speed), ignore hardware jumpers

Writing settings: done. Settings changed to: MAC address: ae:b0:53:55:14:80 IP address: DHCP (default) Arbitration delay: 200 us (default) Visual ping: on (default) Variant: USB/RPI (high-speed), allow hardware jumpers (default)

Thanks Pawel

pawgac commented 1 year ago

I was able to solve this Problem.