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?
Esp32c3 and spi2 date version problem
-
BugSimpson
- Posts: 22
- Joined: Fri Oct 11, 2024 2:14 pm
Re: Esp32c3 and spi2 date version problem
Make sure to take the peripheral out of reset and un-clockgate it.
-
BugSimpson
- Posts: 22
- Joined: Fri Oct 11, 2024 2:14 pm
Re: Esp32c3 and spi2 date version problem
you mean the "SYSTEM_SPI2_CLK_EN" Bit? (see Pic.)
it is enabled..
it is enabled..
- Attachments
-
- snip.JPG (94.2 KiB) Viewed 2263 times
-
BugSimpson
- Posts: 22
- Joined: Fri Oct 11, 2024 2:14 pm
Re: Esp32c3 and spi2 date version problem
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
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
Who is online
Users browsing this forum: Bytespider, PetalBot and 1 guest
