Delay Reduction Chibios Problem


I am currently working with the Chibios and I need a cycle refresh of 5ms. However, I realised that the minimum delay time I can give in this moment is 20ms. I have measured this time with chtimenow function. Also I tried to change CH_FREQUENCY and CH_TIME_QUANTUM; it seems that it worked at first but with a few trials the Matrix stopped sending data.

Thank you for your help.