General Category > Discussion - EVE
CMD_FLASHERASE not working with BT817 / Riverdi RVT101H
(1/1)
Rudolph:
See also here: https://github.com/RudolphRiedel/FT800-FT813/discussions/147
CMD_FLASHERASE does nothing on my RVT101H with a BT817 and some 512Mb Micron flash when the flash status is BASIC.
When I put the flash in FULL and then issue CMD_FLASHERASE, it does seem to do something, at least the flash can not be accessed anymore.
However, it takes very little time, this is not noticeable in the startup although Bulk Erase for the Micron devices I could find a datasheet for
is documented to take 153 to 460 seconds.
I did not notice this so far since I am not using CMD_FLASHERASE. Because of the time it takes and because I am using a fraction of the flash anyways.
I am using CMD_FLASHUPDATE, first writing the 4k for the .blob in BASIC and then switching to full for the complete image.
BRT Community:
Hi Rudolph,
We don't have the 10.1" module but we do have the 7" version. Did you see it fail with the original Flash chip provided on the module?
Best Regards, BRT Community
Rudolph:
I finally got around playing with the RVT70HSBNWCA0 as well.
And yes, the same thing is happening with it, CMD_FLASHERASE does not have any effect when the flash is state BASIC.
I even put in a 2s delay before issuing the command.
I am reading from flash with CMD_FLASHREAD and then from RAM_G.
The value returned is 0x02fbdf70 for example.
And as long as I do not put the flash into FULL state, the value does not change.
Reading also does work in both BASIC and FULL.
But when I put the flash in FULL state and then issue CMD_FLASHERASE, the returned value is 0xffffffff - as it should be.
It still only takes a fraction of a second.
And yes, this is with the original Flash chip on the board as provided by Riverdi, I do not have the proper equipment to remove and resolder BGA chips.
The size of the Micron flash chip is 512Mb.
Reading the chip ID using CMD_FLASHSPITX / CMD_FLASHSPIRX the result is:
0x20 Micron
0xba 3.3V
0x20 512Mb
0x10 16 more bytes in extended id
0x40 second generation, uniform sectors, HOLD pin
Next I tried to issue the bulk-erase command manually.
This needs a write enable command (0x06) first and then 0x7c or 0x60 for bulk erase.
This has no effect - well, it is not unlikely that I am doing it wrong.
Then I read found in an application note from infineon that some Micron devices need 0xc4 for die erase instead.
And this gives me a black screen.
After waiting several seconds, commenting out this code and restarting my programm, the flash is not cleared.
No idea what this is, but CMD_FLASHERASE does not work with the Riverdi BT817 displays in state BASIC for the flash.
Navigation
[0] Message Index
Go to full version