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
Solved! Go to Solution.
Hello @Ehsaaan ,
I have checked you configuration and I see that the Port configures for DSPI0 but not SPI2
The reference clock is not correct.
Could you please help to update it and recheck
Best regards,
Hung
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
@hungnguyenphi
Thank you for your attention.
I attached the whole sample project with MCAL files.
I am waiting to hearing from you.
Regards,
Ehsan
Hello @Ehsaaan ,
I have checked you configuration and I see that the Port configures for DSPI0 but not SPI2
The reference clock is not correct.
Could you please help to update it and recheck
Best regards,
Hung
Hello
@hungnguyenphi
I Change the refrence clock that you mentioned above into F80 , and its ok right now.
Thanks for your notice.
Regards,
Ehsan