I cannot write to register associated with HSPI
Posted: Thu May 30, 2019 12:45 pm
hello, I have WROOM-32D
I would like to start with SPI. I chosen SPI2 (HSPI), but I cannot write to some register i.e. SPI_PIN_REG, SPI_MOSI_DLEN_REG.
What would have a cause of this?
I would like to use registers without API (at this moment).
At the picture a I showed that i Can modify register on SPI0 and SPI1 interfaces.
Before that I set GPIO signal to function2 ( MCU_SEL na function2 (val=1)) (MOSI and CLK) and set them as output mode. I used GPIO_PAD13 and 14 (as a default)
Do you know what I have done wrong?
maybe some clock oraz mode master register bit,to enable this function perihperial/accces to write some register?
maybe some power managment features?
I Can write/clear to register which associatted with SPI(1) (see at pict.)
I can write to buffor eg with SPI_W0_REG(2) register.
I would like to start with SPI. I chosen SPI2 (HSPI), but I cannot write to some register i.e. SPI_PIN_REG, SPI_MOSI_DLEN_REG.
What would have a cause of this?
I would like to use registers without API (at this moment).
At the picture a I showed that i Can modify register on SPI0 and SPI1 interfaces.
Before that I set GPIO signal to function2 ( MCU_SEL na function2 (val=1)) (MOSI and CLK) and set them as output mode. I used GPIO_PAD13 and 14 (as a default)
Do you know what I have done wrong?
maybe some clock oraz mode master register bit,to enable this function perihperial/accces to write some register?
maybe some power managment features?
I Can write/clear to register which associatted with SPI(1) (see at pict.)
I can write to buffor eg with SPI_W0_REG(2) register.