MPC5746B SPI problem in AUTOSAR samples

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

MPC5746B SPI problem in AUTOSAR samples

Jump to solution
1,372 Views
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

Tags (1)
0 Kudos
1 Solution
1,308 Views
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

View solution in original post

5 Replies
1,353 Views
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 Kudos
1,337 Views
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 Kudos
1,334 Views
Ehsaaan
Contributor III

Attachments:

0 Kudos
1,309 Views
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,300 Views
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 Kudos