SOLVED - mmdvm single and duplex firmware update problem

MMDVM_HS Hat hardware
Post Reply
dh3ybe
Posts: 42
Joined: Sun Aug 26, 2018 9:02 pm
Location: Germany

SOLVED - mmdvm single and duplex firmware update problem

Post by dh3ybe » Sat Sep 28, 2019 1:06 pm

Hello,

I have problems upgrading on to raspberry pi the mmdvm firmware.

It stopps with the failure:
serial posix 57600 8E1
failed to init device

My internet recherche, inlcuding threads of our pistar-forum did a couple of outcome:
- detach OLED display on mmdvm modem and set in configuration to none
- check JP1 jumper / joined on mmdvm GPIO connector pins 38 to 40
- make a new sd card from pistar image and import configuration and try to update mmdvm firmware

So I did all this thre things several times, without positive outcome on both raspberry pis. so same failure did occur. Last year, it worked perfectly.

My config for hotspot
- 2 raspberry pis B+ with 26 gpio pin connection with pistar 3.4.17
- simplex mmdvm hat 17.5 MHz (german version), mmdvm firmware installed 1.4.6
- duplex mmdvm hat 12 MHz (german version), mmdvm firmware installed 1.4.8, gpio conncetion and not usb connection to Pi
- 2 oled displays

Pis and mmdvm work very well in both installations.

Due to raspberry pi version B+ which is lower Pi 2, I have to youth pistar version 4.4.17.

So any hints, what could be the problem or what did a miss to recognize?

Thanks to the maker of pistar software and Toshens KE0FHS Website, which helped me a lot beneath pistar website and this forum.

Best regards
73
Kai
dh3ybe
Last edited by dh3ybe on Sun Sep 29, 2019 9:30 am, edited 1 time in total.

User avatar
KE0FHS
Posts: 1049
Joined: Wed Apr 11, 2018 8:40 pm
Location: Colorado, USA
Contact:

Re: mmdvm single and duplex firmware update problem

Post by KE0FHS » Sat Sep 28, 2019 2:40 pm

Hi Kai,

It sounds like you have the original Raspberry Pi 1 Model B from 2012, which has a 26-pin GPIO. The Model B+, which was released in 2014 has a 40-pin GPIO. That may be the problem you're running into. See this post by Gene, N9MXQ: viewtopic.php?t=841#p3368. He explains that the error message you're seeing is because "the Pi isn't seeing the MMDVM board via the upgrade pins (38 and 40)."

FYI, I have the same two boards, the MMDVM_HS_Hat by Florian, DF2ET, and Mathis, DB9MAT, and the MMDMV_HS_Dual_Hat by Florian, DF2ET, Mathis, DB9MAT, and Andreas, DO7EN, and I have never had to solder the JP1 jumper in order to upgrade the firmware. I think that advice applies only to some clone boards.

If I were facing your issue, I'd invest in a newer Raspberry Pi board that has a 40-pin GPIO, like the RPi 3 Model B (works with Pi-Star 3.4.17) or the RPi 3 Model B+ (requires the Pi-Star beta release 4.1.0).

See also the post by Wayne, N7ZQS, in which he explains that he was able to solve a similar issue to what you are experiencing:
I was able to resolve this issue and I appreciate all the input and assistance. I created another Pi-Star SD card but this time I did not restore my backup settings file. Other than setting up the WiFi, I updated, upgraded, and update the firmware with no issues. I restored my settings manually and everything is working as it should.
viewtopic.php?f=29&t=841&start=10#p3381
73, Toshen, KE0FHS
Playing with Pi-Star (unofficial notes about setting up and using Pi-Star):
https://amateurradionotes.com/pi-star.htm

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

Re: mmdvm single and duplex firmware update problem

Post by KE7FNS » Sat Sep 28, 2019 8:41 pm

dh3ybe wrote:
Sat Sep 28, 2019 1:06 pm
- check JP1 jumper / joined on mmdvm GPIO connector pins 38 to 40
I don't understand what you mean by that.

If you are using it on the old RPi's with only 26 GPIO's then it is impossible for the RPi to send it the signals it needs on the STM32 to automatically enter bootloader mode. So I'm unsure what you mean by joined, and joined to what?

I've tinkered with that board and it is very unfriendly when trying to flash it, it takes a number of tries to get it to begin the flash. I've flashed a number of other board designs and they don't require any extra effort at all.

Are you shorting together the BOOT 1 and - pins when you are trying to flash it? Even if you do that I'm not sure how to get the STM32 into bootloader mode without those two extra GPIO pins connected to the correct pins on a RPi 40 pin GPIO header. I know theres a way to short something while powering it up, but I don't know if that board has those pins routed somewhere. I don't think theres a schematic for that board available.
All views, comments, posts and opinions shared are entirely my own.

dh3ybe
Posts: 42
Joined: Sun Aug 26, 2018 9:02 pm
Location: Germany

Re: mmdvm single and duplex firmware update problem

Post by dh3ybe » Sun Sep 29, 2019 9:29 am

Dear Toshen and Dear KE7FNS,

thank you very much for your replies.

Concerning "joined" I should better write "shortened" GPIO header pins 38 and 40 on the mmdvm header pins. In another internet website would work on chinese clones.

I think I will try to use an new Pi3, because I have not so much things to do to get it working. And as you described, the Pi will get an answer back through GPIO 40 pin connection. It will ease a lot.

Thanks a lot to you both for your support, your advices and sharing your experience.

Best Regards,

Kai
DH3YBE

dh3ybe
Posts: 42
Joined: Sun Aug 26, 2018 9:02 pm
Location: Germany

Re: SOLVED - mmdvm single and duplex firmware update problem

Post by dh3ybe » Sun Sep 29, 2019 9:31 am

marked as solved due to the problem, that mmdvm modem version needs full 40 pin gpio header

73
Kai
dh3ybe

dh3ybe
Posts: 42
Joined: Sun Aug 26, 2018 9:02 pm
Location: Germany

Re: SOLVED - mmdvm single and duplex firmware update problem

Post by dh3ybe » Sat Oct 05, 2019 7:54 pm

Hello Dear All,

I only want to report SUCCESS.

Bought to Raspi 3B+ and power supply with 3A.
Saved the configuration files.
Installed pi-star version 4. Run update and upgrade and restored the configuration files.
Important: sometimes the mmdvm hat has to be newly clicked in the configuration.
Passwords pi-star and e.g. Brandmeister Hotspot security has to be changed or reconfigurated.

Due to the fact, that I have OLEDs Display directly mounted on the mmmdvm hats, I had to set mmmdvm display type and port both to "none".
So now I have an actual firmware on the mmdvm hats. :D

Best regards
Kai
DH3YBE

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

Re: SOLVED - mmdvm single and duplex firmware update problem

Post by KE7FNS » Sat Oct 05, 2019 8:18 pm

dh3ybe wrote:
Sat Oct 05, 2019 7:54 pm
Due to the fact, that I have OLEDs Display directly mounted on the mmmdvm hats, I had to set mmmdvm display type and port both to "none".
That is an unnecessary step. The OLED uses the i2c bus to communicate, and the flashing uses a serial bus. Also before the flashing actually happens the firmware update script kills the MMDVMHost process so there isn't any communications happening on either the i2c or the serial busses.

Just leaving that for people that might find a solution when searching later.

Anyways congrats on getting it working, its too bad you didn't figure out a way to flash it using the old RPi though, as for some reason people are still using them and I'm sure they might run into the same issues at a later date.
All views, comments, posts and opinions shared are entirely my own.

Post Reply