I used this function to initialize and setup STM32H743IIT6 uC to work with SPI in master mode:void InitSPI(void)
{
RCC->APB2ENR=0x00102000; //Enabling SPI45 clock (default: rcc_pclk2=25MHz)
SPI4->CFG1=0x30070007; //Baud rate = SPI clock / 16 = 1....
These bits are always 0 and I can't change the voltage scaling of MCU (The code is stuck at both "while"s). The MCU P/N is STM32H743IIT6. The starting part of the code is:int main(void)
{
PWR->D3CR=0x0000C000; //changing voltage scaling to VOS1
...
Of course that I didn't write blindly to them! I expected these bits to have those values as their reset value, so initiating them with reset value is not a problem.TNX
You're right, there are two VCAP pins and a 1.2uF cap is connected to each one (so no mistake in this part). I made a little change in my code and I think the problem is solved (Actually I wrote the value of the PWR_CR3 register equal to its reset va...