This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why cannot log all the printing data when receiving from the SPI?

Hi Team,

When the slave side of the SPI received data from the master side, I want to log the received data to judge If it is right. But, I want to print it by log. it can only view 20 or so characters, Also including some garbled characters. Could you tell me why?

With kind regards,

Gaosheng

Parents
  • Hi

    The "Transfer completed..." messages are printed using UART or RTT, and using the __log printing inside the spis_event_handler() will likely cause this jumbled data you're seeing. Please move these logging lines outside of the event handler

    Best regards,

    Simon

Reply
  • Hi

    The "Transfer completed..." messages are printed using UART or RTT, and using the __log printing inside the spis_event_handler() will likely cause this jumbled data you're seeing. Please move these logging lines outside of the event handler

    Best regards,

    Simon

Children
Related