Program P1010 SPI flash from external driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Program P1010 SPI flash from external driver

1,375件の閲覧回数
itsme
Contributor II

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?

0 件の賞賛
返信
3 返答(返信)

1,122件の閲覧回数
Pavel
NXP Employee
NXP Employee

The P1010 GUTS_PMUXCR1[SPI] field provides pin assignment for SPI. This register assigns the SPI_CS_B[0]/GPIO[9] to SPI if the P1010 HRESET is asserted.

The SPI_CS_B[0] is output signal.

It looks like that you can use I2C boot sequencer for configuring the GUTS_PMUXCR1 register for assigning the SPI_CS_B[0]/GPIO[9] as GPIO.

The P1010 boot sequencer also can be used for loading simple loop program. The P1010 can execute this loop code during SPI Flash programming using external SPI.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,122件の閲覧回数
itsme
Contributor II

Hi Pavel,

How about SPI CLK and MOSI pins?  are they also output when HRESET asserted?

0 件の賞賛
返信

1,122件の閲覧回数
Pavel
NXP Employee
NXP Employee

The P1010 SPI CLK and MOSI pins are outputs if the HRESET is asserted.

Have a great day,

Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信