mushketer888 / pyrtd2660i2c

Realtek RTD2660/2662 programmer for Linux through I2C bus. Based on ghent360/RTD-2660-Programmer and juancgarcia/RTD-2660-Programmer-Python. This python script uses Linux SMBus I2C bus. You can program this chip for example with i2c-tiny-usb.
15 stars 3 forks source link

[Errno 5] Input/output error #1

Closed avtehnik closed 8 years ago

avtehnik commented 8 years ago

Hi, yesterday i was try to use your code on raspberry pi, and i got this error, after this display controller not showing anything on display, he still detected by i2c.

pi@raspberrypi:~/pyrtd2660i2c $ sudo python main.py pcb8009/PCB800099-ttl800x480-24bit-at070tn90-2av1vga1hdmi-5key-IR2.bin Opening bus... Enter ISP? Send SPI command [70] 15675411 JEDEC ID: 0xEF3013

flash matches! Manufacturer Winbond

Chip: W25X40

Size: 512KB

[66] Flash status register: 0x00

Flashing "/home/pi/pyrtd2660i2c/pcb8009/PCB800099-ttl800x480-24bit-at070tn90-2av1vga1hdmi-5key-IR2.bin" to controller Erasing... [136] [105] [161] Traceback (most recent call last): File "main.py", line 408, in ProgramFlash(filenam,256* 1024) # zapisj File "main.py", line 237, in ProgramFlash SPICommonCommand(E_CC_ERASE, 0xc7, 0, 0, 0); #// Chip Erase File "main.py", line 89, in SPICommonCommand b = bus.read_i2c_block_data(0x4a,0x60,1) IOError: [Errno 5] Input/output error

avtehnik commented 8 years ago

The problem was in wiring, i take other cable (about 1m long) and everything went good

raparram commented 7 years ago

Hi! you did it from the raspberry? any advice?

pragyan010 commented 3 years ago

Can I connect 12c pins (sda,sal,gnd) to raspberry pi 3 pins and flash firmware ?