Closed EdouardMALOT closed 9 months ago
hello. thanks for your correction. but as I can remember, checking the offset is in the SPIF_WriteFn function. please have look and tel me your opinion. thanks
Yes SPIFWriteFn() limit "Size" but does it silently_ :
This is why I applied the same limit with the same "maximum" variable name in SPIF_WriteAddress(). (Otherwise not all data is written and there are no errors reported).
it has been updated. please have a look. thanks
Thank you for sharing your project.
I found a bug using SPIF_WriteAddress() with the address not aligned to SPIF_PAGE_SIZE.
The problem is that "remaining" is compared to SPIF_PAGE_SIZE instead of ( SPIF_PAGE_SIZE - offset).
The corrected code looks like this