Page 1 of 1

SPI WP signal

Posted: Sat Jul 14, 2018 8:54 am
by michprev
Hi,
from ESP32 Technical Reference Manual:
SPI_WP This bit determines the write-protection signal output when SPI is idle. 1: output high; 0: output low. (R/W)
Modifying this bit changes output level of WP pin but it is kept all the time high / low - it does not change during SPI transmission. Tried both with user transmission and flash transmission (flash_rdid) with no success.

Is it a hardware bug?

Re: SPI WP signal

Posted: Tue Jul 17, 2018 5:52 pm
by michprev
Even with flash write status register command (flash_wrsr) WP signal does not change

Re: SPI WP signal

Posted: Wed Jul 18, 2018 12:32 pm
by michprev
Also hold signal does not seem to work (bits usr_hold_pol, usr_dout_hold, usr_din_hold, usr_dummy_hold, usr_addr_hold, usr_cmd_hold and usr_prep_hold in USER register).

So WP and HOLD signals does not seem to have any function in classic SPI - it should be mentioned in docs.
Both signals are only usable in Quad SPI - it would make more sense to name them IO2 and IO3.