I am using the ap64 chip. Every once in a while, a unit returns without the program loaded or a part of the program missing. Units are shipped all over the world. I can re-load the program and unit seems OK. Anybody have any ideas?
Does your code write to flash for EEPROM like storage? Does it use a serial bootloader? What did you use to programme it in the first place? Is the device totally erased or just damaged so it won't run? (partially erased, reset vector only will disable it)
I am using a serial bootloader. The bootloader is still there. Code is not writing to eeprom. Bootloader is loaded by one of our vendors. Program loaded by us through serial port. The best I can tell is that it happens after product is shipped.
Presumably the bootloader can erase all of the programme area? Why do you not utilise the LVI? Without some form of low voltage protection all bets are off. On power up/down as the rail passes through the region of below spec but above the point where it still tries to run anything can happen wrongly. This is made worse by the fact that there is some extant code that can erase the programme. If you don't have a valid reason not to, setup that LVI module.