Error in SPI Initialization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error in SPI Initialization

962 Views
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.

Tags (1)
0 Kudos
Reply
4 Replies

954 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

be sure used SPI module has its module clock enabled. 

BR, Petr

0 Kudos
Reply

937 Views
ismael-wael
Contributor II

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

0 Kudos
Reply

915 Views
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 Kudos
Reply

939 Views
ismael-wael
Contributor II
 

it is, isn't it?

8.PNG

0 Kudos
Reply