2022-03-17 04:01 AM
Hello, I'm using the demoboard B-U585-I-IOT02A with ThreadX. My internal clock is 160 MHz and I currently use it for ThreadX. I'm doing some tasks periodically every one threadX second but it seems that my HSI has a small inaccuracy of 0.3%. But since I want to be more precise than that, I wanted to use the threadX timer with the LSE which is much more precise. I would know if it is possible to do this? I tried basing the SysTick on the LSE and several other manipulations but I keep getting the 0.3% inaccuracy.
Thank you in advance,
Solved! Go to Solution.
2022-03-17 06:20 AM
I just figured out why I had not a good accuracy even with the MSIS auto calibration. I obviously forgot to set MSIPLLSEL bit to use MSIS ( I thought CubeMx generated it when I chose MSIS Auto Calibration). For those who had the same problem :
Thank you again Stéphane for your answer for the MSIS. It solved my problem. Have a great day
2022-03-17 04:15 AM
Hello Chamo
Here are a few suggestions.
As source clock, you may want to use either :
Best regards,
Stéphane
2022-03-17 05:34 AM
Hello Stéphane,
Thank you very much for your time and for your answer.
Unfortunately I do not have currently HSE on the demoboard and I cannot use it for now.
For the MSI clock, I'm currently trying to use it but I keep having pretty inaccurate value (I mean not enough for me). I did set MSIS auto calibration and set MSIS to 48KHz. Do you know if there is another way to use a clock with LSE accuracy for ThreadX (to obtain the time since startup with tx_time_get function).
Once again, thank you for your answer.
2022-03-17 06:20 AM
I just figured out why I had not a good accuracy even with the MSIS auto calibration. I obviously forgot to set MSIPLLSEL bit to use MSIS ( I thought CubeMx generated it when I chose MSIS Auto Calibration). For those who had the same problem :
Thank you again Stéphane for your answer for the MSIS. It solved my problem. Have a great day
2022-03-17 07:16 AM
Great !