PiSupply / PiJuice

Resources for PiJuice HAT for Raspberry Pi - use your Pi Anywhere
https://www.pi-supply.com/product/pijuice-standard/
GNU General Public License v3.0
433 stars 102 forks source link

PiJuice does not respond to i2c-commands and reports at 0x41 #1039

Open fjpdevries opened 7 months ago

fjpdevries commented 7 months ago

My PiJuice is no longer at i2c-address 0x14 but reports at i2c-address 0x41 I guess this occurred after updating pijuice firmware from V1.5 to V1.6 (not sure however). I was preparing a new system with a new pijuice delivered with 1.5 firmware.

Tried to recover from this situation by (again) updating the firmware to 1.6. The update itself is done using pijuiceboot and is executed without any error but doesn't solve the problem. I also used the option no_start but this doesn't help either.

Any suggestions on how to recover from this situation and get the pijuice accessible again?

tvoverbeek commented 7 months ago

The PiJuice reporting I2C address 0x41 means it is in the MCU bootloader. From the documentation:

Holding pressed SW3 while powering up PiJuice HAT will initiate the bootloader.
This is used only in cases when ordinary initiation through I2C does not work
because of damaged firmware.

Note that you have to use the pijuiceboot version from the 1.6 firmware if you install the latest packages since the 1.6 firmware is larger than 80k.

From the firmware 1.6 changelog:

* pijuiceboot
    - Support loading firmwares larger than 80k. Needed for loading V1.6