Giter Club home page Giter Club logo

Comments (16)

aeickho avatar aeickho commented on July 19, 2024 1

please fetch the branch ... some additional function added: flash exclusive now

from md380tools.

travisgoodspeed avatar travisgoodspeed commented on July 19, 2024

Howdy Alex!

The UHF model of the MD380 usually has a 16MByte W25Q128FV chip, but the VHF model carries a smaller 1MByte chip. Your radio has a model that we haven't seen before. Congratulations!

Could you send us some photos of your radio, or tell us more about its branding (Tytera/Retevis/TYT/NKTech/etc)?

We'll add your chip to the table in short order.

--Travis

from md380tools.

oe3jtb avatar oe3jtb commented on July 19, 2024

Hi Travis
tnx for the fast answer
so here it is
http://i.imgur.com/iziTKSt.jpg
http://i.imgur.com/Sqv3V9l.jpg
tnx
kind regards
Alex

from md380tools.

dg3yjb avatar dg3yjb commented on July 19, 2024

Hello,
the same problem is here.
Branding is Tytera.

img_6313

from md380tools.

rct avatar rct commented on July 19, 2024

Just curious does that model ID make it into the .rdt or bare code plug?

from md380tools.

dg3yjb avatar dg3yjb commented on July 19, 2024

A Screenshot from the original tyter MD-380 programming tool
md-380

from md380tools.

aeickho avatar aeickho commented on July 19, 2024

corr python error with: c52cd06

from md380tools.

aeickho avatar aeickho commented on July 19, 2024

I can't find this spi flash id ... one solution see: @travisgoodspeed #66 try and error to detect the spi-flash size.

from md380tools.

oe3jtb avatar oe3jtb commented on July 19, 2024

0501-2

Took a photo with my electronic microscope, should be the 16MB, but with other ID

from md380tools.

aeickho avatar aeickho commented on July 19, 2024

On e06be0f
branch: https://github.com/aeickho/md380tools/tree/next_spi_flash

is a test version with interpret Flash ID: 10 dc 1 as 16MByte spi flash chip

from md380tools.

oe3jtb avatar oe3jtb commented on July 19, 2024

Hi
did a new clone
git clone https://github.com/aeickho/md380tools.git

and than the same as before
now the output from
./md380-tool spiflashwrite data 0x100000
is

SPI Flash ID: 10 dc 1
can't programm spi flash wrong flash type

from md380tools.

aeickho avatar aeickho commented on July 19, 2024

git clone https://github.com/aeickho/md380tools.git
git checkout next_spi_flash # to switch on next_spi_flash branch

make clean

and than the same as before
now the output from
./md380-tool spiflashwrite data 0x100000
is

from md380tools.

oe3jtb avatar oe3jtb commented on July 19, 2024

ok tnx

so in line 342 there is in my opinion a typing error
def flashgetid(dfu):
size=0;
buf=dfu.spiflashgetid();
print "SPI Flash ID: %x %x %x"%(buf[0],buf[1],buf[2])
if (buf[0] == 0xef and buf[1] == 0x40):
if (buf[2] == 0x18):
sys.stdout.write("W25Q128FV 16MByte\n");
size=16_1024_1024;
elif (buf[2] == 0x14):
sys.stdout.write("W25Q80BL 1MByte\n");
size=1_1024_1024;
elif (buf[0] == 0x10 and buf[1] == 0xdc):
if (buf[2] == 0x01):
sys.stdout.write("W25Q128FV 16MByte maybe\n");
size=16_1024_1024;
else:
sys.stdout.write("Unkown SPI Flash - please report\n");
return size;

in original
elfi (buf[0] == 0x10 and buf[1] == 0xdc):
^^^
I corrected to elif

and run again
after serveral erase
the last lines of the output are

1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 125 11f400 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 126 11f800 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 127 11fc00 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 128 120000 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 129 120400 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 130 120800 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 131 120c00 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 132 121000 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 133 121400 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 134 121800 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 135 121c00 1024
1024
1033
(OK, 0, dfuDNLOAD_IDLE, 0)
2351 136 122000 1024
1024
1033
[Errno 110] Operation timed out

tnx Alex

from md380tools.

aeickho avatar aeickho commented on July 19, 2024

if you repeat flashdb ... stopped it on the same address? you are flashing the complete db?

from md380tools.

oe3jtb avatar oe3jtb commented on July 19, 2024

Bingo !!! all is working fine, uploaded the whole world!!!

TNX
Alex, OE3JTB

from md380tools.

aeickho avatar aeickho commented on July 19, 2024

I'll Patch ... The spiflash type test .. Then I close this issue..

from md380tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.