based on your code, I have able to read the data from the Flash. Just somehow the first byte I read is 0xFF
0x00: 70 df fb 92 1e 01 00 00 e8 a6 30 00 18 01 10 00
0x1F: 00 00 f8 da 4a a7 2a ff ff ff ff ff ff ff ff ff
That is strange.
My Hex-Editor shows the exact same sequence and I just printed out the first 16 bytes on
the display and these do match as well.
I am using my own code library:
https://github.com/RudolphRiedel/FT800-FT813This really should not make any difference though since this is basic functionality.
Also, for the MEMCRC command. It say that it can computes a block of memory. I use the winbond flash. And 1 block = 64Kb.
EVE_cmd_memcrc(0x1E0000,65535); ---> will it do the job?
It won't do much good as the address is ROM_FONT. :-)
I just tried it and apparently there is no limit on the size CMD_MEMCRC can process.
Well, it can't go past 0x7fffff but this not much of a limitation. :-)
This really is working:
crc_sram = EVE_cmd_memcrc(0,0x7fffff);
This is not working:
crc_sram = EVE_cmd_memcrc(0,0x800000);
Although technically the last address it should read from would be 0x7fffff.
So this is no problem at all:
crc_sram = EVE_cmd_memcrc(0,0xffff);
And I roughly timed it.
EVE_cmd_memcrc(0,0xfffff); ~3.5ms
EVE_cmd_memcrc(0,0xffff); ~280µs
It is possible though that the execution time depends on the memory content but I was not able to tell a difference
with the way I measured it and with the jitter on the measurements when adding this line.