When writing very small chunks via SPI flash, some data behind is also erased. This is of course to be expected due to the flash block size. But I was slightly confused by the output in this line:
|
printf("start addr: %08x, end_addr: %08x\n", base_addr, (base_addr + size + 0xffff) & ~0xffff); |
It always assumes an end address based on a block size of 64k, while the actual end address with known flash models may be derived from a 4k block size. Is there are reason why it doesn't just output the end_addr that was computed a few lines before? The current output is somewhat misleading.
When writing very small chunks via SPI flash, some data behind is also erased. This is of course to be expected due to the flash block size. But I was slightly confused by the output in this line:
openFPGALoader/src/spiFlash.cpp
Line 229 in 63a4234
It always assumes an end address based on a block size of 64k, while the actual end address with known flash models may be derived from a 4k block size. Is there are reason why it doesn't just output the end_addr that was computed a few lines before? The current output is somewhat misleading.