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 »

Any information on the pins to connect?

Can't find that information. And probably also have a locked hat.

The ST-Link device is this same a TTL serial interface? That i have.
PA3FAT
Posts: 28
Joined: Tue Sep 01, 2020 6:40 pm

Re: Jumbospot - can't update/downgrade firmware

Post by PA3FAT »

found a header with 3.3V/GND/CLK and not sure something with IO on it? That's it?
G4ZAL
Posts: 8
Joined: Sun Mar 03, 2019 2:14 pm

Re: Jumbospot - can't update/downgrade firmware

Post by G4ZAL »

Yes, that sounds correct.
I made it as in the pic below and simply held the connector pins at a slight angle whilst unlocking (they are not solderd in the PCB).
The STLink programmer is not a serial adapter - get the correct thing, cheap enough on ebay or amazon.

DSCN1481s.jpg
DSCN1481s.jpg (74.07 KiB) Viewed 2202 times

Hope that helps

Nigel
G4ZAL
PA3FAT
Posts: 28
Joined: Tue Sep 01, 2020 6:40 pm

Re: Jumbospot - can't update/downgrade firmware

Post by PA3FAT »

Nigel,

Ordered ST-Link V2 via Bangood UK stock. Should be here in a day or 2-5.
Have similar print it seems.

Was thinking about the same regarding the angled/pressure mount.

Thanks !

Ron
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: 222
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

KE7FNS
Pi-Star Team
Posts: 1823
Joined: Wed Apr 17, 2019 11:11 pm

Re: Jumbospot - can't update/downgrade firmware

Post by KE7FNS »

VK7HSE wrote: Thu Oct 01, 2020 3:56 am 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.
That is an older board design by phl0 on github (Florian DF2ET), and it looks like JP1 isn't bridged (or at least bridged very well) and in order to begin a flash on that board without JP1 bridged you have to manually bridge the boot jumpers instead, which I don't think you are doing in your attempt.

Code: Select all

BOOT0: completey removed
BOOT1: set to BOOT 1 -
That means connect boot 1 (middle pad) to - (the pad directly below it in your photo) (You can easily follow the JP1 trace and see that it connects to Boot 1 and the other side connects to the - pad).

Or you can bridge JP1 with some solder and then you won't have to manually jump it to begin the flash and the automatic toggling of the GPIO lines will put the STM32 into the bootloader mode correctly.

When the board isn't jumpered correctly, you get the way more common "failure to init" in the very beginning of the STM32flash dialog, and not the "NACK from device on command 0x43, Can't initiate chip erase!" that the OP stated.

It is also possible to flash the board using that mini USB connector in the bottom right, but it requires installing a bootloader and in order to do that you need a STlink.
https://github.com/phl0/MMDVM_HS_Dual_Hat
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:
User avatar
VK7HSE
Posts: 222
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: 1347
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

[email protected](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
Post Reply