Forums - Watchdog using 8051

4 posts / 0 new
Last post
Watchdog using 8051
ander454
Join Date: 8 Jun 16
Posts: 5
Posted: Fri, 2017-09-08 12:00

Hi,

Would it be technically possible to build a watchdog from the 8051?

I know you are thinking "why do this when a watchdog is provided by CSR already".  My answer is that this watchdog doesn't seem to be a hardware watchdog.  It seems to be tied to some low level firmware that is working off of a scheduler.  It's meant to watchdog my application code, but not low-level CSR code.  I know this because I've had devices get stuck in a bad state indefinitely (they never get reset by the watchdog).  After power cycling though the firmware recovers.  I know the watchdog is enabled because if I stick a while(1) in my project the watchdog does work.

If it is possible, I would need to know the address of the reset register.  If anyone has any details on this please let me know.  I will gladly post the assembly code in this thread if I am successful.

 

Thank you!

 

Erik

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Sat, 2017-09-09 09:28

call my Skype nissim.test

The solution is a software CSR1010 software pules of unique high /low and 8051 will monitor it and will command csr1010 power on/off for reset. 

  • Up0
  • Down0
ander454
Join Date: 8 Jun 16
Posts: 5
Posted: Mon, 2017-09-11 10:57

We won't be able to make a hardware change at this point.  So, I'm looking for "firmware only" solution.  Do you think its possible that 8051 can write to the system reset register?  I mean, does it have access to that address space?

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Mon, 2017-09-11 21:05

I presume you like to reset CSR1010 after its firmware is stacked. 

In this mode, you can't send a command over UART to it, since the code in CSR1010 is in freeze mode.  No UART code that will receive the incoming command.

There is no list of CSR1010 registers

CSR1010 will reset itself in 30 sec when it FW stacked. the time for reset can be set shortly.

call my Skype is the best way to solve your problem

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.