Code.py not starting script at power on

Install latest ardupy UF2 file. Copied the Blink program to code.py using Thonny The program blinks the blue led as it should
If I then power off the Wio Terminal, then power it on again. The blink program does NOT start, but it does work started from Thonny.
Do I have a defective Wio Terminal?

Sorry, I just realised that I should have user boot.py. It now works perfectly using the correct file!!