Python Forum
programming external 93C66 EEPROM with Arduino UNO
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
programming external 93C66 EEPROM with Arduino UNO
#1
Hi everyone,
I am very new to all this and still figuring it all out.

so far I have programmed my Arduino with a sketch for reading/writing of M93Cx6 eeproms
and also have Python scripts set up for automation of reading/writing,
but the script for writing halts at

"INFO:state - Ready.

here is the web page I've been following.

https://github.com/RiLights/Nissan_skyli.../README.md

I have been able to dump the ROM to a .Bin from the EEPROM but cannot write to it with a new modified file. bellow is the python script I am using to write the eeprom with
//////////////////////////////////////////////////////////////////////////////////
import sys
import argparse

from sky_setup import logging,serial_port

parser = argparse.ArgumentParser()
parser.add_argument ("-i", "--input", dest='input_dump', default='temp_eeprom.bin', type=str);
args = parser.parse_args()

if args.input_dump:
    bytedata=[]
    input_dump = args.input_dump
    with open(input_dump, "rb") as f:
        byte = f.read(2)
        while byte != "":
            # Do stuff with byte.
            if byte:
                bytedata.append(byte)

            byte = f.read(2)

    serial_port.write('w')
    logging.info('State - {}'.format(serial_port.readline()))


    for i in bytedata:
        serial_port.write(i)
        logging.debug('Byte: {}'.format(serial_port.readline()))
    logging.info('State - {}'.format(serial_port.readline()))
    serial_port.close()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  programming OpenOffice with External Python Project bobthebuilder44 1 732 Apr-07-2023, 06:02 AM
Last Post: buran
  Read microcontroller eeprom and feed into python to find checksums. mikeak2001 2 2,708 Mar-25-2020, 04:57 PM
Last Post: mikeak2001

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020