A numerical simulation of premixed gas combustion spreading from a hot corrugated wall is performed. It is found that sufficiently deep corrugations may trigger an abrupt transition from deflagrative to detonative combustion. The effect is found to be highly sensitive to the flame’s normal speed and the reaction rate pressure dependence, favoring fast flames and high-order reactions.