SparkFun RedBoard Artemis Nano: Forgetting its config/upload on power loss

Hi,
I am having a strange issue with my Artemis Nano, If I plug it into a computer, upload my code it works whilst the USB lead is connected and I can hit ‘reset’ and the code still runs.

If I pull the USB and plug it back in, it does nothing as if the code has gone from its storage…

If has only recently started doing this in the last 2 weeks and I am unsure how I should troubleshoot it.

any suggestions please as its currently behaving like RAM (non persistent storage)?

thanks