It stops at comparing values written into the flash. At the begginig some data are copying well, but then it doesn't match and return FLASHIF_WRITINGCTRL_ERROR. It always stops at the same position, but when I change size of stack it becomes differ...