I've flashed plenty of f4 boards with the wrong firmware and they've all started working fine once the correct target was selected lol.
I've even flown with jenky fw the f4s get so many it's easy to pick the wrong one.
Just for fun you should try cleanflight or emuflight over bf. I'm using all...