Portenta machine control loses code

Good morning everyone, given that I am new to this platform, this is happening to me:
after compiling and downloading a program into the PLC in question, the software starts and works but when the PLC is restarted it loses the program. The IDE gives me the following message "NO CODE".
If I don't restart the PLC everything works normally.
I use the Ethernet connection because the USB connection is unable to program the PLC, even if I managed to initialize and load the SW license activation code.
I use Arduino IDE PLC ver 1.0.3.0
Thank you.

Can you try a different Portenta?

no I only have this one

The only thing left that I can suggest as I am not experienced with that part is post your annotated schematic and code. Be sure to show all connections, power, ground, power sources and components.

:ok_hand:
Thanks