The unbound references are bad news, they need to be taken care of first then see what happens your flash issues.
The intrisic alarm feature for the command/status mismatch has never worked right from the beginning. Create interlocks for the workaround.
Basically it looks like you have 10 pounds in a 5 pound bag.