static-void / rtd266x_programmer

Programmer for RTD266X using linux and i2c-dev
19 stars 9 forks source link

Device Macronix 0xC22013 not supported #3

Closed bgiraut closed 3 years ago

bgiraut commented 5 years ago

I have just received a PCB800099 v9 board that use an unsupported SPI chip from Macronix. After read documentation it is look like it is a WindBond W25X40 clone. I have made small modification in the source code and be able to read et flash the chip on the board. May be you can update your source to accept the chip.

Definition of the device :

{"MX25L4005" , 0xC22013, 1024, 256, 64}

Change the mehtod SetupChipCommands to accept Macronix manufacturer via jedec_id C2

Any way, thx a lot for your programmer, it held my a lot.

static-void commented 5 years ago

Thanks for the report, I've added your device

bgiraut commented 5 years ago

I will plug the LCD tonight on the board to confirm everything is ok.

Le mar. 23 oct. 2018 à 14:46, Bernard Black notifications@github.com a écrit :

Closed #3 https://github.com/static-void/rtd266x_programmer/issues/3.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/static-void/rtd266x_programmer/issues/3#event-1920362601, or mute the thread https://github.com/notifications/unsubscribe-auth/AXSeT5V1cHMH3c5dNiJxOcRhz86u4wPYks5unw-fgaJpZM4X1erG .

static-void commented 5 years ago

Sorry, I forgot to add the manufacturer ID. Is that what you were expecting? https://github.com/static-void/rtd266x_programmer/commit/dfa9e743606e3ea21e5237ee8153fba7e884261f

static-void commented 5 years ago

I might need to check the datasheet has the same write commands... I'll have a look

bgiraut commented 5 years ago

Device definition is missing and SetupChipCommands only accept WindBond manufacturer even if other manufacturer and device are definied

static-void commented 5 years ago

Yeah I've had a quick look at the datasheet for the Macronix part and this needs a bit more thought I think. certainly the macronix at least does not support the non-volatile status register command (0x50) and I think that implies that other modifications are needed too. I will try to investigate properly later on.

bgiraut commented 5 years ago

I confirme, the flash was a success !!! The board drive my LCD without any problem. Command 0x50 dont seem to be necessary to flash the firmware.

Thx a lot.