In the lab, I'm trying to program the SPI flash from external SPI module but found SPI_CS0 can't be driven low. It seems it's caused by bus contention. On this bus, there are only P1010 SPI, SPI Flash and header for external programming. HRESET on P1010 is asserted prior to turn on the external SPI bus. My question is what the state of SPI_CS0 when HRESET? is it supposed to be input, tristate or output?