henols / firestarter

MIT License
5 stars 2 forks source link

Issues with AT28C256 Reading / Writing #10

Open datapaganism opened 3 weeks ago

datapaganism commented 3 weeks ago

Hello I have bought the relatively universal programmer and did the rev 2 mod on mine, I am running the latest FW at the moment and am I having problems flashing / reading from the board

I have a file called 1.bin which is 32Kb of random data, and another which is a dump from the Chip after I flash it

image

Reading the eeprom after writing to it reveals that only some of it has been properly burned.

20240926_192523

Is the setup of my programmer, I believe I have set the jumpers correctly.

Given that I can burn and read it, its not 100% dead is it?

log is

PS D:\dev\firestarter-1.0.13> firestarter write at28c256 .\1.bin
Writing to chip: AT28C256
Connected to programmer
Reading from input file: .\1.bin
Sending file .\1.bin in blocks of 512 bytes
100%, address: 0x7E00 - 0x8000
File sent successfully in 339.49 seconds
PS D:\dev\firestarter-1.0.13> firestarter read at28c256
Reading chip: AT28C256
Connected to programmer
Output will be saved to: AT28C256.bin
100%, address: 0x7E00 - 0x8000
Finished reading data
Data received in 7.10 seconds

Am I doing something wrong?

henols commented 2 weeks ago

Try to update FW and app and give it another shot. Get back if the issue is still there.

On Thu, 26 Sept 2024, 20:28 Alen Karnil, @.***> wrote:

Hello I have bought the relatively universal programmer and did the rev 2 mod on mine, I am running the latest FW at the moment and am I having problems flashing / reading from the board

I have a file called 1.bin which is 32Kb of random data, and another which is a dump from the Chip after I flash it

image.png (view on web) https://github.com/user-attachments/assets/a47f7aae-9298-4cc0-8913-10b5c88235b6

Reading the eeprom after writing to it reveals that only some of it has been properly burned.

20240926_192523.jpg (view on web) https://github.com/user-attachments/assets/43b5dbb2-e804-4e8d-9168-151b2597c4ae

Is the setup of my programmer, I believe I have set the jumpers correctly.

Given that I can burn and read it, its not 100% dead is it?

log is

PS D:\dev\firestarter-1.0.13> firestarter write at28c256 .\1.bin Writing to chip: AT28C256 Connected to programmer Reading from input file: .\1.bin Sending file .\1.bin in blocks of 512 bytes 100%, address: 0x7E00 - 0x8000 File sent successfully in 339.49 seconds PS D:\dev\firestarter-1.0.13> firestarter read at28c256 Reading chip: AT28C256 Connected to programmer Output will be saved to: AT28C256.bin 100%, address: 0x7E00 - 0x8000 Finished reading data Data received in 7.10 seconds

Am I doing something wrong?

— Reply to this email directly, view it on GitHub https://github.com/henols/firestarter/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJAYZWJHRZKW5PQGXRLCTZYRG37AVCNFSM6AAAAABO5TFGEGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2TCMRXGA2TIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

datapaganism commented 2 weeks ago

Cannot update to 1.1.20

PS D:\dev\firestarter-1.0.13> pip install firestarter==1.1.20
Collecting firestarter==1.1.20
  Using cached firestarter-1.1.20-py3-none-any.whl.metadata (8.1 kB)
Collecting argparse (from firestarter==1.1.20)
  Using cached argparse-1.4.0-py2.py3-none-any.whl.metadata (2.8 kB)
Requirement already satisfied: pyserial in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from firestarter==1.1.20) (3.5)
Requirement already satisfied: requests in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from firestarter==1.1.20) (2.32.3)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (2.2.3)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (2024.8.30)
Using cached firestarter-1.1.20-py3-none-any.whl (64 kB)
Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Installing collected packages: argparse, firestarter
  Attempting uninstall: firestarter
    Found existing installation: firestarter 1.1.18
    Uninstalling firestarter-1.1.18:
      Successfully uninstalled firestarter-1.1.18
Successfully installed argparse-1.4.0 firestarter-1.1.20
PS D:\dev\firestarter-1.0.13> firestarter
Traceback (most recent call last):
  File "c:\users\afk\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\afk\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\afk\AppData\Local\Programs\Python\Python38\Scripts\firestarter.exe\__main__.py", line 4, in <module>
  File "c:\users\afk\appdata\local\programs\python\python38\lib\site-packages\firestarter\main.py", line 22, in <module>
    from . import ic_layout as ic
  File "c:\users\afk\appdata\local\programs\python\python38\lib\site-packages\firestarter\ic_layout.py", line 167
    print(f"Flags Value: 0x{eprom["flags"]:08X}")
                                   ^
SyntaxError: invalid syntax
PS D:\dev\firestarter-1.0.13>
henols commented 2 weeks ago

Thanks will fix that asap

On Thu, 3 Oct 2024, 09:06 Alen Karnil, @.***> wrote:

Cannot update to 1.1.20

PS D:\dev\firestarter-1.0.13> pip install firestarter==1.1.20 Collecting firestarter==1.1.20 Using cached firestarter-1.1.20-py3-none-any.whl.metadata (8.1 kB) Collecting argparse (from firestarter==1.1.20) Using cached argparse-1.4.0-py2.py3-none-any.whl.metadata (2.8 kB) Requirement already satisfied: pyserial in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from firestarter==1.1.20) (3.5) Requirement already satisfied: requests in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from firestarter==1.1.20) (2.32.3) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (2.2.3) Requirement already satisfied: certifi>=2017.4.17 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (2024.8.30) Using cached firestarter-1.1.20-py3-none-any.whl (64 kB) Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB) Installing collected packages: argparse, firestarter Attempting uninstall: firestarter Found existing installation: firestarter 1.1.18 Uninstalling firestarter-1.1.18: Successfully uninstalled firestarter-1.1.18 Successfully installed argparse-1.4.0 firestarter-1.1.20 PS D:\dev\firestarter-1.0.13> firestarter Traceback (most recent call last): File "c:\users\afk\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\afk\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\afk\AppData\Local\Programs\Python\Python38\Scripts\firestarter.exe__main__.py", line 4, in File "c:\users\afk\appdata\local\programs\python\python38\lib\site-packages\firestarter\main.py", line 22, in from . import ic_layout as ic File "c:\users\afk\appdata\local\programs\python\python38\lib\site-packages\firestarter\ic_layout.py", line 167 print(f"Flags Value: 0x{eprom["flags"]:08X}") ^ SyntaxError: invalid syntax PS D:\dev\firestarter-1.0.13>

— Reply to this email directly, view it on GitHub https://github.com/henols/firestarter/issues/10#issuecomment-2390676757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJAYZMBXXA5IHT6IZD4CDZZTUGNAVCNFSM6AAAAABO5TFGEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGY3TMNZVG4 . You are receiving this because you commented.Message ID: @.***>

henols commented 2 weeks ago

A new release is created. Please update the Python app.

pip upgrade firestarter

On Thu, 3 Oct 2024 at 10:01, Henrik Olsson @.***> wrote:

Thanks will fix that asap

On Thu, 3 Oct 2024, 09:06 Alen Karnil, @.***> wrote:

Cannot update to 1.1.20

PS D:\dev\firestarter-1.0.13> pip install firestarter==1.1.20 Collecting firestarter==1.1.20 Using cached firestarter-1.1.20-py3-none-any.whl.metadata (8.1 kB) Collecting argparse (from firestarter==1.1.20) Using cached argparse-1.4.0-py2.py3-none-any.whl.metadata (2.8 kB) Requirement already satisfied: pyserial in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from firestarter==1.1.20) (3.5) Requirement already satisfied: requests in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from firestarter==1.1.20) (2.32.3) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (2.2.3) Requirement already satisfied: certifi>=2017.4.17 in c:\users\afk\appdata\local\programs\python\python38\lib\site-packages (from requests->firestarter==1.1.20) (2024.8.30) Using cached firestarter-1.1.20-py3-none-any.whl (64 kB) Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB) Installing collected packages: argparse, firestarter Attempting uninstall: firestarter Found existing installation: firestarter 1.1.18 Uninstalling firestarter-1.1.18: Successfully uninstalled firestarter-1.1.18 Successfully installed argparse-1.4.0 firestarter-1.1.20 PS D:\dev\firestarter-1.0.13> firestarter Traceback (most recent call last): File "c:\users\afk\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\afk\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\afk\AppData\Local\Programs\Python\Python38\Scripts\firestarter.exe__main__.py", line 4, in File "c:\users\afk\appdata\local\programs\python\python38\lib\site-packages\firestarter\main.py", line 22, in from . import ic_layout as ic File "c:\users\afk\appdata\local\programs\python\python38\lib\site-packages\firestarter\ic_layout.py", line 167 print(f"Flags Value: 0x{eprom["flags"]:08X}") ^ SyntaxError: invalid syntax PS D:\dev\firestarter-1.0.13>

— Reply to this email directly, view it on GitHub https://github.com/henols/firestarter/issues/10#issuecomment-2390676757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJAYZMBXXA5IHT6IZD4CDZZTUGNAVCNFSM6AAAAABO5TFGEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJQGY3TMNZVG4 . You are receiving this because you commented.Message ID: @.***>

--

Work greener, don't print unless you need to!

datapaganism commented 2 weeks ago

Updated firestarter but got the same result Here is my powershell log

PS D:\dev\firestarter-1.0.13> firestarter write at28c256 .\1.bin
Writing to chip: AT28C256
Connected to programmer
Reading from input file: .\1.bin
Sending file .\1.bin in blocks of 512 bytes
100%, address: 0x7E00 - 0x8000
File sent successfully in 340.03 seconds
PS D:\dev\firestarter-1.0.13> firestarter read at28c256
Reading chip: AT28C256
Connected to programmer
Output will be saved to: AT28C256.bin
100%, address: 0x7E00 - 0x8000
Finished reading data
Data received in 7.23 seconds
henols commented 2 weeks ago

Have youi updated th FW? firestarter fw --install

datapaganism commented 2 weeks ago

It was on 1.1.1 or something

On Fri, 4 Oct 2024, 09:01 Henrik Olsson, @.***> wrote:

Have youi updated th FW? firestarter fw --install

— Reply to this email directly, view it on GitHub https://github.com/henols/firestarter/issues/10#issuecomment-2393082500, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLMRVLJAE5MLEQFQLZE4O3ZZZDMTAVCNFSM6AAAAABO5TFGEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJTGA4DENJQGA . You are receiving this because you authored the thread.Message ID: @.***>