[Resolved] DFU mode wount stay on
[Resolved] DFU mode wount stay on
Hi all
Just starting getting this error, when i set my GD77 in DFU mode, it stays there for a couple off seconds, and then goes back into normal mode, i can read the radio and programe it in the CPS, and see the com port, but not getting it into firmware mode and staying in there, i use not the latest but that one before firmware ... any solutions on that ?
All the best
Hardy OZ1MAX
Just starting getting this error, when i set my GD77 in DFU mode, it stays there for a couple off seconds, and then goes back into normal mode, i can read the radio and programe it in the CPS, and see the com port, but not getting it into firmware mode and staying in there, i use not the latest but that one before firmware ... any solutions on that ?
All the best
Hardy OZ1MAX
Re: DFU mode wount stay on
I've never heard of this problem before.OZ1MAX wrote: ↑Fri Aug 11, 2023 9:53 amHi all
Just starting getting this error, when i set my GD77 in DFU mode, it stays there for a couple off seconds, and then goes back into normal mode, i can read the radio and programe it in the CPS, and see the com port, but not getting it into firmware mode and staying in there, i use not the latest but that one before firmware ... any solutions on that ?
All the best
Hardy OZ1MAX
i.e WIth the radio disconnected from the PC, the radio will not stay in the bootloader ?
The only similar thing is that official firmware can prevent the radio entering the bootloader, but your problem sounds different if the radio stays in the bootloader for a few seconds
Is the radio definitely in the bootloader ?
Re: DFU mode wount stay on
Sounds like a protection bytes problem to me.
Re: DFU mode wount stay on
Is this a radio you have already installed OpenGD77 previously?OZ1MAX wrote: ↑Fri Aug 11, 2023 9:53 amHi all
Just starting getting this error, when i set my GD77 in DFU mode, it stays there for a couple off seconds, and then goes back into normal mode, i can read the radio and programe it in the CPS, and see the com port, but not getting it into firmware mode and staying in there, i use not the latest but that one before firmware ... any solutions on that ?
All the best
Hardy OZ1MAX
Re: DFU mode wount stay on
.. yes the radio have had OPGD77 all the time, just vanted to put the new firmware on it, but it dosent stay in DFU mode, havent programed it with anything else than the firmware in here, usually it always have worked without problems, but this time it played a game with me but as i said i can programe it via CPS read and write the Codeplug no problems ..
Re: DFU mode wount stay on
The read the MCU ROM using the CPS zip it and email it to me.OZ1MAX wrote: ↑Fri Aug 11, 2023 1:19 pm.. yes the radio have had OPGD77 all the time, just vanted to put the new firmware on it, but it dosent stay in DFU mode, havent programed it with anything else than the firmware in here, usually it always have worked without problems, but this time it played a game with me but as i said i can programe it via CPS read and write the Codeplug no problems ..
Address is on QRZ.com
Re: DFU mode wount stay on
Roger ..
Thanks in advange for taking a peak on it ...have sendt you a mail ....
Hardy
Thanks in advange for taking a peak on it ...have sendt you a mail ....
Hardy
Re: DFU mode wount stay on
I received you email
Unfortunately the last page of the MCU internal ROM, address seems to be full of random data
Your data looks like this.
The data should look something like this
Unfortunately due to the insane copy protection in the bootloader, the bootloader will no longer allow you to update the radio, becuase the data at 0x7F800 does not match the unique signature bytes in the CPU
The only solution we have for this is to open the radio and connect some wires to the PCB and reflash the MCU using a device like a JLink Edu mini etc
Do you know anyone with a programmer dongle ??
If not I think the only option would be to buy one.
There are cleap clones on AliExpress, but they don't always work.
Or if you have a STM32F103 board I think its possible to make your own Jlink
Unfortunately the last page of the MCU internal ROM, address seems to be full of random data
Your data looks like this.
Code: Select all
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0007F7F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F800 50 29 2A 04 64 38 00 41 40 4E 10 73 C2 4D 60 AC P)*.d8.A@N.sÂM`¬
0007F810 19 41 54 E2 89 CE 00 72 B5 88 85 1F 28 B1 E0 84 .ATâ‰Î.rµˆ….(±à„
0007F820 04 12 00 64 5D C6 F1 9D 0D 3A 20 6C D6 F2 E3 FF ...d]Æñ..: lÖòãÿ
0007F830 F0 E8 A7 B4 4F 81 94 A0 3E F1 A4 BC 33 C0 19 21 ð觴O.” >ñ¤¼3À.!
0007F840 42 25 18 3B 9C 24 9F FC 1E D2 5A 00 0B 9B 4F DA B%.;œ$Ÿü.ÒZ..›OÚ
0007F850 B1 94 5A 75 02 62 65 6D 84 D2 FB 99 48 E0 B9 73 ±”Zu.bem„Òû™Hà¹s
0007F860 AC 9C BF 2A 1F 86 21 6F EF E3 E0 7E 96 5E 41 7C ¬œ¿*.†!oïãà~–^A|
0007F870 6B A7 22 FF 75 72 55 78 83 30 BE AC C0 5E BA B9 k§"ÿurUxƒ0¾¬À^º¹
0007F880 8D DB B1 1A AC 12 30 9E 30 E5 DA 3F A3 05 9E DE .Û±.¬.0ž0åÚ?£.žÞ
The data should look something like this
Code: Select all
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0007F7F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F800 27 F8 3B 14 D7 90 9B 68 62 8E 31 BF D7 C4 09 28 'ø;.×.›hbŽ1¿×Ä.(
0007F810 1E 53 FF FF BD FF 0E FC F5 BF D4 FF BA B1 8A BB .Sÿÿ½ÿ.üõ¿Ôÿº±Š»
0007F820 04 B2 00 64 FF FF FF FF FF FF FF FF FF FF FF FF .².dÿÿÿÿÿÿÿÿÿÿÿÿ
0007F830 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F840 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F850 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F860 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F870 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F880 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F890 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F8A0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
0007F8B0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
The only solution we have for this is to open the radio and connect some wires to the PCB and reflash the MCU using a device like a JLink Edu mini etc
Do you know anyone with a programmer dongle ??
If not I think the only option would be to buy one.
There are cleap clones on AliExpress, but they don't always work.
Or if you have a STM32F103 board I think its possible to make your own Jlink
Re: DFU mode wount stay on
Thanks Roger.
I´ve ordred a J-Link now, so i´ll see if i can get it to work again ..
Thanks
Hardy de OZ1MAX
I´ve ordred a J-Link now, so i´ll see if i can get it to work again ..
Thanks
Hardy de OZ1MAX
Re: DFU mode wount stay on
ok.
you will need the patched bootloader , which i made, which can be downloaded from here
https://opengd77.com/downloads/patched_bootloaders/