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

RTC doesn't survive power cycle #80

Open
mck1117 opened this issue Apr 13, 2023 · 4 comments
Open

RTC doesn't survive power cycle #80

mck1117 opened this issue Apr 13, 2023 · 4 comments
Labels
🐞 bug 🐞 Something isn't working help wanted Extra attention is needed High Priority Issues that could cause immediate issues for users

Comments

@mck1117
Copy link
Collaborator

mck1117 commented Apr 13, 2023

Reports that the real time clock (ie, SD card timestamps) doesn't work if you power cycle the ECU, even with an RTC battery installed

@rusefillc
Copy link
Contributor

Status update:

There is FOME-Tech/ChibiOS@7ed8236 and FOME-Tech/ChibiOS@12c805f within stable_21.11.x.FOME

but https://github.com/FOME-Tech/fome-fw/blob/master/.gitmodules does not seem to use https://github.com/FOME-Tech/ChibiOS?

@nmschulte do you know anything about all that? Any interest in a common ground customEfi naming convention for FOME-Tech/ChibiOS@12c805f?

@nmschulte
Copy link
Contributor

@nmschulte do you know anything about all that?

I have no real comment or position other than that I see the value in FOME-Tech/ChibiOS, and purposefully made the port and rename separate commits. (https://github.com/FOME-Tech/ChibiOS/pull/1/commits)

The first thing that comes to mind as a solution is to (agree to) simply drop the prefix on the names (a la STM32_LSE_WAIT_MAX...) and just extend the ChibiOS namespace directly and without qualification.

@rusefillc
Copy link
Contributor

@nmschulte my main question is if RTC works and/or if anyone knows why RTC does not work in what scenarios?

The namespace question is secondary I would suggest CUSTOM_ or CUSTOM_EFI_ or anything else really as long as it's clear that it's not original ChibiOS I guess?

@nmschulte
Copy link
Contributor

nmschulte commented Aug 29, 2024

I see. w/re: ChibiOS 21, it has not landed: #385; I'm unsure if it resolves this issue or what might stand in the way of answering (that is, like, what's it need yet?).

I'm not sure of the scenario other than vaguely FOME Proteus RTC doesn't survive reboot power cycle, and since a while now. It could be due to LSE_MAX_WAIT, though I suspect not, but easy to test by setting RTCSEL to LSI and observing. Otherwise I don't see the culprit in firmware code yet; if I understand correctly, from the LSE_MAX_WAIT code and the datasheet, the backup domain will be reset on every boot (and try to await LSE, before applying RTCSEL), but datasheet suggests RTC/backup RAM should be retained. I haven't found time to reproduce or debug anything yet.

@BeerMoneyMotorsports BeerMoneyMotorsports added 🐞 bug 🐞 Something isn't working help wanted Extra attention is needed High Priority Issues that could cause immediate issues for users labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug 🐞 Something isn't working help wanted Extra attention is needed High Priority Issues that could cause immediate issues for users
Projects
None yet
Development

No branches or pull requests

4 participants