Skip to main content
Visitor II
March 14, 2025
Question

SPI Clock Error and affect CAN module

  • March 14, 2025
  • 0 replies
  • 814 views

Hi

 

I am developing my project using the SPC58EC74 chip,I found two problems when using SPI(The clock I/O is PG[11]/DSPI0_SCK, which is pin 34)。first question:When the amount of my code is relatively small, the clock signal is normal; when the amount of my code is relatively large, the clock signal is abnormal, see the next picture企业微信截图_17419580905310.png

That's right, sheer amount of code, the extra code will not be executed (my app launches from Flash),Below is my executable file information,This is problematic

企业微信截图_17419587014929.png

I swear the extra code is not being executed, it's just taking up space。

Second question:I don't know what is the relationship between SPI and CAN, when I CAN work properly, CAN can not work properly; When the SPI is disabled or the SPI is abnormal (for example, the clock is abnormal), CAN works properly。this is my question,Thank you for your answer. Thank you very much。

This topic has been closed for replies.