SPI and IIC bus not being free and locks up. Adding/removing code or changing stack size fixes the problem.
I have seen this with the SPI bus 6 months ago. It just just happened with the IIC bus. I am using Cube 1.12.0 and this maybe related to TKube.1 issue "Potential bug in I2C HAL layer (STM32Cube_FW_F4_V1.25.0) in I2C_MemoryTransmit_TXE_BTF() ?".I ha...