TI E2E Community
C2000 32-bit Microcontrollers Forum
How to determine Cold or Warm start in TMS320x28335
Is there any register available in TMS320x28335 to determine whether software has booted due to Cold or Warm start.
Appreciate your response in advance.
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 M. AlterSenior Member Technical StaffTexas Instruments Inc.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.