Hello,
I am creating a Bootloader for my K60FN1M.
I am using the Flash_LDD component in processor expert.
I read and parse a SRecord line, and then write it to Flash.
Occasionally, writing flash causes a Hard Fault. I think this is related to the write size of the Flash being 8 bytes, and sometimes the SRecord lines are not aligned to 8 bytes.
Since Flash can only be written once after an erase cycle, I think the driver is writing to some of the 8 bytes, and then on the next SRecord line, it writes to the additional bytes, causing a hard fault.
Does anyone have an experience with this, or is there a good way to work around this?
Thanks,
Tim