N4IRS / MMDVM-Install

Scripts and config files to run the MMDVM on Debian Jessie
41 stars 31 forks source link

STM32-DVM V2a after firmwareupdate not boot #8

Closed df3dt closed 6 years ago

df3dt commented 6 years ago

After Firmwareupdate (no errors) the stm32-dvm board (red V2) not boot. Only blue led (power) is on. Please Help. 73 Uwe DF3DT

N4IRS commented 6 years ago

Check /usr/src/MMDVM/SerialRB.h and make sure the the line reads const uint16_t SERIAL_RINGBUFFER_SIZE = 370U;

Recompile firmware and re-flash

df3dt commented 6 years ago

Hello Steve, thaks for answer. I`m change in SerialRB.h Ringbuffer_size to 340u and recompile and re.flash. The same, blue LED is only on.

N4IRS commented 6 years ago

Are you unable to put the board in bootloader mode?

On 7/6/2018 10:10 AM, df3dt wrote:

Hello Steve, thaks for answer. I`m change in SerialRB.h Ringbuffer_size to 340u and recompile and re.flash. The same, blue LED is only on.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-403045805, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEBPwJ2eUPpbYutk6g-lu5YPLWK19ks5uD2_ygaJpZM4VFQ-c.

df3dt commented 6 years ago

how am I to do?

N4IRS commented 6 years ago

For the STM32-DVM USB Disconnect STM32-DVM from the host Insert JP1 jumper Connect STM32-DVM to the host PWR, ACT and DMR should be lit solid, NOT flashing.

For the STM32-DVM PiHat Shutdown the Raspberry Pi Disconnect power to Raspberry Pi Insert JP1 jumper Power ON the Raspberry Pi PWR, ACT and DMR should be lit solid, NOT flashing.

Are you running Pi-Star with a Pi-Hat?

On 7/6/2018 10:17 AM, df3dt wrote:

Reopened #8 https://github.com/N4IRS/MMDVM-Install/issues/8.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#event-1720380802, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEL6WPR2yzbhdJNr3gfuo3YQUgTt_ks5uD3FcgaJpZM4VFQ-c.

df3dt commented 6 years ago

Ok ok, sorry my english not so good. hi hi Here the board is STM32-DVM USB v2a Disconnect the board set JP1 an connect to USB PWR, ACT and DMR lit solid, NOT flashing After flashing disconnect from USB and JP1 off only blue LED

N4IRS commented 6 years ago

This is with: const uint16_t SERIAL_RINGBUFFER_SIZE = 370U; in SerialRB.h ?

If that is the case, I will have to try it myself this weekend and debug.

Steve

On 7/6/2018 10:26 AM, df3dt wrote:

Ok ok, sorry my english not so good. hi hi Here the board is STM32-DVM USB v2a Disconnect the board set JP1 an connect to USB PWR, ACT and DMR lit solid, NOT flashing After flashing disconnect from USB and JP1 off only blue LED

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-403050180, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEKiOwwk7Jxp_MNa6KkhYahopZNmoks5uD3OogaJpZM4VFQ-c.

df3dt commented 6 years ago

Thanks steve const uint16_t SERIAL_RINGBUFFER_SIZE = 370U; is in to the SerialRB.h I,m looking forward to your answer. Hope, you are successfull. Best regards Uwe DF3DT

vk3amc commented 6 years ago

Hi Steve

I just tried to update fw on red board v2a also and have exactly the same issue as Uwe. Blue led only after firmware update. No errors when makefile. Programmed fine. I used the extra procedure to rename mmdvmhost to mmdvmhost.save. And I did remember to put it back. Followed procedure on MMDVM-Install/STM32-DVM/

David

vk3amc commented 6 years ago

Confirmed:

const uint16_t SERIAL_RINGBUFFER_SIZE = 370U;

Regards David

df3dt commented 6 years ago

Hello David, here with const uint16_t SERIAL_RINGBUFFER_SIZE = 370U; in Serial.RB the same (blue led) No led ramping after power on Regards Uwe

df3dt commented 6 years ago

Sorry no closed

vk3amc commented 6 years ago

I think only you can reopen it Uwe.

N4IRS commented 6 years ago

Guys, For now, use the firmware here. http://dvswitch.org/files/HAM/MMDVM/Version_2_Firmware/ until I have time to troubleshoot what changes were made that broke the firmware.

73, Steve N4IRS

On 07/07/2018 06:33 AM, vk3amc wrote:

I think only you can reopen it Uwe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-403205874, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEHwqvS9MUAyp-zMIV8_QW5xX-kRrks5uEI5xgaJpZM4VFQ-c.

vk3amc commented 6 years ago

Thanks Steve

Do we copy that to /srv/MMDVM-Install/STM32-DVM folder. Sorry for basic questions, it's the first time I've updated firmware.

Regards David

N4IRS commented 6 years ago

For Pi-Hat: Put the board in bootloader mode stm32flash -w file_name.hex -v /dev/ttyAMA0

For USB: Put the board in bootloader mode stm32flash -w file_name.hex -v /dev/ttyUSB0

On 07/07/2018 06:47 AM, vk3amc wrote:

Thanks Steve

Do we copy that to /srv/MMDVM-Install/STM32-DVM folder. Sorry for basic questions, it's the first time I've updated firmware.

Regards David

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-403206834, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEJEihhYB4J1tsD9GaGGyH-XZGN3wks5uEJGogaJpZM4VFQ-c.

df3dt commented 6 years ago

Bingo Steve, thanks for help. STM32 Modem now ok...... +1: fine weekend de DF3DT Uwe

vk3amc commented 6 years ago

Not so much luck here. The STM32 will only stay in boot loader mode for 60 seconds which is not long enough for pi-star to boot and get to SSH.

I'm not a linux person. Any ideas? David

N4IRS commented 6 years ago

Try renaming /etc/mmdvmhost. login gain root access rpi-rw cd /etc mv mmdvmhost mmdvmhost.save poweroff Put board in BL mode.

Steve

On 07/07/2018 09:06 AM, vk3amc wrote:

Not so much luck here. The STM32 will only stay in boot loader mode for 60 seconds which is not long enough for pi-star to boot and get to SSH.

I'm not a linux person. Any ideas? David

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-403214492, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEGqqUcKLIV1wnYisriNBSjFrnLtyks5uELJrgaJpZM4VFQ-c.

vk3amc commented 6 years ago

Thanks Steve

That worked. Pi Star now showing 20180327.

Regards David

N4IRS commented 6 years ago

Good to hear. I'll look into what has changed with the current firmware and ley people know.

Steve

On 07/07/2018 09:41 AM, vk3amc wrote:

Thanks Steve

That worked. Pi Star now showing 20180327.

Regards David

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-403216557, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZENONA7Hj46nwPM_XqrA57MhzgJn6ks5uELqUgaJpZM4VFQ-c.

ct1jib commented 6 years ago

Hi Steve

I do some changes, and try the last MMDVM from GIT because last changes on dapnet use and others. The thing it's not easy for a rookie and the STM32DV Hat dont boot, even with STLink and nothing, roollback and wait for news from you.

Thanks

bi7jta commented 6 years ago

Today I also catch not boot issue , when compile the new code from your github, hope you can fix it soon, thanks very much!

N4IRS commented 6 years ago

Which board? Use the firmware from http://dvswitch.org/files/HAM/MMDVM/Version_2_Firmware/ or http://dvswitch.org/files/HAM/MMDVM/Version_3_Firmware/

On 7/23/2018 2:18 PM, bi7jta wrote:

Today I also catch not boot issue , when compile the new code from your github, hope you can fix it soon, thanks very much!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-407153053, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEMvgM7TMPcQQb8FNhRJnQsUAOOKTks5uJhOFgaJpZM4VFQ-c.

bi7jta commented 6 years ago

Thank you for your quick reply ,I have try, it can boot ,but can not decode data, I guess your compile config.h setting 12MHz, my TCXO is 19.2MHz.

N4IRS commented 6 years ago

Is it a STM32F105 Micro Controller?

On 7/23/2018 2:25 PM, bi7jta wrote:

Thank you for your quick reply ,I have try, it can boot ,but can not decode data, I guess your compile config.h setting 12MHz, my TCXO is 19.2MHz.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-407155224, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEOmsBnDuKEywl1DGmNv_mHVvN8uXks5uJhUxgaJpZM4VFQ-c.

bi7jta commented 6 years ago

Yes,

N4IRS commented 6 years ago

Revert back to this commit https://github.com/g4klx/MMDVM/tree/d6c1bea80ae1fd150111bb7a692bb5320f3beed0 Edit the config to match your board and make: make -f Makefile.CMSIS

73, Steve N4IRS

On 7/23/2018 2:29 PM, bi7jta wrote:

Yes,

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-407156211, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEDc2kgjNm0kK464BPeFKENPNL37Xks5uJhX1gaJpZM4VFQ-c.

N4IRS commented 6 years ago

Make sure you replace the SerialRB.h

On 7/23/2018 2:29 PM, bi7jta wrote:

Yes,

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-407156211, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEDc2kgjNm0kK464BPeFKENPNL37Xks5uJhX1gaJpZM4VFQ-c.

bi7jta commented 6 years ago

Thank you very much, when I replace https://github.com/g4klx/MMDVM/blob/master/SerialRB.h ,the same result, I use the SCH from https://github.com/wojciechk8/MMDVM_pog ,and work with Raspberry Pi GPIO and USB. I will try again. I compile use your script(20180223) in this github, can boot and work well. I compare all your commit after 20180223, just find add SerialRB.h. Thanks for your help.

de bi7jta.

bi7jta commented 6 years ago

Hi N4IRS, follow your guide " Revert back to this commit https://github.com/g4klx/MMDVM/tree/d6c1bea80ae1fd150111bb7a692bb5320f3beed0 Make sure you replace the SerialRB.h Edit the config to match your board and make: make -f Makefile.CMSIS " It work ! Thank again. By the way ,if I want to compile new version of MMDVM(G4KLX) code, use POCSAG feature, what should I do? Sorry for bother.

de bi7jta,73!

N4IRS commented 6 years ago

The latest version of MMDVM with POCSAG does not work with the STM32F105

On 07/27/2018 01:26 AM, bi7jta wrote:

Hi N4IRS, follow your guide " Revert back to this commit https://github.com/g4klx/MMDVM/tree/d6c1bea80ae1fd150111bb7a692bb5320f3beed0 Make sure you replace the SerialRB.h Edit the config to match your board and make: make -f Makefile.CMSIS " It work ! Thank again. By the way ,if I want to compile new version of MMDVM(G4KLX) code, use POCSAG feature, what should I do? Sorry for bother.

de bi7jta,73!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/N4IRS/MMDVM-Install/issues/8#issuecomment-408315227, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZZEKThL0STkUI2kyFDQ-Xh7WpABupYks5uKqSHgaJpZM4VFQ-c.