Error in SPI Initialization

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

Error in SPI Initialization

1,337 次查看
ismael-wael
Contributor II

Hello,

I encounter this error in SPI Initialization (in spi driver, automatic code generation). i will post screenshots of exact error location

1.png

2.png
 

3.png

4.png

6.png

then it shows this image..

7.png

 

i tested the exact SPI init function of provided SPI example and it worked just fine.

but in this project i would not.

please help.

 

thank you.

标记 (1)
0 项奖励
回复
4 回复数

1,329 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

be sure used SPI module has its module clock enabled. 

BR, Petr

0 项奖励
回复

1,312 次查看
ismael-wael
Contributor II

sorry forgot to mention, that is for MPC 5744P NXP MCU.

0 项奖励
回复

1,290 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, that is a setting in the PE, but if DSPI1 module is used check within debugger MC_ME_PS3[S_DSPI_1] register bit if module is active or not. If it is clocked then check address accessed in DSPI_Set_MCR_HALT.

BR, Petr

0 项奖励
回复

1,314 次查看
ismael-wael
Contributor II
 

it is, isn't it?

8.PNG

0 项奖励
回复