Sure, why not?It is a common thing that when we keep working on personal computer, the operating system (windows) hangs and we start it again.
Does embedded software also hang. What are the reasons that can cause embedded software to hang?
I've been trying to figure out for a long time what could be the reason for the embedded software to hang. I am trying to understand reasons because i heard about watchdog timer which is used to reset software.Sure, why not?
Computer code is written by humans (most of the time). Humans are known to make errors.
If there is interference in the region and a serial communication is interrupted and delivers an incomplete string of bits or a pulse of interference is read like an extra clock cycle. Or a motor encoder doesn't reach the destination and deliver the right number of pulse counts, the code could hang, just waiting for a blocked movement. There are lots of reasons to use a WDT. Depending on how the code is written, all kinds of issues can happen when interfacing with the real world.I've been trying to figure out for a long time what could be the reason for the embedded software to hang. I am trying to understand reasons because i heard about watchdog timer which is used to reset software.
I don't understand why watchdog time should be used in commercial products
Well designed embedded software programs rarely but sometimes do 'hang' (usually because of a detected hardware failure in the monitored and controlled machine) but usually the OS is still running so it's possible to easily read the logs of what happened and to restore operations quickly. We have server class machines running embedded software to control complex mechanical and physical sequences on processing machines that use large SQL databases for the state machine data (thousands of data points update per a 1ms state machine tick). There are a huge number of possible fault conditions that can cause critical conditions resulting usually in a sequenced and controlled stoppage of software functions.It is a common thing that when we keep working on personal computer, the operating system (windows) hangs and we start it again.
Does embedded software also hang. What are the reasons that can cause embedded software to hang?
To miss quote above,It is a common thing that when we keep working on personal computer, the operating system (windows) hangs and we start it again.
Does embedded software also hang. What are the reasons that can cause embedded software to hang?
Yes, it does. Should it? No, not if written properly. 'hangs', crashes, and other anomaly are due to bad code/design 90% of the time. Why anyone would find such things 'acceptable' is beyond me. The 'only' time an O/S should crash or hang is if some situation causes it to wind itself into a corner it can't work it's way out of because there is no design option available to prevent it without increasing hardware resources it can utilize. Or if it's being acted upon by an influence (such as EMF, or Radiation or, something forcibly altering it's design behavior).It is a common thing that when we keep working on personal computer, the operating system (windows) hangs and we start it again.
Does embedded software also hang. What are the reasons that can cause embedded software to hang?