Esp32c3 and spi2 date version problem

BugSimpson
Posts: 6
Joined: Fri Oct 11, 2024 2:14 pm

Esp32c3 and spi2 date version problem

Postby BugSimpson » Fri Nov 29, 2024 1:46 pm

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?
Attachments
IMG_0213.jpeg
IMG_0213.jpeg (45.04 KiB) Viewed 330 times

ESP_Sprite
Posts: 9773
Joined: Thu Nov 26, 2015 4:08 am

Re: Esp32c3 and spi2 date version problem

Postby ESP_Sprite » Sat Nov 30, 2024 12:16 am

Make sure to take the peripheral out of reset and un-clockgate it.

BugSimpson
Posts: 6
Joined: Fri Oct 11, 2024 2:14 pm

Re: Esp32c3 and spi2 date version problem

Postby BugSimpson » Sun Dec 01, 2024 9:15 am

you mean the "SYSTEM_SPI2_CLK_EN" Bit? (see Pic.)
it is enabled..
Attachments
snip.JPG
snip.JPG (94.2 KiB) Viewed 108 times

BugSimpson
Posts: 6
Joined: Fri Oct 11, 2024 2:14 pm

Re: Esp32c3 and spi2 date version problem

Postby BugSimpson » Sun Dec 01, 2024 10:09 am

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

Who is online

Users browsing this forum: akasaka_spk and 40 guests