Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read time past between bootrom executions #6

Open
HomeACcessoryKid opened this issue Jan 22, 2020 · 0 comments
Open

How to read time past between bootrom executions #6

HomeACcessoryKid opened this issue Jan 22, 2020 · 0 comments

Comments

@HomeACcessoryKid
Copy link

Fun Repo ;-)
I am coding a boot loader that will detect bad code or power cycles. If detected, it will start an OTA program that will try to download less buggy code. All in the esp-open-rtos eco-system. (ref).
Based on your experiments I wonder if you have an idea how to get a reference for the time that passes in the sequence

  • boot loader (t=x)
  • user code
  • crash/other event
  • boot loader (t=y)
  • calc y-x

I believe the ROM does not have the system_get_time() call and I have not been able to find an alternative so far.
In RTC memory I could find the WDT values, but I do not yet see how I could leverage those...

Thanks in advance for a slice of your mind,
HacK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant