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
-
- Posts: 6
- Joined: Fri Oct 11, 2024 2:14 pm
Esp32c3 and spi2 date version problem
- Attachments
-
- IMG_0213.jpeg (45.04 KiB) Viewed 327 times
-
- Posts: 9773
- Joined: Thu Nov 26, 2015 4:08 am
Re: Esp32c3 and spi2 date version problem
Make sure to take the peripheral out of reset and un-clockgate it.
-
- Posts: 6
- 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 105 times
-
- Posts: 6
- 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: No registered users and 34 guests