Code Monkey home page Code Monkey logo

Comments (7)

alainiamburg avatar alainiamburg commented on May 26, 2024

from sniffrom.

asmitaj08 avatar asmitaj08 commented on May 26, 2024

Hello,
I am getting error like :

~/sniffROM$ python sniffROM.py flashSpiData.csv -o flashData.bin --summary
Parsing SPI data...

Traceback (most recent call last):
File "sniffROM.py", line 663, in
highest_byte+1, args.o, bytes_sniffed, ((bytes_sniffed / float(highest_byte)) * 100.0), bytes_sniffed_written)
ZeroDivisionError: float division by zero

Kindly let me know about this issue.

Regards
Asmita

from sniffrom.

asmitaj08 avatar asmitaj08 commented on May 26, 2024

Hello,
The above error was when I took data for 180 seconds , after taking samples for 120 seconds, I got error as :

~/sniffROM$ python sniffROM.py f1.csv -o flashData.bin --summary
Parsing SPI data...

Traceback (most recent call last):
File "sniffROM.py", line 417, in
elif ((command == 0x03) or # Read
NameError: name 'command' is not defined

from sniffrom.

alainiamburg avatar alainiamburg commented on May 26, 2024

from sniffrom.

asmitaj08 avatar asmitaj08 commented on May 26, 2024

Hello,
I cloned the repository using
git clone https://github.com/alainiamburg/sniffROM.git

Currently I have tried only with this chip. Same error.
~/sniffROM$ python sniffROM.py f1.csv -o flashData.bin -vv
Parsing SPI data...

Traceback (most recent call last):
File "sniffROM.py", line 417, in
elif ((command == 0x03) or # Read
NameError: name 'command' is not defined

The first 40 bytes I am copying here -

Time [s] Packet ID MOSI MISO
2.8868975   0xFF 0x04
2.97137825   0xFF 0x15
2.97140325   0xFF 0x55
2.97142825   0xFF 0x0B
2.97160825   0xFF 0x38
2.97162775   0xFF 0x16
2.9717005   0xFF 0x52
2.97187225   0xFF 0x00
2.97191225   0xFF 0x02
2.97195225   0xFF 0x04
2.97212725   0xFF 0x20
2.97213775   0xFF 0xC9
2.9721805   0xFF 0x21
2.97223025   0xFF 0x5C
2.97240125   0xFF 0x00
2.97244125   0xFF 0x00
2.97248125   0xFF 0x1A
2.9726555   0xFF 0x1F
2.97266925   0xFF 0x88
2.97269175   0xFF 0xF2
2.97275225   0xFF 0xB4
2.9729205   0xFF 0x00
2.9729605   0xFF 0x12
2.97299   0xFF 0xE8
2.97317525   0xFF 0x01
2.97319875   0xFF 0x00
2.97328175   0xFF 0x4B
11.91448775   0xFF 0x03
11.9147025   0xFF 0x39
11.914757   0xFF 0x04
11.914998   0xFF 0x13
11.91522075   0xFF 0x33
11.91545875   0xFF 0xBD
11.91553425   0xFF 0x4F
11.91571775   0xFF 0xFF
11.91579675   0xFF 0xFF
11.91597825   0xFF 0xFF
11.9160045   0xFF 0xFE
11.91623825   0xFF 0x22
11.91624575   0xFF 0x00
11.9163265   0xFF 0x22
11.91650125   0xFF 0x00
11.916541   0xFF 0x00
11.91680075   0xFF 0xF0
11.91687275   0xFF 0x94
11.91703675   0xFF 0xA3
11.9170545   0xFF 0x05
11.917096   0xFF 0x3C
11.9178395   0xFF 0x14

from sniffrom.

alainiamburg avatar alainiamburg commented on May 26, 2024

from sniffrom.

alainiamburg avatar alainiamburg commented on May 26, 2024

closing this due to inactivity

from sniffrom.

Related Issues (3)

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.