Could you provide the compiled code (hex) for the application running by default on the nRF9160DK ? For some reason I am unable to rerun it from the source code provide (LTE cloud demo 0.3.5)
BTW, I have erased the whole chip, does it erase the modem firmware as well ? I am not longer able to run the modem firmware update script.
To run examples for the nRF9160, please follow the getting started guide (also an app on nRF connect for windows):
Erasing the chip will not erase the modem, but it will erase a field that is required for starting up the modem:
By flashing one of the examples, this shall be restored. For instance the secure_boot example: