flowswitch / ht4032l-python

Hantek 4032L python wrapper
GNU General Public License v3.0
4 stars 3 forks source link

Trying to update my Hantek4032 #1

Open etodanik opened 5 years ago

etodanik commented 5 years ago

I'm trying to use these tools to update my Hantek4032.

My current version is:

Probing LibUSB... libusb1 not found
Probing Hantek... ok
Using Hantek Windows driver
Reset...
FPGA version: 4302

When trying to update:

C:\Python27\python.exe fpga_upd.py LA4032_V4304_20180302.bin
Probing LibUSB... libusb1 not found
Probing Hantek... ok
Using Hantek Windows driver
Loading SPI flash loader...
Unsupported flash ID: 20, 20, 13 !
etodanik commented 5 years ago

Same issue happens with the libusb driver. Any assistance would be highly appreciated!

etodanik commented 5 years ago

On second look, that flash ID seems to belong to this guy here: https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/m25p/m25p40.pdf

I tried to flash anyway, and after reporting a successful flash, it seems to have been bricked?

Danichka:ht4032l-python danny$ python2 fpga_upd.py ../ht4032l-fw/fpga_v4304.bin
Probing LibUSB... ok
Using LibUSB driver
Loading SPI flash loader...
MX25L4005 detected
Erasing...
Programming...
Done. Cycle LA power to load new firmware.

After a power cycle the device identifies as Hantek 4032L in Device Manager and sigrok both and even in lsusb in OSX, but fails to actually do anything.

Also, fpga_get_ver.py now says Reset... and seems stuck without actually reporting the device version:

Danichka:ht4032l-python danny$ python2 fpga_get_ver.py
Probing LibUSB... ok
Using LibUSB driver
Reset...

I tried burning various firmware versions, neither worked as of now...

flowswitch commented 5 years ago

Two possible causes: 1. that unsupported flash requires some different handling, so the programming goes wrong or 2. your hardware is different (i.e. other FPGA size) so 4303/4304 bins are incompatible with it.

Try reading out the flash with fpga_dump.py tool and compare the readout with the bin you’ve flashed. Btw, have you read out your original v4302 before update?