0
\$\begingroup\$

I often find my self in a situation when i need to debug systems of a MCU and other device which comunicate by SPI interface.

most of the times we use a logic analyzer between the master and the slave , which can decode to hex or binary , its very time comsuming.

is there a tool where i can define a custom protocol , so the frames are decoded and automaticaly?

\$\endgroup\$
2
  • \$\begingroup\$ Many logic analyzers have SPI decoding. What are you using? \$\endgroup\$
    – jwh20
    Commented Jan 12, 2021 at 15:16
  • \$\begingroup\$ Single step the code with a debugger is the usual tool. Just staring at the raw data on a scope without access to the actual code at the same time isn't very productive. \$\endgroup\$
    – Lundin
    Commented Jan 12, 2021 at 15:25

1 Answer 1

-1
\$\begingroup\$

Sigrok is free/open source software able to operate most logic analyzers intended to support custom python backends and including many such example decoders.

You can also simple pipe output into a solution in some other language.

\$\endgroup\$
2
  • \$\begingroup\$ thats exactly what im trying to avoid. :) Thanks for your answer .. instead of coding a script , i would like a logic analizer that has built in decoding feature.... it would make me save some time , also it would be great to be able to trigger on some specific command or condition \$\endgroup\$ Commented Jan 12, 2021 at 15:15
  • \$\begingroup\$ You get what you ask for - you said "custom" which practically much means "script". For basic things like I2C most analyzers already do that. \$\endgroup\$ Commented Jan 12, 2021 at 15:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.