From another topic:
So I’d assume that “a normal” full erase of the serial flash should not clear the firmware, or should revert it to the factory version.
Did you try to activate it again? Can you get to http://things-gateway.local/info ?
If all fails, then you can always reinstall from an SD card. But we’re curious too, so before doing that: what’s the current status?