Jumbospot - can't update/downgrade firmware

MMDVM_HS Hat hardware
PA3FAT
Posts: 28
Joined: Tue Sep 01, 2020 6:40 pm

Re: Jumbospot - can't update/downgrade firmware

Post by PA3FAT »

ordered st-link v2 via webshop nearby.
Delivered this morning.
Connected, started the software, disabled the read protection.
Restarted the pi-star and flashed the hat again.

All ok now !

Nigel, thanks for your support !

Ron
G4ZAL
Posts: 8
Joined: Sun Mar 03, 2019 2:14 pm

Re: Jumbospot - can't update/downgrade firmware

Post by G4ZAL »

Hi Ron,

Glad you got it sorted and happy to have helped ;-)

Nigel
G4ZAL
User avatar
VK7HSE
Posts: 229
Joined: Sun Apr 15, 2018 6:35 pm
Contact:

Re: Jumbospot - can't update/downgrade firmware

Post by VK7HSE »

Looks like I too have a duplex board that has been locked. A little bit sneaky of them (might not be intentional) but not a big problem to rectify. Image

Sent from my Pixel 4 XL using Tapatalk

User avatar
VK7HSE
Posts: 229
Joined: Sun Apr 15, 2018 6:35 pm
Contact:

Re: Jumbospot - can't update/downgrade firmware

Post by VK7HSE »

Oh how embarrassing! I didn't even look at the JP1 status! But I think that you are right! Silly me

Sent from my Pixel 4 XL using Tapatalk

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

Re: Jumbospot - can't update/downgrade firmware

Post by MW0MWZ »

Sorry to drag this back up - but the tools to unlock them are also on Pi-Star's image :)

Code: Select all

pi-star@pi-star(ro):~$ sudo stm32flash --help
stm32flash 0.5

http://stm32flash.sourceforge.net/

stm32flash: invalid option -- '-'
Usage: stm32flash [-bvngfhc] [-[rw] filename] [tty_device | i2c_device]
	-a bus_address	Bus address (e.g. for I2C port)
	-b rate		Baud rate (default 57600)
	-m mode		Serial port mode (default 8e1)
	-r filename	Read flash to file (or - stdout)
	-w filename	Write flash from file (or - stdout)
	-C		Compute CRC of flash content
	-u		Disable the flash write-protection
	-j		Enable the flash read-protection
	-k		Disable the flash read-protection
Note: I have *not* had the need to use this myself, so I wont say that I know it works, but the options are already there, you should not need to use a soldering iron, fight with software or get any kind of programmer :)

If anyone finds out that I am wrong about this, please tell me :)
Andy

73 de MW0MWZ
http://pistar.uk
User avatar
PD4MM
Posts: 36
Joined: Thu Apr 19, 2018 6:12 am
Location: Kerkrade
Contact:

Re: Jumbospot - can't update/downgrade firmware

Post by PD4MM »

Hello,

I have the same problem and can not update the firmware 1.4.6 to 1.5.2, bud what is the reasons for this .........

PD4MM Marcel

Marcel

73's PD4MM QPO

Sysop: https://pi1krd.nl/
G4ZAL
Posts: 8
Joined: Sun Mar 03, 2019 2:14 pm

Re: Jumbospot - can't update/downgrade firmware

Post by G4ZAL »

Hi Marcel,
You have the same problem as in my first few posts?
What error message(s) do you get?

I only know how to do what I manged in the posts I made in this thread, otherwise I can't help much !

73
Nigel G4ZAL
KY4DAG
Posts: 1
Joined: Fri Jul 31, 2020 5:31 am

Re: Jumbospot - can't update/downgrade firmware

Post by KY4DAG »

Sorry to drag this back up further, but I had the same issue with my mmdvm-hs-hat clone
edgetriggered from the m17 discord directed me to try stm32flash -u
I was able to use the stm32flash software on the pi-star through the browser ssh to get it going
I used the commands from install_fw_hshat.sh
At first I couldn't get -u to work. It always returned NACK. Then I tried -k and completed then I tried the -u after that and it worked.

These are the commands I ended up using This may not be correct for everyone, this is just what I used.

Code: Select all

sudo killall MMDVMHost >/dev/null 2>&1
sudo stm32flash -k -i 20,-21,21:-20,21 /dev/ttyAMA0
sudo stm32flash -u -i 20,-21,21:-20,21 /dev/ttyAMA0
sudo pistar-mmdvmhshatflash hs_hat
Post Reply