2022-07-21 08:00 AM - edited 2023-11-20 08:18 AM
Hi,
I am trying to init SPI1 (to just receive data qwith MISO) on nucleo G474RE without using HAL libraries.
Can you help me to assess why my code does not work ?
I can't see the clock eventhough SPI1 is enabled
void SPI1_init(){
RCC-> APB2ENR|=(1 AHB2ENR |= (1MODER &= ~(1 AFR[0] |= (1 AFR[0] |= (1 AFR[0] |= (1 CR1 |= (1 CR1 |= (1 CR1 |= (1 CR2 |=(1CR2 |= (1CR1|= (1CR1|= (1CR1&= ~(1
Solved! Go to Solution.
2022-07-25 03:12 AM
@Tommino "How is this prevented?"
There'll be a status bit that tells you when a transfer has completed.
On this chip, you also have read & write FIFOs