Closed silseva closed 3 years ago
Can you attach the output of --fw-info
command also?
Yep! Here you are:
== TYT Firmware ==
Radio: JST51 (MD380)
Size: 116.51 KiB
Data Segments:
0: Start=0x0800c000, Length=0x0001d208
Yea looks like its not including the padding
https://github.com/v0l/radio_tool/blob/master/src/tyt_radio.cpp#L77
Pretty simple fix will try to get it done today
I think it might have just been a rounding issue, can you try the latest build?
https://github.com/v0l/radio_tool/commit/e60aad100f35fbf3ff24e6c359e4c5f03e67a45b
Hi @v0l, I have tried commit 8601ac2883f6d67a99f6ac047045d04155f582d6 of radio_tool by flashing OpenRTX on an UV380 and it works correctly, compared to the previous version I was using.
I'm working with @silseva to double check the fix with a flash dump
Hi! After updating radio_tool the binary image stored in radio's flash matches the one produced by the compiler, so I think we can consider the bug solved. In a couple of weeks I'll do more rigorous testing, but I'm quite sure that there will be no surprises.
Thanks and 73 de Silvano IU2KWO
Hi @v0l, we found a nasty bug in radio_tool: for some reasons, when uploading a binary image to an MD-380/MD-UV380 not all the content is transferred into the flash, resulting in a truncated content inside the MCU flash. Comparing the content of the flash, the binary image is truncated starting from an offset of 0x1D000 from the beginning of the image, while the output of radio_tool is the following:
My hypothesis is that radio_tool does not correctly handle partial writing to a page. Do you have any ideas? I'm attaching here both the original binary image and the dump from flash, for reference.
original_bin_dump.txt flash_dump.txt