Jumbospot - can't update/downgrade firmware

MMDVM_HS Hat hardware
Post Reply
G4ZAL
Posts: 5
Joined: Sun Mar 03, 2019 2:14 pm

Jumbospot - can't update/downgrade firmware

Post by G4ZAL » Mon Sep 14, 2020 8:26 pm

I have just bought a Chinese jumbospot clone with OLED (board is not marked with type or version).
It does work, but I want to check it upgrades before leaving feedback.

In pi-star -> Expert -> SSH I use:
sudo pistar-findmodem (and it returns)
Detected MMDVM_HS (GPIO): /dev/ttyAMA0 (MMDVM_HS_Hat-v1.4.17 20190529 14.7456MHz ADF7021 FW by CA6JAU GitID #cc451c4)

When trying to update (or downgrade) with command:
sudo pistar-mmdvmhshatflash hs_hat (or sudo pistar-mmdvmhshatdowngrade hs_hat)
it downloads data from the internet, gets so far along and then returns this...

stm32flash Arduino_STM32_0.9

http://github.com/rogerclarkmelbourne/arduino_stm32

Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0410 (Medium-density)
- RAM : 20KiB (512b reserved by bootloader)
- Flash : 128KiB (sector size: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory
Got NACK from device on command 0x43
Can't initiate chip erase!
Failed to erase memory

Resetting device... done.

No matter what I try, I cannot get it to upgrade or downgrade and the schematic checks out OK?!

Is it something I am doing wrong or...?

Nigel
G4ZAL

KE7FNS
Posts: 939
Joined: Wed Apr 17, 2019 11:11 pm

Re: Jumbospot - can't update/downgrade firmware

Post by KE7FNS » Mon Sep 14, 2020 8:48 pm

G4ZAL wrote:
Mon Sep 14, 2020 8:26 pm
Got NACK from device on command 0x43
Normally when I've experienced that specific message from STM32flash the chip has been write protected (aka locked)

I'm not sure if the cloners have tried to be smart and locking it on purpose now but it is possible to unlock it with a STlink programmer and the utilities from ST.


I say if you really want to be able to flash it in the future then just return it. If that doesn't matter then just run it as it is. It is on the latest stable release anyway and that is over a year old. So I doubt there will be any major updates to the firmware as it has kind of just reached a plateau.
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:

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

Re: Jumbospot - can't update/downgrade firmware

Post by G4ZAL » Tue Sep 15, 2020 9:09 am

Thanks for your reply, it makes sense now.
I may have an stlink programmer and if not a friend will.
It probably won't be neccessary to upgrade it, but I would like it to be easy to do so, it's all part of the fun for me.

The ebay advert described it as "The firmware is pre-loaded and is easily upgraded via software."
I will contact the seller and see what their response is to it being locked ;-)
Maybe I can get something out of them ?!
I'm not too concerned as it was only 15GBP delivered from the UK within a few days (including OLED).

I bought it to try out digital radio without too much cost and I also bought a Radioddity GD-77 which should arrive today so hope to be able to have a play... maybe hack the GD-77 with opengd77...

I checked the jumbospot's output against an SDR and it is nearly 2kHz low in frequency - now there's a surprise!

Regards,

Nigel

KE7FNS
Posts: 939
Joined: Wed Apr 17, 2019 11:11 pm

Re: Jumbospot - can't update/downgrade firmware

Post by KE7FNS » Tue Sep 15, 2020 7:30 pm

G4ZAL wrote:
Tue Sep 15, 2020 9:09 am
I may have an stlink programmer and if not a friend will.
You can pickup clones all over the usual locations for ~2 dollars american.

The pain is getting to the ST utilities, it requires a few annoying hoops to jump through.

G4ZAL wrote:
Tue Sep 15, 2020 9:09 am
The ebay advert described it as "The firmware is pre-loaded and is easily upgraded via software."
I will contact the seller and see what their response is to it being locked ;-)
They probably don't care or even know its locked. They probably don't even know what it is and what its used for. Most of the users that sell that kind of stuff are just middlemen that try to make money from turning various unrelated products. Check that sellers prior sales.
G4ZAL wrote:
Tue Sep 15, 2020 9:09 am
I checked the jumbospot's output against an SDR and it is nearly 2kHz low in frequency - now there's a surprise!
I wish more people would use tools like that and actually test things. Good job.
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:

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

Re: Jumbospot - can't update/downgrade firmware

Post by G4ZAL » Wed Sep 16, 2020 7:17 pm

Well my ebay seller responded with a confirmation that the jumbospot is locked but "it is easy to unlock by software" (pic attached) !!
Yeah, right....

It does work fine but I'm haggling with them now, just for the hell of it ;-)

locked1.jpg
locked1.jpg (111.97 KiB) Viewed 140 times

KE7FNS
Posts: 939
Joined: Wed Apr 17, 2019 11:11 pm

Re: Jumbospot - can't update/downgrade firmware

Post by KE7FNS » Wed Sep 16, 2020 8:27 pm

G4ZAL wrote:
Wed Sep 16, 2020 7:17 pm
Well my ebay seller responded with a confirmation that the jumbospot is locked but "it is easy to unlock by software" (pic attached) !!
Yeah, right....
I don''t have any idea what software that is. Its definitely not the official ST software. Its also got a compilation date in it from 2010, plus its running on Windoze XP. Just wow. :shock:
G4ZAL wrote:
Wed Sep 16, 2020 7:17 pm
It does work fine but I'm haggling with them now, just for the hell of it ;-)
As you should, if the description says it is easily flashable it should be unlocked like all the rest of the MMDVM_HS boards for sale out there. There is no reason for that chip to be locked, its not like he's protecting his own code from being cloned.
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:

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

Re: Jumbospot - can't update/downgrade firmware

Post by G4ZAL » Thu Sep 17, 2020 11:16 am

OK, just to complete this story, the chip on my jumbospot was indeed 'locked'.
I purchased an ST-LINK v2 programmer from Amazon at 4.99 GBP (delivered within 2 days).

Downloaded STM32 ST-LINK Utility (some small hoops to jump through, but I already had done this some time in the past), also available from here...
https://www.f5uii.net/en/compilation-in ... stm32f4xx/ (part way down the page - USE IT AT YOUR OWN RISK).

Install ST-LINK utils.

Remove the jumbospot from the R-Pi and connect the 4 wires from the ST-LINK v2 to 4 header pins - either solder them to the jumbospot or do as I did and put them in and simply hold them with a little sideways pressure to make good contact.

Open the ST-LINK utility and use:
Target >> Option Bytes >> Disable Read Out Protection (combo box) and apply.

Disconnect everything and plug the jumbospot back on the R-Pi.

It seems that disabling the read protection may have wiped the chip, but fear not!
Fire up the R-Pi and when Pi-Star is running, connect to it via your browser and then SSH access it and update as normal.
Mine then loaded the latest firmware and wrote it no problems.
I also tested downgrading and upgrading and it works fine.

Now to hassle the seller... !!

Nigel
Last edited by G4ZAL on Thu Sep 17, 2020 10:16 pm, edited 1 time in total.

KE7FNS
Posts: 939
Joined: Wed Apr 17, 2019 11:11 pm

Re: Jumbospot - can't update/downgrade firmware

Post by KE7FNS » Thu Sep 17, 2020 6:49 pm

G4ZAL wrote:
Thu Sep 17, 2020 11:16 am
also available from here...
I wouldn't trust that file, it could be modified. You never know these days. I'd just get it from ST directly.
G4ZAL wrote:
Thu Sep 17, 2020 11:16 am
It seems that disabling the read protection may have wiped the chip, but fear not!
Yes, removing the read protection wipes the chip, if it didn't there'd be no reason for a read/write protection in the first place. You'd be able to easily unprotect it and pull the code off to either clone it directly or disassemble it.
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:

va7kkw
Posts: 3
Joined: Sat Aug 25, 2018 6:29 am

Re: Jumbospot - can't update/downgrade firmware

Post by va7kkw » Sun Sep 20, 2020 7:13 am

G4ZAL wrote:
Thu Sep 17, 2020 11:16 am
OK, just to complete this story, the chip on my jumbospot was indeed 'locked'.
I purchased an ST-LINK v2 programmer from Amazon at 4.99 GBP (delivered within 2 days).

Downloaded STM32 ST-LINK Utility (some small hoops to jump through, but I already had done this some time in the past), also available from here...
https://www.f5uii.net/en/compilation-in ... stm32f4xx/ (part way down the page - USE IT AT YOUR OWN RISK).

Install ST-LINK utils.

Remove the jumbospot from the R-Pi and connect the 4 wires from the ST-LINK v2 to 4 header pins - either solder them to the jumbospot or do as I did and put them in and simply hold them with a little sideways pressure to make good contact.

Open the ST-LINK utility and use:
Target >> Option Bytes >> Disable Read Out Protection (combo box) and apply.

Disconnect everything and plug the jumbospot back on the R-Pi.

It seems that disabling the read protection may have wiped the chip, but fear not!
Fire up the R-Pi and when Pi-Star is running, connect to it via your browser and then SSH access it and update as normal.
Mine then loaded the latest firmware and wrote it no problems.
I also tested downgrading and upgrading and it works fine.

Now to hassle the seller... !!

Nigel
Thanks for this post I must of got the same ebay seller exact message the seller sent to me with the same screen shot

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

Re: Jumbospot - can't update/downgrade firmware

Post by G4ZAL » Sun Sep 20, 2020 9:29 am

@ VA7KKW

Ha, was their technical support person called 'Jennifer' ? Writing in their very best Chinglish !

Well, all you have to do is get a cheap ST-Link programmer and do as my post above if you want it unlocked, otherwise it does work fine, as delivered.
The programmer I purchsed...
https://www.amazon.co.uk/gp/product/B07QBLNDPM

They have offered me a small refund as 'compensation'.

Nigel
G4ZAL

Post Reply