Hi,
Is there any register available in TMS320x28335 to determine whether software has booted due to Cold or Warm start.
Appreciate your response in advance.
Regards,
Rajesh Gudiseva
Rajesh,
No, there is no internal means of differentiating between a cold and a warm reset on F28335 device. This device does not have its own power-on reset circuitry. The only thing the device will know is that the XRSn pin was low and is now high. This will be true for both the warm and the cold reset case.
You could try designing an RC circuit connected to a GPIO pin and Vcc.
Vcc | R |---GPIO C |GND
Software can then quickly read the GPIO pin state after reset. If the pin is low, it was a cold reset. If the pin is high, it was a warm reset. This method is not fool-proof however. If you power-cycle very quickly, there will not be enough time for the capacitor to discharge and you will think it was a warm reset when it was really a cold reset. You may need to modify the circuit shown to allow the capacitor to discharge quickly.
David
-----------------------------David M. AlterSenior Member Technical StaffTexas Instruments Inc.
Thanks David.