Problem making an accurate ms delay, either HAL_Delay or my own delay function
Hi,I am facing an odd situation when I use HAL_Delay. In most of the functions I have it works well, but in some functions the program stays in this loop forever:while((HAL_GetTick() - tickstart) < wait) {}When I debug, the difference between two val...