Hi Andy,
yes, I tried another device and the behaviour was the same. But I found out something:
In my application I have a power fail circuit that uses the external interrupt 1. If this becomes active some parameters will be saved into the internal flash memory and normally after that the system dies. But for some reasons (when there only was a dropout for examle, or for testing) I use the watchdog to active shut down the whole system (same as when power was lost).
Now I take an completely erased hardware and the ISP FlashMagic tool works fine until I use this watchdog for the first time, after that I can't enter the boot loader mode again. Also after disconnecting the power for some minutes It's not possible to read the device ID.
The only way is to short the EINT0 pin for some seconds and then to short the reset pin. (that is exactly what the FlashMagic tool does, but there must be a difference I didn't see yet). At this time the flash holds the application program and FlashMagic is able to read the device ID for example.
It seems like the boot loader sees the watchdog flag and a valid application and starts the application.
Spooky, a reset doesn't clear this watchdog flag.
If I know more, I will tell you, it's an amazing problem.
Kuno
yes, I tried another device and the behaviour was the same. But I found out something:
In my application I have a power fail circuit that uses the external interrupt 1. If this becomes active some parameters will be saved into the internal flash memory and normally after that the system dies. But for some reasons (when there only was a dropout for examle, or for testing) I use the watchdog to active shut down the whole system (same as when power was lost).
Now I take an completely erased hardware and the ISP FlashMagic tool works fine until I use this watchdog for the first time, after that I can't enter the boot loader mode again. Also after disconnecting the power for some minutes It's not possible to read the device ID.
The only way is to short the EINT0 pin for some seconds and then to short the reset pin. (that is exactly what the FlashMagic tool does, but there must be a difference I didn't see yet). At this time the flash holds the application program and FlashMagic is able to read the device ID for example.
It seems like the boot loader sees the watchdog flag and a valid application and starts the application.
Spooky, a reset doesn't clear this watchdog flag.
If I know more, I will tell you, it's an amazing problem.
Kuno