Helpdesk

Hello


I try to flash the pienergy mini, but I get this error message: Cannot connect to ATTiny (Error -1)
I'm using a Raspberry 4 wih this command: sudo ./tpiflash_rpi4 w 1e8f09 firmware.bin


I've soldered the pins and here is how I connected them to the raspi:


+ - Pin2 +5V
R - Pin3 GPIO 2
C - Pin5 GPIO 3
G - Pin6 GND
D - Pin7 GPIO 4


Do I have to configure the GPIOs on the raspberry?
Or is there anything else I need to keep in mind?

Hauk

08.04.26 15:56

Hello Hauk,


If you have followed the steps in the manual correctly, the setup should work. I have just tested it successfully using the latest Raspberry Pi OS image. Especially if the cables are properly soldered to the pads of the PiEnergy Mini (and not just held in place), the setup should work reliably, provided the device itself is not defective. 


Please ensure that you are using the correct flashing command for your specific Raspberry Pi model. Also, do not connect an external power supply to the PiEnergy Mini’s terminal block while flashing.


Please go through all steps once more to make sure everything is set up correctly. If the issue still persists, you will unfortunately need to return the unit to your retailer.


The PiEnergy Mini is also available in two variants, allowing you to receive it pre-flashed with the desired firmware.


Best regards


 

Tim

09.04.26 09:43

Hi,


thanks for you reply. Yes I soldered them on and checked connectivity up to the ATTiny5.
I used this command, because I have a Pi 4: sudo ./tpiflash_rpi4 w 1e8f09 firmware.bin


I tried also to modify the makefile, because it is original build for a attiny10. But no difference.


I did not connect a external power supply to PiEnergy Mini.


Did you modified the makefile?


Best regards

Hauk

09.04.26 15:07

No further modifications are necessary it should work exactly as described in the manual.

Tim

09.04.26 17:44