AnsweredAssumed Answered

K60 Flash_LDD Causing hard fault

Question asked by Tim Robbins on Jun 20, 2013
Latest reply on Jun 24, 2013 by Sascha Ehlers

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

Outcomes