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 is that I have 6 boards, which are exactly the same (they are pcb printed and have the same components and I programmed the microcontrollers with the same code). The communication on one of the boards is OK but the rest of 5 boards have problems
I appreciate any comments in advance.
