raparram / Programador-I2C-RTD2660-Rpi3

Esta es una guía para programar las tarjetas PCB8000099 y PCB800661 usando como programador una Raspberry Pi . También puede ser utilizada como base para actualizar el firmware de cualquier tarjeta que implemente el RTD2660 y una memoria flash. Este repositorio se basa en la optimización del código de @mushketer888 (https://github.com/mushketer888/pyrtd2660i2c).
The Unlicense
32 stars 11 forks source link

CRC error? #1

Open pietervandermeer opened 6 years ago

pietervandermeer commented 6 years ago

This tool is great! I hooked everything up, it detects the Flash chip, then it uploads the firmware. But the CRC does not look ok. But I noticed the file "test_consola" also has the same issue. So it must not matter what the CRC is, then?

More importantly : I'm uploading all kinds of images to the PCB800099, but the upload does not seem to take effect. The old firmware is still there.. What could be the problem? Do I need another step?

raparram commented 6 years ago

Hi! Could you send me the error message? I am interested in the last lines shown in the terminal.

pietervandermeer commented 6 years ago

cool! i'll send you the message later today!

pietervandermeer commented 6 years ago

here it is:

prog_output.txt

lbdroid commented 6 years ago

I'm getting the same thing. Whatever I program to it has no impact.

Writing addr 3ff00 done [136] [105] Received data CRC 61

Chip CRC DE

run time: 0.0:2.0:26.3151040077

lbdroid commented 6 years ago

@pietervandermeer : Found an alternative that works; https://github.com/klirichek/RTD-2660-Programmer

I was able to program mine through a Pi3. One thing to note: My PCB80009 has a W25Q80DV flash chip, which that particular program doesn't have a definition for. You can just copy it from THIS project if that issue affects you.

pietervandermeer commented 6 years ago

@lbdroid i'll give it a try monday, thanks!

btw, i checked the W25Q80DV datasheet (same as on my PCB). the commands used by this program are different.. for instance, the program command has a different command byte... but I could be i'm mixing stuff up. also.. are the SPI commands wrapped up in the I2C comms? in other words, is the SPI-based protocol from the flash chip running on top of I2C here?

pietervandermeer commented 6 years ago

@lbdroid did as you told and i can now flash the chip! thanks