SPI initialize error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SPI initialize error

723 次查看
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 回复数

685 次查看
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 项奖励

670 次查看
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 项奖励

645 次查看
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 项奖励