stm32f103ZCT6 communication with an ADC IC (ad7730) through SPI works fine in the debug mode but when I disconnect it from stlink and run the board normally, I receive random and wrong data.
After inspection I realized that RCC_CFGR register is different when running in different modes (debug and normal). I fixed the issue by writing RCC -> CFGR = 0x1F040A. Now the register is the same but the problem still exists.another strange fact i...