STM32G07 SPI1->DR will NOT accept data
I've been designing STM32F devices for 15 years.
My first design using a "G" family - and it has NOT been easy.
SPI is a very simple device to use - my setup:
RCC->APBENR2 |= RCC_APBENR2_SPI1EN;
RCC->APBRSTR2 |= RCC_APBRSTR2_SPI1RST; // resset
NOP_Delay(0xf);
RCC->APBRSTR2 &= ~(RCC_APBRSTR2_SPI1RST); // resset
NOP_Delay(0xf);
SPI1->CR1 = (2 << SPI_CR1_BR_Pos) | SPI_CR1_MSTR | SPI_CR1_CPHA | SPI_CR1_SSM | SPI_CR1_SSI;
SPI1->CR1 |= SPI_CR1_SPE;
I'm using J-Link for debug and can confirm all the SPI1 registers look good.
SPI1->DR = 5; EXCEPT an instruction that writes to the DR register. The DR register stays at value 0.
I'm hoping it's not old age but I am lost as to the possible cause of this issue.
Any help/ideas?
Thanks.
