Helpdesk

Hi,


I'm trying to flash my PiEnergy Mini with autostart so I don't need to press the power button when power is connected. I've done a pin header and connected it to a RPI 4, holding it against the interface as stated in the manul. But I only get this error message 


"Page size: 4096
Error: Cannot connect to ATTiny (Error -1)"


I've checked my wiring several times and from what I can see everything looks fine. What am I doing wrong? 

gostnghost

16.08.24 19:32

Just to clarify, here's how I connected my Raspberry Pi 4


GPIO pin number 3 (GPIO2) - > R
GPIO pin number 4 (5V) - > +
GPIO pin number 5 (GPIO3) - > C
GPIO pin number 6 (Ground) - > G
GPIO pin number 7 (GPIO4) - > D


Is this correct?


I've downloaded the Autostart firmware, runt the installation prompts like this:


sudo apt-get install avr-libc gcc-avr build-essential git
git clone https://github.com/Mrkvak/pi_tpi.git
cd pi_tpi/
sudo make


When I then try to run this line


sudo ./tpiflash_rpi4 w 1e8f09 firmware.bin


I get this error 
"Page size: 4096
Error: Cannot connect to ATTiny (Error -1)"


 

gostnghost

17.08.24 11:14

Hello gostnghost,
how did you connect the pins?
When connecting by simply holding up a pin header, this error occurs more frequently and flashing usually requires several attempts. If possible, you can solder the cables directly to the solder points on the board to avoid the connection problem.


Best regards 


Tim (Joy-IT)

Tim

19.08.24 11:37

Hi Tim,


 


Yes I was just holding the pin header, I'll try to solder the connections instead. Was my GPIO pin connection correct?


 


/Göran 

gostnghost

19.08.24 12:15

Yes,


your pin connection seems to be correct.


Best regards 


Tim (Joy-IT)

Tim

19.08.24 13:27