My SPI gets stuck (waiting for RX register not empy flag, <SPI1->SR & 1> that never arrives). The operation is written with registers, not HAL.
BUT! it only gets stuck after a fixed number of successful repeated operations, all the same, inside a loop.
ALSO! the number depends by a previous use of HAL_delay() :) outside my repetition loop.
I understand that it is not possible to make a diagnosis without reading the source, more info, e.s.o. but maybe someone has same suggestion on where to start to find what happens?