On the development of detonation with pre-ignition