Coder Social home page Coder Social logo

mxt_config_crc's Introduction

Enviroment:

Install Python: https://www.python.org/downloads/

After installation, run python in command line:

python -m pip install pandas

usage: xparse [-h] [--version] [-f [XCFG]] [-s [DIR]] [-db [DATABASE]] [-v {0,1,2,3,4}]

Tools for parsing maxTouch config and calculating config crc

Namespace(filename='', raw=False, sep=None, scan='', database='db_header.csv', verbose=1, output=1) usage: Maxtouch Config calculator [-h] [--version] [-f [XCFG|TXT]] [-r] [-sep [SEP]] [-s [DIR]] [-db [DATABASE]] [-v {0,1,2,3,4}] [-o {1,3}]

Tools for parsing maxTouch config and calculating config crc

options:

-h, --help            show this help message and exit
--version             show version
-f [XCFG|TXT], --filename [XCFG|TXT]
                    where the 'XCFG|TXT' file will be load (default: )
-r, --raw             whether save out a 'RAW' file (default: False)
-sep [SEP], --sep [SEP]
                    Delimiters for 'Raw Block' split() to data (default: None)
-s [DIR], --scan [DIR]
                    Path will be scanned to build chip Info Block database (default: )
-db [DATABASE], --database [DATABASE]
                    load chip Info Block database (default: db_header.csv)
-v {0,1,2,3,4}, --verbose {0,1,2,3,4}
                    set debug verbose level[0-5] (default: 1)
-o {1,3}, --output {1,3}
                    set the output config file version (default: 1)

e.g. run in python command line:

python runstat.py -f test.xcfg --raw

Namespace(filename='test.xcfg', raw=True, sep=None, scan='', database='db_header.csv', verbose=1, output=1) ("Found Non-Number value at line: PRODUCT_ID=TBD, Error = invalid literal for int() with base 0: 'TBD'. Set Value to 0",)

('Start address is T14, addr 415 offset 194',)

('CRC: calculate=B277E4, cfg=BA8CF0 (mismatch) X X X',)

('Use Calculated CRC (B277E4) overwrite File CRC(BA8CF0)',)

('Save xcfg file to: D:\Users\a41450\PycharmProjects\config_crc\test.rebuild(v1)_at.20221027_115717.crc_0xB277E4.xcfg',)

('Save raw file to: D:\Users\a41450\PycharmProjects\config_crc\test.rebuild(v1)_at.20221027_115717.crc_0xB277E4.raw',)

Note: For v1 version config, there is not X/Ysize information, need scan the director first with '-s'

mxt_config_crc's People

Contributors

pitterl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.