The SD card program from EV-COG-3029LZ seems to run perfectly when in Debugging Mode . But ceases to work when in standalone mode. I flash the hex file to board press the reset button and nothing happens. Please Help

I'm currently trying to build a data logger using EV-COG-3029LZ. The problem is the SD card project given on the github link seems to work fine when debugging through IAR. But does'nt work when the program is flash onto the board and is run standalone running in the battery. Please help.