I am using an Atmel SAM4E_EK board with SAM4E16E microcontroller. Recently the board started with the following quirk:
When I upload a program using Atmel-ICE over SWD, the chip resets and runs my code without problems. However when I push the reset button or power cycle, the MCU just freezes, doing nothing at all.
What may be the problem with the MCU? I suspect some problems with the on board flash.
EDIT: I got a second board. It was working normally until I accidentally pressed the reset button while flashing a new binary. Now the second board behaves exactly the same way.