Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Software reset or alike

2006-01-30 by Guillermo Prandi

Hi. What would be the software sequence the most similar to a 
hardware reset? I am aware that certain things cannot be changed from 
software, like the watchdog, once it is started, but perhaps there's 
something closer to a reset than:

msr   CPSR_c,#MODE_SVC|I_BIT|F_BIT
b 0

This would not work if in user mode, for instance, for I cannot 
change CPSR from that mode, I guess.

I am using LPC2138/LPC2148 in my board. Perhaps the IAP/ISP code 
could be useful somehow?

I've been thinking on reusing an existing exception to start 
such "software reset", like Undefined or something, but I rather use 
it to detect the true exception if I can manage. I would like to 
write a solid piece of software, so I want all the bases covered, 
whenever possible.

Any ideas?

Guille

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.