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.

  • 1
    \$\begingroup\$ Could this be a brownout problem? Make sure your BOD is enabled. \$\endgroup\$ – Dzarda May 27 '15 at 14:57
  • \$\begingroup\$ No, the voltage in my office is fairly well regulated. Besides, I got another board and used it with the same power plug and power supply, it resets normally. \$\endgroup\$ – Atilla Filiz May 28 '15 at 9:07
  • \$\begingroup\$ I meant the Brownout-Detect that's present on-chip. \$\endgroup\$ – Dzarda May 28 '15 at 10:19

Not really an answer, but I resolved the problem. I built and flashed one of the examples that come with Atmel Studio. After it was built and flashed successfully, all later flashes and resets worked properly.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.