MPC5746B SPI problem in AUTOSAR samples

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

MPC5746B SPI problem in AUTOSAR samples

跳至解决方案
1,176 次查看
Ehsaaan
Contributor III

Hello 

Dears

 

I am working on MPC574xB-C-G sample application from NXP, I already have configured port, dio, adc and pwm modules in EB Tresos, and they did work properly without any errors. Then I configured SPI2 module, and now in debug it stucked somewhere incorrect in the code. By the way already I configured and successfully tested DSPI2 without this problem and with same configue and interrupt vectors were set correctly for both of them.(DSPI2 and SPI2). But now SPI2 doesn't work.  where is the problem source?

 

Regards,
Ehsan Fathi

标记 (1)
0 项奖励
1 解答
1,112 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @Ehsaaan ,

I have checked you configuration and I see that the Port configures for DSPI0 but not SPI2

hungnguyenphi_0-1636967949820.png

The reference clock is not correct.

hungnguyenphi_1-1636968067006.png

Could you please help to update it and recheck

Best regards,

Hung

在原帖中查看解决方案

5 回复数
1,157 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @Ehsaaan ,

 

Could you please share with us your configuration(Spi, Port, Mcu, Resource .epc or .arxml files) and also the MCAL version for checking this case.

 

Best regards,

hung

0 项奖励
1,141 次查看
Ehsaaan
Contributor III

@hungnguyenphi 
Thank you for your attention.
I attached the whole sample project with MCAL files.
I am waiting to hearing from you.

Regards,
Ehsan

0 项奖励
1,138 次查看
Ehsaaan
Contributor III

Attachments:

0 项奖励
1,113 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @Ehsaaan ,

I have checked you configuration and I see that the Port configures for DSPI0 but not SPI2

hungnguyenphi_0-1636967949820.png

The reference clock is not correct.

hungnguyenphi_1-1636968067006.png

Could you please help to update it and recheck

Best regards,

Hung

1,104 次查看
Ehsaaan
Contributor III

Hello

@hungnguyenphi 
I Change the refrence clock that you mentioned above into F80 , and its ok right now.
Thanks for your notice.

Regards,
Ehsan

0 项奖励