This is how I update the CSV file, with FlashDB, under Windows OS!

Hello UHF MD-380 owners... and MANY thanks to Travis and others on the team, for their programming efforts and for their countless hours they have put into this project!

I have been trying to understand why I was only able to perform a "make flashdb" one time under Windows and transfer the CSV file into the MD-380. Over the past month, I have tried many approaches to the way I installed then de-installed the USB driver, but with no success... until last weekend. I have been testing this on different Tytera radios, and I believe I have found a way to issue a "make flashdb" and reliably flash the 16MB SPI Flash in the UHF MD-380... via Windows.

I have performed this on 3 different MD-380s and repeated several updated CSV installs on each, running both the older (patched v2.032) and newer (patched D13.020) firmware versions. (Please note, I have skipped many steps and hopefully most users will follow what I am trying to state below.)

Normally, I would obtain either one of the following two responses when issuing a "./md380-tool spiflashid" command in a MINGW32 window:



# 1.  SPI Flash ID: 10 dc 1 (...when patched firmware v2.032 is installed)
W25Q128FV 16MByte maybe

~ or ~

# 2.  SPI Flash ID: 70 f1 1 (..when patched firmware vD13.020 is installed)
Unknown SPI Flash - please report can't program spi flash wrong flash type

I have found that unless you receive the following response, you will not be successful in erasing then writing to the SPI Flash:
SPI Flash ID: ef 40 18
W25Q128FV 16MByte

As others have stated, they can not erase or write a new UsersCSV database to their MD-380 under Windows reliably. Here is the process that works for me under WinXP:

1. With either patched firmware v2.032 or D13.020 installed in your radio...


2. run Zadig, and install libusb-win32 (v1.2.6.0) or (libusb-win32 from: https://sourceforge.net/projects/libusb-win32/ as described in MD380tools / Windows-instructions.txt)
Once the driver is installed you will see that if you issue a ./md380-tool spiflashid command, you will received either a # 1 or #2 from the above responses.

3. Now, execute the "testlibusb-win.exe" file, then click on the Refresh button at the bottom of the popup window. (Note this file is located in the libusb-win32-bin-1.2.6.0\bin\x86 folder). Once you click on the Refresh button you will find that if you again issue a ./md380-tool spiflashid command in the MINGW32 window, you will receive the proper response from the radio:
SPI Flash ID: EF 40 18
W25Q128FV 16MByte

Now you can issue a make flashdb and your CSV file will be properly installed into the SPI Flash. (remember to perform a "make clean all" in your md380tools/db folder, to update the "users.csv" file)

Note: I have just tested this process with the latest commit, 4779096 (2016-09-18) and it works flawlessly. I can not tell you why executing the "testlibusb-win.exe" file then clicking on the Refresh button changes the SPI Flash ID. Maybe it sets or resets the USB port parameters, thereby properly preparing it to accept data. (Also, I really like the new full screen CSV data display. It is much easier to read, than the original green pop-up window. I also like that the callsign is in a larger and bold font as well - thank you!)

I am writing this because I am sure the MD380tools group will see what is happening and use it to improve the repeatability for Windows users to reliably install the CSV files into the SPI Flash... :-)

Thank you again and take care,
73, N6YN - Ed
n6y @yahoo.com

1 comment:

3 said...

What I have discovered is that once you load the md380tools firmware into the radio it is no longer possible to use the Tytera codeplug editor (CPS) software to write the codeplug into the radio. You can use CPS or any other program you like to edit the codeplug file (codeplugname.rdt) but cannot use it to load the file into the radio.

Once you have loaded the md380tools firmware into your radio you need to use the md380-dfu utility to load the codeplug. The md380-dfu utility is in the md380tools directory. To load the codeplug right-click the md380tools directory and select the Git BASH shell. From the BASH prompt use the command "md380-dfu write (codeplug.rdt)" where (codeplug.rdt) is the codeplug name including the .rdt extension.

Post a Comment

Thanks for your comments, Comments may take a day to show up

A discussion group about this subject.

Digital Ham Radio / Amateur Radio
DigitalHamRADIO@groups.io
https://groups.io/g/DigitalHamRADIO

Amateur Radio Users Support Group
AmateurRadio@groups.io
https://groups.io/g/AmateurRadio

Note: only a member of this blog may post a comment.