This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

DACCVIOL hardfault when performing memcpy from Internal Flash to RAM greater than 432 bytes

Hi! I want to copy data from internal flash to a statically allocated buffer in RAM. I get a DACCVIOL hard fault try to do this by memcpy. The hard fault depends on the number of bytes I try to memcpy however- 432 is the exact maximum number of bytes I can use. I don't have read protection enabled, and I tried performing a memcpy of smaller size which covers the addresses that gave me the fault- this worked. It therefore seems to be size related- Why might this be?

Parents Reply Children
Related