Hi Garst,

Then use a byte in main memory instead of in info memory. That will be wiped when you reprogram the code. Sensing in the JTAG connection isn't supported, and doesn't seem like much of a solution - your special routine would be run repeatedly during debug work.

Regards,
Steve


Garst R. Reese wrote:

Thanks Steve,
The problem is that if I reprogram the chip I want the routine to run
again.
It would be sufficient if I could determine if the JTAG connector was
attached when I power up the device.

Regards,
 Garst

Steve Underwood wrote:
Hi Garst,

There is not "this is a freshly programmed chip" flag. However, its easy
enough to use a byte in info memory to record that your once in a
lifetime routine has been run.

Regards,
Steve

Garst R. Reese wrote:

Hi folks,
I have a routine that I only want to run when once when the chip is
programmed.
Is there a way of detecting this condition?

Thanks,
Garst


Reply via email to