Firmware Locked

MMDVM_HS Hat hardware
Post Reply
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Firmware Locked

Post by MW0MWZ »

If you have a problem with your MMDVM Hat seeming to have been locked by the vendor, you can try this to unlock it:

SSH into your Pi-Star, stop the services trying to use the Hat:

Code: Select all

sudo systemctl stop pistar-watchdog.timer
sudo systemctl stop pistar-watchdog
sudo systemctl stop mmdvmhost.timer
sudo systemctl stop mmdvmhost 
Unlock the MMDVM_HS:

Code: Select all

sudo /usr/local/bin/firmware/utils/stm32flash -k -i 20,-21,21:-20,21 /dev/ttyAMA0
sudo /usr/local/bin/firmware/utils/stm32flash -u -i 20,-21,21:-20,21 /dev/ttyAMA0
Update the Firmware:

Code: Select all

sudo pistar-modemupgrade
The above command will only show you the update options, find your desired modem from the list, and run the above command with the suffix for your modem.

Please note: *I* do *not* have a modem with locked firmware to test this on, you follow these instructions at your own risk.

This information originally posted by KY4DAG here: viewtopic.php?p=20776#p20776
Andy

73 de MW0MWZ
http://pistar.uk
VE9LEG
Posts: 7
Joined: Sun Oct 27, 2019 4:03 pm

Re: Firmware Locked

Post by VE9LEG »

For my board, this didn't work. I suspect if you have a board with "jumpers", there's a definite possibility this could work.

I also suspect that somebody with more knowledge of the STM32 microcontrollers and who would know how to get the proper pins in the correct state, could get my board and STM32 microcontroller to -u "Disable the flash write-protection" and -k "Disable the flash read-protection".

This instructions posted could be very valuable for certain board owner, so I would recommend they give it a shot if their flash is read and/or write protected. Those appear to be the commands to disable the protection, but it appears as if you need to the the microcontroller in a state to accept those commands.

FYI: I'm no expert to this topic either.
VE9LEG
Posts: 7
Joined: Sun Oct 27, 2019 4:03 pm

Re: Firmware Locked

Post by VE9LEG »

Update: I was able to flash it by pulling pin 20 to ground. At least I believe that's pin 20.

Either way, I followed the image and I'm now at firmware version 1.6.1

PS: This is not my image, jut a copy of the one which was provided to me.
Attachments
flash.jpg
flash.jpg (113.05 KiB) Viewed 2029 times
ka1cm
Posts: 17
Joined: Wed Dec 27, 2023 4:34 pm

Re: Firmware Locked

Post by ka1cm »

I'm having the same issue with my Hs_dual_hat. However, according to Github repository the version 1.5.2 is the latest version. I'm suspecting that someone might confused Zumspot v1.6.1 with Generic HS Hat???

Is it possible that all the issue about the firmware locked is all because of this? And If one would like to upgrade to sunspot 1.6.1, then the upgrade procedure would be different?

KA1CM
M1DNS
Pi-Star Team
Posts: 1404
Joined: Thu Apr 05, 2018 5:30 am

Re: Firmware Locked

Post by M1DNS »

The latest fw is 1.6.1

You can update to it using the link in the expert tab. But first you will need to ensure the board can accept the update.

Sent via smoke signals using my SM-G935F

Andrew M1DNS.
Pi-star Admin Team.
ka1cm
Posts: 17
Joined: Wed Dec 27, 2023 4:34 pm

Re: Firmware Locked

Post by ka1cm »

OK, I have got it upgraded. What I have done is short the JP1.
Post Reply