Hi, Rawsewage,
Regarding your question, if you want to calibrate the systick module, I suppose that you'd better use hardware capture solution in order to increase the accuracy.
But the systick module has not output pin, it has not capture function either. In other words, I do not think your solution is feasible. If you use software solution, for example have the systick generate an interrupt, in the ISR, you can read the Timer counter value, but because the ISR latency is not fixed and difficult to estimate, so software solution is not feasible.
I think what you calibrate is the clock source accuracy instead of Timer module itself, you can use the external 32KHz crystal clock to calibrate the internal 12MHz with Timer.
As you know that the Ctimer and SCT modules have hardware capture function, you can use one module for example MCPWM to counts the internal 12MHz which functions as a tick. You can use the CTimer to count the 32KHz crystal clock, which can be a standard clock source. You can use the MCPWM signal as capture signal and connect it to CTimer capture pin, when the rising edge of capture signal is detected, the CTimer counter value is loaded to capture register immediately, in this way, you can calibrate the 12MHz clock with the 32Khz crystal clock. This is the basic idea.
After you calibrate the 12MHz internal clock, you can write the correct value to systick module.
Hope it can help you
BR
XiangJun Rong