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
33 stars 11 forks source link

Flash PCB8000099 with memory Macronix MX25L4005 #2

Open franrad opened 5 years ago

franrad commented 5 years ago

Hi! Congratulations for this project, really appreciated. This is not really an issue but I would like to ask you some advice. I hope you have still some free time to help me. I'm a newbie of i2c/RTD2660 programming and I am trying to flash PCB8000099 card with a raspberry pi 2. I ran your tool and I obtained a ">>> Review wiki to add new flash chip !" message. According to your documentation I looked for the returned Jedec ID (0xc22013) and I found it should be a Macronix MX25L4005. Then according to the info I found at this address http://www.alldatasheet.com/view.jsp?Searchword=Mx25l4005&gclid=EAIaIQobChMIg7aYrMn03gIVSM-yCh1v9g3ZEAAYASAAEgIjXPD_BwE (page 1 of the pdf) I added the following item to the FlashDevices array:

FlashDesc("MX25L4005" , 0xc22013, 512, 256, 64)

Now, based on the code already present for Windbond manufacturer, I'm trying to add the op codes for Macronix flash memories within the SetupChipCommands function. According to the datasheet at the previous link (page 7) the opcodes are the same ones as for the Windbond cards, except for "Flash Write register op code" (0x50). Which code should I use? Furthermore I cannot find any code 0x50 in the documentation of any Windbound flash memories. For example I was looking at page 15 of the following Windbound datasheet (W25X10) http://pdf1.alldatasheet.com/datasheet-pdf/view/178187/WINBOND/W25X10.html. "Write Status Register" (op code 0x01) and "Flash Write register op code" are the same thing? Why are you using a different code? Am I missing something?

Thank you in advance, kind regards Francesco

flagadajones commented 4 years ago

@franrad i know is an old issue but have you found a solution ?

pietervandermeer commented 4 years ago

in my experience almost all these chips have the same registers. every time i see a new id tag i get worried.. then i use the same old winbond code for it and it just works.