![]() |
Reading the CPU temperature - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: RockPro64 Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=102) +--- Thread: Reading the CPU temperature (/showthread.php?tid=8343) |
Reading the CPU temperature - elahav - 11-16-2019 I have been trying, unsuccessfully, to read the temperature from the TS-ADC controller. I have configured the various TSADC registers and. as far as I can tell, the relevant clocks are all enabled. Still, any attempt to read TSADC_DATA0 results in 0. Also, if I understand correctly, the value of TSADC_USER_CON shows that the analog-to-digital conversion never finishes. Here are the values of the various registers that I believe are related to the TSADC: Code: CRU_CLKSEL_CON27=1f (DIV=1f SEL=0) Am I missing anything? Thanks, --Elad RE: Reading the CPU temperature - xalius - 11-16-2019 Are you doing some bare metal programming? I see you have clock, is there maybe also a power register somewhere? Maybe have a look at the Linux driver ... RE: Reading the CPU temperature - elahav - 11-16-2019 (11-16-2019, 12:06 PM)xalius Wrote: Are you doing some bare metal programming? I see you have clock, is there maybe also a power register somewhere? Maybe have a look at the Linux driver ... Yes, I looked at both the Linux and NetBSD drivers, and couldn't find anything beyond what I have. The drivers themselves rely on the device tree for clocks, but I followed the tree up as much as I could, and believe that all relevant clocks are enabled by default. I'm running QNX on the board. Got the basics up (all 6 cores, MMU, GIC, timers, UART) but I'm afraid of ramping up the core frequency on the two clusters without monitoring the CPU temperature. OK, got it to work. Probably just needed to be more careful with all the clocks: Code: // Assert reset. RE: Reading the CPU temperature - xalius - 11-16-2019 Good ![]() |