SPI initialize error

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

SPI initialize error

1,707件の閲覧回数
supra0309
Contributor I

Hi :

I'm using 5746R to complete SPI function. Everything is good to operate when I using DSPI 0/1/2/3/4(figure 1). But since I added another master in SPI4(figure 2/3), it stops if running Init_RealityTime(figure 4) and present this information(figure 5). I've traced it into "spi_pal.c"(figure 6), it shows me system gets stuck at here(figure 7). Figure 8/9 is my SDK setting. Please tell me how to resolve this problem, thanks.

BR,

Xantia

supra0309_0-1660022717873.png

supra0309_2-1660022787401.png

supra0309_3-1660022821935.png

supra0309_0-1660008248371.png

supra0309_3-1660008568616.png

supra0309_1-1660008319679.png

supra0309_2-1660008355080.png

supra0309_5-1660009089186.png

supra0309_4-1660022938584.png

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

1,669件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if you added another master configuration into SPI4_pal, then just single config can be "active". Once module is initialized using one master configuration, it cannot be initialized again with another one for the same SPI module instance until it is de-initialized, using DeInit functions.

BR, Petr

0 件の賞賛
返信

1,654件の閲覧回数
supra0309
Contributor I

Hi :

So if I want to initial the two configrations in same SPI_pal, how should I do the initialize step contemporary?

BR,

Xantia

supra0309_0-1661215055363.pngsupra0309_1-1661215083212.png

supra0309_2-1661215110796.png

supra0309_3-1661215136961.png

supra0309_4-1661215179821.png

 

0 件の賞賛
返信

1,629件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

no, it is not possible to have both initialized in the same time for the same module.
If you want to do communication with second configuration, you need to first finish previous communication, call Deinit and then Init with new master configuration. Then you can do a communication again.

BR, Petr

0 件の賞賛
返信