MPC5746B SPI problem in AUTOSAR samples

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

MPC5746B SPI problem in AUTOSAR samples

ソリューションへジャンプ
1,040件の閲覧回数
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 解決策
976件の閲覧回数
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,021件の閲覧回数
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,005件の閲覧回数
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,002件の閲覧回数
Ehsaaan
Contributor III

Attachments:

0 件の賞賛
977件の閲覧回数
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

968件の閲覧回数
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 件の賞賛