You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tinyprog: limit trailing padding to aligned writes
To avoid wrap around when writing beyond the 256 octet sector, if the
write starts part way into the 256 octet sector, only do the padding
to a full 256 octet sector if we are writing from the begining of the
sector (and thus writing a full 256 octets will not wrap around).
We also write 0xff for safety, as in most SPI flash that is the erased
value, and effectively one can only write 0 bits, so writing twice to
a cell (without erasing) writes (existing value AND new value), which
for a new value of 0xff should be the existing value.
0 commit comments