POG MMDVM firmware compiling error

Help with other MMDVM Repeater Boards (with NO onboard RF)
Post Reply
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

POG MMDVM firmware compiling error

Post by JA3VQW »

Hi
I tried your scripts several times and got ERROR.
I use Pi3 and Pi-Star 4.1.5
The error is

pi-star@pi-star(ro):~$ /usr/local/bin/stm32flash -v -w bin/mmdvm.elf -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0
-bash: /usr/local/bin/stm32flash: No such file or directory

There is stm32flash on /usr/local/bin directory.
Very strange.

I think I came very near to the GOAL.
So please help me again.

73
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling instructions for 2020 and beyond

Post by JA3VQW »

Thanks Info.

Where can I find your new Instruction script ??
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling instructions for 2020 and beyond

Post by JA3VQW »

HI
I have still ERROR.
I use new sd card and set Pi-star.
The error is

pi-star@pi-star(ro):~$ /usr/bin/stm32flash -v -w bin/mmdvm.elf -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0
stm32flash 0.5

http://stm32flash.sourceforge.net/

Intel HEX ERROR: System Error
bin/mmdvm.elf: No such file or directory

What is wrong?
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling instructions for 2020 and beyond

Post by JA3VQW »

Hi
I tried but got NEW ERROR below

pi-star@pi-star(ro):MMDVM$ /usr/bin/stm32flash -v -w bin/mmdvm.elf -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0
stm32flash 0.5

http://stm32flash.sourceforge.net/

Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Cannot open file "/sys/class/gpio/gpio20/direction"

I put that scripts on MMDVM directory.
???
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling error

Post by JA3VQW »

I put these script and it started writing to NNDVM BUT

============
cd MMDVM
sudo pistar-watchdog.service stop
sudo systemctl stop mmdvmhost.timer
sudo systemctl stop mmdvmhost.service

echo 21 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio21/direction
echo 20 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio20/direction

sudo /usr/bin/stm32flash -v -w bin/mmdvm.elf -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0
=======================
Stopped at
Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0418 (STM32F105xx/F107xx)
- RAM : 64KiB (4096b reserved by bootloader)
- Flash : 256KiB (size first sector: 2x2048)
- Option RAM : 16b
- System RAM : 18KiB
Write to memory
Erasing memory
Wrote and verified address 0x08040000 (56.98%) Done.

Starting execution at address 0x08000000... done.

=======
I tried several times and it stopped at same 56.98% !
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling error

Post by JA3VQW »

I once tried and got ERROR.
When writing to MMDVM the LED of PWR stay lit and ACT is flashing fast.
And stopped at 56%.
It is very strange.
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling error

Post by JA3VQW »

And after writing (even 56%) remove jumper of MMDVM board and power on Rip,
only PWR LED is lit on the MMDVM.
So I think I failed to write the firm of MMDVM.
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling error

Post by JA3VQW »

Thanks for your many message and suggestion.
Yes,This is very hard for me to firm-up my POG board.
I came to the time to give up.
Thanks again
73 de JA3VQW/Hiro
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling error

Post by JA3VQW »

I could firm-up completely.
BUT MMDVM does not work.
Dashboard shows modem is
Radio.jpg
Radio.jpg (42.82 KiB) Viewed 7593 times
BUT my MMDVM TCXO is 19.2MHz.
Whuuuuumm.
JA3VQW
Posts: 22
Joined: Thu Aug 09, 2018 3:17 pm

Re: POG MMDVM firmware compiling error

Post by JA3VQW »

I finally succeeded!
IZ8GUR checked his HEX file and told me it is completely OK.
So I tried again again and MMDVM firm is now
Radio2.jpg
Radio2.jpg (41.91 KiB) Viewed 7557 times
==========================================
Procedure is
1) Rpi ON and
wget https://www.iz8gur.it/downloads/mmdvm_pog/mmdvm.hex
2) Rip OFF and set MMDVM board in BOOT MODE.
3)
rpi-rw

sudo stm32flash -w mmdvm.hex -v /dev/ttyAMA0

(If error occurs try several time to write to 100%)
4) Power off Rip and set MMDVM board to normal mode and Power on Rpi
===========================================
This was very very long struggle.
Thanks very much.See you guys on the air.
Post Reply