forked from jhoenicke/Hantek6022API
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring; move firmware code out of python module
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
- Loading branch information
Showing
207 changed files
with
11,804 additions
and
1,720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# About the firmware | ||
The 6022BE (and 6022BL) has only limited persistent storage so the firmware must be uploaded to the device's RAM | ||
every time the oscilloscope is powered up. | ||
The dump of the packet transfer to the 6022BE was captured by [Robert](https://github.com/rpcope1/Hantek6022API) | ||
and is given as `firmware_packet_dump.csv` and was used by him to build the **stock_firmware** in this module. | ||
|
||
This stock version was later analysed and improved by [Jochen](https://github.com/jhoenicke/Hantek6022API) | ||
and Robert to create the two **mod_firmware** versions. | ||
Without source code this was a not so easy task - good work! | ||
If you're interested in the details read the huge EEVBLOG thread, this is a | ||
[good starting point](https://www.eevblog.com/forum/testgear/hantek-6022be-20mhz-usb-dso/msg656059/#msg656059). | ||
|
||
The original custom firmware (for 6022BE) is based on fx2lib code. The latest version also allows reading/writing of EEPROMs and thus has all features like the stock and modded versions and allows an easy implementation of new features. | ||
|
||
My project [OpenHantek6022](https://github.com/OpenHantek/OpenHantek6022) uses the improved final versions [DSO6022BE](https://github.com/Ho-Ro/Hantek6022API/tree/master/PyHT6022/Firmware/DSO6022BE), [DSO6022BL](https://github.com/Ho-Ro/Hantek6022API/tree/master/PyHT6022/Firmware/DSO6022BL) and [DDS120](https://github.com/Ho-Ro/Hantek6022API/tree/master/PyHT6022/Firmware/DDS120) for the currently supported scope variants. These FWs provide more sampling rates (20 kS/s .. 30 MS/s) and more calibration-out frequencies as well as support for AC/DC coupling (small HW mod requred for Hantek scopes). | ||
|
||
Provided are different FW flavours as part of the python package: | ||
|
||
| **Name** | **Path** | **Comment** | | ||
|--------------------|------------------------------|------------------------------------------------------------------| | ||
| stock_firmware | stock/stock_fw.ihex | Firmware that was originally uploaded to the device by vendor SW | | ||
| mod_firmware_01 | modded/mod_fw_01.ihex | Patched stock firmware with sample rate and stability improvements | | ||
| mod_firmware_iso | modded/mod_fw_iso.ihex | Patched stock firmware that allows isochronous transfer (instead of bulk) | | ||
| dso6022be_firmware | DSO6022BE/dso6022be-firmware.hex | backported from sigrok-fw | | ||
| dso6022bl_firmware | DSO6022BL/dso6022bl-firmware.hex | backported from sigrok-fw | | ||
| dds120_firmware | DDS120/dds120-firmware.hex | backported from sigrok-fw | | ||
|
||
Default: | ||
firmware = default_firmware = dso6022be_firmware |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
*~ | ||
.*~ | ||
*.orig | ||
*.new | ||
*.asm | ||
*.rel | ||
*.lst | ||
*.sym | ||
*.adb | ||
*.cdb | ||
*.ihx | ||
*.bix | ||
*.rst | ||
*.mem | ||
*.map | ||
*.lnk | ||
*.kpf | ||
*.swp | ||
*.iic | ||
docs/html | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
0.2 | ||
* Change I2C routines to return FALSE intead of infinite loop possibility. | ||
* Addition of fx2load script to load eeprom information. | ||
* EEprom upload/download example. | ||
* New SETUP_TYPE macro | ||
* Removed printfs from setupdat module. | ||
* Add usb "other speed" descriptor handling to setupdat | ||
* Support for usb suspend/wakeup | ||
* Enhanced renumerate macro to handle properly when loading from eeprom | ||
* Addition of framework files. Allows quick starting of new firmware projects. | ||
* ihx2iic helper script. Allows easy converting of ihx files to iic for | ||
loading to eeprom. | ||
* New GPIF macros to set TC with 16 or 32 bit values. | ||
* Addtional enable/disable macros for endpoint interrupts. | ||
* Additional ep0 utilities (writeep0) | ||
* Additional i2c write functionality for i2c parts requiring different | ||
address width's or even no address data. | ||
* Correct fx2 register documentation. | ||
* Addition of serial io example. | ||
* Added cancel_i2c_trans extern bool to allow canceling a blocked i2c transaction. | ||
* FX1 development board debug light addresses. | ||
* Various other minor bug fixes/optimizations. | ||
* remove usbjt.h. In place, use autovector.h. jump table routines no longer | ||
need defined in your firmware. fx2.lib contains default routines. Override | ||
them with interrupt handlers you want to handle. | ||
* added fx2ints.h. Interrupt numbers/macros for standard fx2 interrupts. | ||
* added timer example | ||
* Moved examples and firmwware framework to use common lib/fx2.mk Makefile. | ||
fx2.mk can be easily adapted for any firmware project. | ||
|
||
0.1 | ||
* Initial Release. |
Oops, something went wrong.