Hi,
I am using J-link Base model to program a board based on Atmel ATSAM4E8C Cortex device. In roughly 1/3 cases board is stuck in reset after programming and it seems the only way to make it run is to power cycle the PCB. I use J-link commander in batch mode to perform the flashing process and it does not seem to report any problems when this reset issue happens. Below is the source of the commander script I am using.
I tried adding:
after the device command but that does not seem to help. Any ideas as to how I can overcome this problem? The CPU's reset line is connected to the SWD interface, but for some reason even the hardware watchdog is unable to reset the CPU once it's stuck, only a power cycle seems to work.
Edit: Something I have noticed is that once the CPU was programmed once it does not get stuck in reset when it gets programmed again, i.e. flash has the previous version of the program. The problem seems to appear only on fresh blank units or on units which have been fully erased prior to programming again.
I am using J-link Base model to program a board based on Atmel ATSAM4E8C Cortex device. In roughly 1/3 cases board is stuck in reset after programming and it seems the only way to make it run is to power cycle the PCB. I use J-link commander in batch mode to perform the flashing process and it does not seem to report any problems when this reset issue happens. Below is the source of the commander script I am using.
I tried adding:
after the device command but that does not seem to help. Any ideas as to how I can overcome this problem? The CPU's reset line is connected to the SWD interface, but for some reason even the hardware watchdog is unable to reset the CPU once it's stuck, only a power cycle seems to work.
Edit: Something I have noticed is that once the CPU was programmed once it does not get stuck in reset when it gets programmed again, i.e. flash has the previous version of the program. The problem seems to appear only on fresh blank units or on units which have been fully erased prior to programming again.
The post was edited 1 time, last by GeekCharge ().