Page 1 of 1

Esp32c3 and spi2 date version problem

Posted: Fri Nov 29, 2024 1:46 pm
by BugSimpson
Hello,
Can someone explain to me why I can't read a register from the SPI2 controller? No matter which register is read, a 0 is always returned. I read the date register from the gpio controller and the value matches.

anyone have an idea?

Re: Esp32c3 and spi2 date version problem

Posted: Sat Nov 30, 2024 12:16 am
by ESP_Sprite
Make sure to take the peripheral out of reset and un-clockgate it.

Re: Esp32c3 and spi2 date version problem

Posted: Sun Dec 01, 2024 9:15 am
by BugSimpson
you mean the "SYSTEM_SPI2_CLK_EN" Bit? (see Pic.)
it is enabled..

Re: Esp32c3 and spi2 date version problem

Posted: Sun Dec 01, 2024 10:09 am
by BugSimpson
perfect, thank you.
It was really because the Spi2 unit was in a reset state, which according to the data sheet it shouldn't be in a reset state