-
Notifications
You must be signed in to change notification settings - Fork 58
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
Presence of TS_CAL1 on STM32L011 #29
Comments
Hello @badcf00d Would you please give us more details about how you got this issue? With regards, |
Hi @RJMSTM The issue is just that there are multiple comments and #defines in STM32CubeL0/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_adc.h Lines 196 to 198 in bec4e49
STM32CubeL0/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_ll_adc.h Lines 1461 to 1467 in bec4e49
But this seems to be incorrect. So I think the fix is just to remove the comments about TS_CAL1 being unavailable on L011, and remove Thanks, |
Hello @badcf00d, Sorry for my tardy reply. I will double check and I will back to you in the next few days. Regards, |
Hi @RJMSTM, Thanks for getting back to me, like I say it seems like the TS_CAL1 value is present on the L011, all the dev boards I've got give accurate temperature within a couple of degrees when using it. So yeh maybe it's just been left off the datasheet by accident or something. Regards, |
Hello @badcf00d Please allow me to close this thread as no activity. You may reopen it at any time if you have any details to share with us in order to help you to solve the issue. Thank you for your comprehension. With regards |
I don't think this is ready to be closed? This still seems to be a bug in the LL API:
If you would like any more information let me know, but basically, |
The LL API seems to incorrectly assume that TS_CAL1 (temperature sensor calibration value @ 30c) is missing on the STM32L011 series.
The datasheet says in section 6.3.16 Temperature Sensor Characteristics, sub-point 2, "V30 ADC conversion result is stored in the TS_CAL1 byte".
I've tested this on STM32L011 development boards, and the TS_CAL1 value is indeed present in 0x1FF8007A, and the value seems sensible, producing quite accurate temperature readings using the included macro.
Could stm32l0xx_ll_adc.h be modified to correct this? Thanks.
The text was updated successfully, but these errors were encountered: