Hi.Look at this piece of code:
;PageOffset = (uint8_t)(Address-FLASH_GIVE_PAGE(Address));
Variables Address and the result of FLASH_GIVE_PAGE
macro are 16
bit, variable PageOffset is 8 bit.When I try to cast
the 16 bit
result of subtraction to 8 bit variable there is a
mistake as you
can see.Very similar mistake was in 16 bit comparison bug.
Log in to post a comment.