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

Wrong internal CPU temperature measurement #5

Open
luftaquila opened this issue Oct 14, 2023 · 1 comment
Open

Wrong internal CPU temperature measurement #5

luftaquila opened this issue Oct 14, 2023 · 1 comment
Labels
bug Something isn't working priority Work needed as soon as possible

Comments

@luftaquila
Copy link
Owner

In ANALOG_SYS log data, internal cpu temperature is always stored [255, 255] when TMA-1 is powered by 12V VIN input, causing 6553.5°C CPU temperature.

image

But when TMA-1 is powered by USB-C in ESP32 board, it is stored correctly.

image

@luftaquila luftaquila added bug Something isn't working priority Work needed as soon as possible labels Oct 14, 2023
@luftaquila
Copy link
Owner Author

seems like problem of casting in internal temperature calculation at here

adc_sys_value[0] = (uint16_t)(((110.0 - 30) * (adc_sys_value[0] - TS_CAL1) / (TS_CAL2 - TS_CAL1) + 30) * 10);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority Work needed as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant