Failing to update to 3.4

Hey guys- I am currently updated to 3.4 but also it is throwing errors at the end of the update. From what I gather you guys are aware but just wanted to make sure or offer another person who could test. Here’s the code:

Blockquote

  • 08:23:37: installation failed
  • 08:23:37:
    Programming /home/pi/amplipi-dev/fw/bin/preamp_1.7.bin with
    /home/pi//venv/bin/python -m amplipi.hw --baud 115200 --flash “/home/pi/amplipi-dev/fw/bin/preamp_1.7.bin”

Failed to init device.
stm32flash 0.5

http://stm32flash.sourceforge.net/

Using Parser : Raw BINARY
Interface serial_posix: 115200 8E1

Programming up to 6 AmpliPi Preamps (3 currently detected)

Main Unit’s old firmware version: 1.7-4F618C6
Error programming Main Unit, stopping programming
Main Unit’s new firmware version: 1.7-4F618C6

0 AmpliPi preamps programmed.
Programming failed.

  • 08:23:37: Flash latest preamp firmware
  • 08:23:36: Add desktop icon for Aux Input
  • 08:23:36: Add desktop icon for Config Streamer
  • 08:23:35: Add desktop icon for Streamer
  • 08:23:35: Add desktop icon for Preamp Status
  • 08:23:34: Add desktop icon for Fans and Power
  • 08:23:34: Add desktop icon for Peak Detect

Blockquote

Sorry to hear you’ve encountered this bug. Thanks for sharing the log and the offer to test. We are indeed already aware of this issue and in fact have a fix that will be included in the next release! Your messages show you’re already on the latest version (1.7-4F618C6) so you’re not actually missing out on anything.

Once another release is made, the new 1.8 Preamp Board firmware will fix the root cause of the programming issue, but there may still be some difficulties getting 1.8 programmed in the first place. We’ve robustified the programming script to go from a ~10% success rate in your case of 2 expanders to ~90% success rate, but that means there is still a chance of failure. If you do see errors related to the preamp firmware programming during future updates it’s not a big deal, the only change to 1.8 is the programming fix and in general we make the preamp firmware releases backwards-compatible.

The 0.4.0 release will contain a major upgrade to the update process, and we will have to revisit the firmware programming then too. So there’s a chance we can further reduce the chance for future issues like this.

1 Like